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_AVC_H_ | |
| 6 #define MEDIA_MP4_AVC_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "media/base/channel_layout.h" | |
| 10 #include <vector> | |
| 11 | |
| 12 namespace media { | |
| 13 namespace mp4 { | |
| 14 | |
| 15 struct AVCDecoderConfigurationRecord { | |
| 16 uint8 version; | |
|
acolwell GONE FROM CHROMIUM
2012/06/06 17:32:39
nit: use int here and below. In general Chrome pre
strobe_
2012/06/07 16:33:54
I'm working on converting the polymorphic Read() f
acolwell GONE FROM CHROMIUM
2012/06/07 19:44:02
Take it easy. This is the first file I reviewed an
strobe_
2012/06/07 22:04:22
Contritely: I apologize. I see that that message m
| |
| 17 uint8 profile_indication; | |
| 18 uint8 profile_compatibility; | |
| 19 uint8 avc_level; | |
| 20 uint8 length_size; | |
| 21 | |
| 22 uint32 width; | |
| 23 uint32 height; | |
| 24 uint32 crop_top; | |
| 25 uint32 crop_left; | |
| 26 uint32 crop_right; | |
| 27 uint32 crop_bottom; | |
| 28 | |
| 29 typedef std::vector<uint8> SPS; | |
| 30 typedef std::vector<uint8> PPS; | |
| 31 | |
| 32 std::vector<SPS> spses; | |
|
acolwell GONE FROM CHROMIUM
2012/06/06 17:32:39
nit: How about sps_list & pps_list? or xxx_vector?
strobe_
2012/06/07 16:33:54
Done.
| |
| 33 std::vector<PPS> ppses; | |
| 34 | |
| 35 AVCDecoderConfigurationRecord(); | |
| 36 ~AVCDecoderConfigurationRecord(); | |
| 37 }; | |
| 38 | |
| 39 bool ConvertAVCCToAnnexB(uint8 length_size, std::vector<uint8>* buffer); | |
| 40 | |
| 41 ChannelLayout ConvertAACChannelCountToChannelLayout(uint16 count); | |
|
acolwell GONE FROM CHROMIUM
2012/06/06 17:32:39
nit: change count to int
strobe_
2012/06/07 16:33:54
Done.
| |
| 42 | |
| 43 } // namespace mp4 | |
| 44 } // namespace media | |
| 45 | |
| 46 #endif // MEDIA_MP4_AVC_H_ | |
| OLD | NEW |