зеркало из https://github.com/mozilla/gecko-dev.git
30 строки
637 B
C++
30 строки
637 B
C++
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef MEDIA_MP4_CENC_H_
|
|
#define MEDIA_MP4_CENC_H_
|
|
|
|
#include <vector>
|
|
|
|
#include "mp4_demuxer/basictypes.h"
|
|
#include "mp4_demuxer/decrypt_config.h"
|
|
|
|
namespace mp4_demuxer {
|
|
|
|
class StreamReader;
|
|
|
|
struct FrameCENCInfo {
|
|
uint8_t iv[16];
|
|
std::vector<SubsampleEntry> subsamples;
|
|
|
|
FrameCENCInfo();
|
|
~FrameCENCInfo();
|
|
bool Parse(int iv_size, StreamReader* r);
|
|
size_t GetTotalSizeOfSubsamples() const;
|
|
};
|
|
|
|
} // namespace mp4_demuxer
|
|
|
|
#endif // MEDIA_MP4_CENC_H_
|