OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_H264_BITSTREAM_CONVERTER_H_ | 5 #ifndef MEDIA_BASE_H264_BITSTREAM_CONVERTER_H_ |
6 #define MEDIA_BASE_H264_BITSTREAM_CONVERTER_H_ | 6 #define MEDIA_BASE_H264_BITSTREAM_CONVERTER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "media/base/media_export.h" | |
10 | 9 |
11 namespace media { | 10 namespace media { |
12 | 11 |
13 // H264BitstreamConverter is a class to convert H.264 bitstream from | 12 // H264BitstreamConverter is a class to convert H.264 bitstream from |
14 // MP4 format (as specified in ISO/IEC 14496-15) into H.264 bytestream | 13 // MP4 format (as specified in ISO/IEC 14496-15) into H.264 bytestream |
15 // (as specified in ISO/IEC 14496-10 Annex B). | 14 // (as specified in ISO/IEC 14496-10 Annex B). |
16 class MEDIA_EXPORT H264BitstreamConverter { | 15 class H264BitstreamConverter { |
17 public: | 16 public: |
18 H264BitstreamConverter(); | 17 H264BitstreamConverter(); |
19 ~H264BitstreamConverter(); | 18 ~H264BitstreamConverter(); |
20 | 19 |
21 // Parses the global AVCDecoderConfigurationRecord from the file format's | 20 // Parses the global AVCDecoderConfigurationRecord from the file format's |
22 // headers. Converter will remember the field length from the configuration | 21 // headers. Converter will remember the field length from the configuration |
23 // headers after this. | 22 // headers after this. |
24 // | 23 // |
25 // Parameters | 24 // Parameters |
26 // configuration_record | 25 // configuration_record |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Variable to hold interleaving field's length in bytes. | 115 // Variable to hold interleaving field's length in bytes. |
117 uint8 nal_unit_length_field_width_; | 116 uint8 nal_unit_length_field_width_; |
118 | 117 |
119 DISALLOW_COPY_AND_ASSIGN(H264BitstreamConverter); | 118 DISALLOW_COPY_AND_ASSIGN(H264BitstreamConverter); |
120 }; | 119 }; |
121 | 120 |
122 } // namespace media | 121 } // namespace media |
123 | 122 |
124 #endif // MEDIA_BASE_H264_BITSTREAM_CONVERTER_H_ | 123 #endif // MEDIA_BASE_H264_BITSTREAM_CONVERTER_H_ |
125 | 124 |
OLD | NEW |