Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_MP4_CENC_H_ | |
| 6 #define MEDIA_MP4_CENC_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include <vector> | |
|
acolwell GONE FROM CHROMIUM
2012/06/06 17:32:39
include order
strobe_
2012/06/07 16:33:54
Done.
| |
| 10 | |
| 11 namespace media { | |
| 12 namespace mp4 { | |
| 13 | |
| 14 struct SubsampleSizes { | |
| 15 uint16 clear_size; | |
| 16 uint32 encrypted_size; | |
| 17 }; | |
| 18 | |
| 19 struct FrameCENCInfo { | |
| 20 std::vector<uint8> iv; | |
| 21 std::vector<SubsampleSizes> subsamples; | |
| 22 | |
| 23 FrameCENCInfo(); | |
| 24 ~FrameCENCInfo(); | |
| 25 size_t GetTotalSize() const; | |
| 26 }; | |
| 27 | |
| 28 class BufferReader; | |
| 29 bool Parse(size_t iv_size, FrameCENCInfo* cenc, BufferReader* r); | |
| 30 | |
| 31 } // namespace mp4 | |
| 32 } // namespace media | |
| 33 | |
| 34 #endif // MEDIA_MP4_CENC_H_ | |
| OLD | NEW |