Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: media/mp4/cenc.h

Issue 10536014: Implement ISO BMFF support in Media Source. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code review changes; add offset_byte_queue_unittest.cc Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 <vector>
9
10 #include "base/basictypes.h"
11
12 namespace media {
13 namespace mp4 {
14
15 struct SubsampleSizes {
16 uint16 clear_size;
17 uint32 encrypted_size;
18 };
19
20 struct FrameCENCInfo {
21 std::vector<uint8> iv;
22 std::vector<SubsampleSizes> subsamples;
23
24 FrameCENCInfo();
25 ~FrameCENCInfo();
26 size_t GetTotalSize() const;
27 };
28
29 class BufferReader;
30 bool Parse(size_t iv_size, FrameCENCInfo* cenc, BufferReader* r);
31
32 } // namespace mp4
33 } // namespace media
34
35 #endif // MEDIA_MP4_CENC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698