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

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

Issue 10534172: Implement ISO BMFF support in Media Source (try 2). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 class BufferReader;
16
17 struct SubsampleSizes {
18 uint16 clear_size;
19 uint32 encrypted_size;
20 };
21
22 struct FrameCENCInfo {
23 std::vector<uint8> iv;
24 std::vector<SubsampleSizes> subsamples;
25
26 FrameCENCInfo();
27 ~FrameCENCInfo();
28 bool Parse(int iv_size, BufferReader* r);
29 size_t GetTotalSize() const;
30 };
31
32
33 } // namespace mp4
34 } // namespace media
35
36 #endif // MEDIA_MP4_CENC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698