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" |
9 | 10 |
10 namespace media { | 11 namespace media { |
11 | 12 |
12 // H264BitstreamConverter is a class to convert H.264 bitstream from | 13 // H264BitstreamConverter is a class to convert H.264 bitstream from |
13 // MP4 format (as specified in ISO/IEC 14496-15) into H.264 bytestream | 14 // MP4 format (as specified in ISO/IEC 14496-15) into H.264 bytestream |
14 // (as specified in ISO/IEC 14496-10 Annex B). | 15 // (as specified in ISO/IEC 14496-10 Annex B). |
15 class H264BitstreamConverter { | 16 class MEDIA_EXPORT H264BitstreamConverter { |
16 public: | 17 public: |
17 H264BitstreamConverter(); | 18 H264BitstreamConverter(); |
18 ~H264BitstreamConverter(); | 19 ~H264BitstreamConverter(); |
19 | 20 |
20 // Parses the global AVCDecoderConfigurationRecord from the file format's | 21 // Parses the global AVCDecoderConfigurationRecord from the file format's |
21 // headers. Converter will remember the field length from the configuration | 22 // headers. Converter will remember the field length from the configuration |
22 // headers after this. | 23 // headers after this. |
23 // | 24 // |
24 // Parameters | 25 // Parameters |
25 // configuration_record | 26 // configuration_record |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Variable to hold interleaving field's length in bytes. | 116 // Variable to hold interleaving field's length in bytes. |
116 uint8 nal_unit_length_field_width_; | 117 uint8 nal_unit_length_field_width_; |
117 | 118 |
118 DISALLOW_COPY_AND_ASSIGN(H264BitstreamConverter); | 119 DISALLOW_COPY_AND_ASSIGN(H264BitstreamConverter); |
119 }; | 120 }; |
120 | 121 |
121 } // namespace media | 122 } // namespace media |
122 | 123 |
123 #endif // MEDIA_BASE_H264_BITSTREAM_CONVERTER_H_ | 124 #endif // MEDIA_BASE_H264_BITSTREAM_CONVERTER_H_ |
124 | 125 |
OLD | NEW |