| 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_AVC_H_ |
| 6 #define MEDIA_MP4_AVC_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "media/base/channel_layout.h" |
| 12 |
| 13 namespace media { |
| 14 namespace mp4 { |
| 15 |
| 16 struct AVCDecoderConfigurationRecord { |
| 17 uint8 version; |
| 18 uint8 profile_indication; |
| 19 uint8 profile_compatibility; |
| 20 uint8 avc_level; |
| 21 uint8 length_size; |
| 22 |
| 23 typedef std::vector<uint8> SPS; |
| 24 typedef std::vector<uint8> PPS; |
| 25 |
| 26 std::vector<SPS> sps_list; |
| 27 std::vector<PPS> pps_list; |
| 28 |
| 29 AVCDecoderConfigurationRecord(); |
| 30 ~AVCDecoderConfigurationRecord(); |
| 31 }; |
| 32 |
| 33 // Parse(BoxReader, AVCDecoderConfigurationRecord) is declared in |
| 34 // box_definitions.h. |
| 35 |
| 36 bool ConvertAVCCToAnnexB(int length_size, std::vector<uint8>* buffer); |
| 37 |
| 38 ChannelLayout ConvertAACChannelCountToChannelLayout(int count); |
| 39 |
| 40 } // namespace mp4 |
| 41 } // namespace media |
| 42 |
| 43 #endif // MEDIA_MP4_AVC_H_ |
| OLD | NEW |