OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FORMATS_MP2T_ES_PARSER_H264_H_ | 5 #ifndef MEDIA_FORMATS_MP2T_ES_PARSER_H264_H_ |
6 #define MEDIA_FORMATS_MP2T_ES_PARSER_H264_H_ | 6 #define MEDIA_FORMATS_MP2T_ES_PARSER_H264_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 | 26 |
27 namespace media { | 27 namespace media { |
28 namespace mp2t { | 28 namespace mp2t { |
29 | 29 |
30 // Remark: | 30 // Remark: |
31 // In this h264 parser, frame splitting is based on AUD nals. | 31 // In this h264 parser, frame splitting is based on AUD nals. |
32 // Mpeg2 TS spec: "2.14 Carriage of Rec. ITU-T H.264 | ISO/IEC 14496-10 video" | 32 // Mpeg2 TS spec: "2.14 Carriage of Rec. ITU-T H.264 | ISO/IEC 14496-10 video" |
33 // "Each AVC access unit shall contain an access unit delimiter NAL Unit;" | 33 // "Each AVC access unit shall contain an access unit delimiter NAL Unit;" |
34 // | 34 // |
35 class MEDIA_EXPORT EsParserH264 : NON_EXPORTED_BASE(public EsParser) { | 35 class MEDIA_EXPORT EsParserH264 : public EsParser { |
36 public: | 36 public: |
37 typedef base::Callback<void(const VideoDecoderConfig&)> NewVideoConfigCB; | 37 typedef base::Callback<void(const VideoDecoderConfig&)> NewVideoConfigCB; |
38 | 38 |
39 EsParserH264(const NewVideoConfigCB& new_video_config_cb, | 39 EsParserH264(const NewVideoConfigCB& new_video_config_cb, |
40 const EmitBufferCB& emit_buffer_cb); | 40 const EmitBufferCB& emit_buffer_cb); |
41 virtual ~EsParserH264(); | 41 virtual ~EsParserH264(); |
42 | 42 |
43 // EsParser implementation. | 43 // EsParser implementation. |
44 virtual bool Parse(const uint8* buf, int size, | 44 virtual bool Parse(const uint8* buf, int size, |
45 base::TimeDelta pts, | 45 base::TimeDelta pts, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Last video decoder config. | 89 // Last video decoder config. |
90 VideoDecoderConfig last_video_decoder_config_; | 90 VideoDecoderConfig last_video_decoder_config_; |
91 | 91 |
92 DISALLOW_COPY_AND_ASSIGN(EsParserH264); | 92 DISALLOW_COPY_AND_ASSIGN(EsParserH264); |
93 }; | 93 }; |
94 | 94 |
95 } // namespace mp2t | 95 } // namespace mp2t |
96 } // namespace media | 96 } // namespace media |
97 | 97 |
98 #endif | 98 #endif |
OLD | NEW |