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 27 matching lines...) Expand all Loading... |
38 // | 38 // |
39 class MEDIA_EXPORT EsParserH264 : public EsParser { | 39 class MEDIA_EXPORT EsParserH264 : public EsParser { |
40 public: | 40 public: |
41 typedef base::Callback<void(const VideoDecoderConfig&)> NewVideoConfigCB; | 41 typedef base::Callback<void(const VideoDecoderConfig&)> NewVideoConfigCB; |
42 | 42 |
43 EsParserH264(const NewVideoConfigCB& new_video_config_cb, | 43 EsParserH264(const NewVideoConfigCB& new_video_config_cb, |
44 const EmitBufferCB& emit_buffer_cb); | 44 const EmitBufferCB& emit_buffer_cb); |
45 virtual ~EsParserH264(); | 45 virtual ~EsParserH264(); |
46 | 46 |
47 // EsParser implementation. | 47 // EsParser implementation. |
48 virtual void Flush() OVERRIDE; | 48 virtual void Flush() override; |
49 | 49 |
50 private: | 50 private: |
51 // EsParser implementation. | 51 // EsParser implementation. |
52 virtual bool ParseFromEsQueue() OVERRIDE; | 52 virtual bool ParseFromEsQueue() override; |
53 virtual void ResetInternal() OVERRIDE; | 53 virtual void ResetInternal() override; |
54 | 54 |
55 // Find the AUD located at or after |*stream_pos|. | 55 // Find the AUD located at or after |*stream_pos|. |
56 // Return true if an AUD is found. | 56 // Return true if an AUD is found. |
57 // If found, |*stream_pos| corresponds to the position of the AUD start code | 57 // If found, |*stream_pos| corresponds to the position of the AUD start code |
58 // in the stream. Otherwise, |*stream_pos| corresponds to the last position | 58 // in the stream. Otherwise, |*stream_pos| corresponds to the last position |
59 // of the start code parser. | 59 // of the start code parser. |
60 bool FindAUD(int64* stream_pos); | 60 bool FindAUD(int64* stream_pos); |
61 | 61 |
62 // Emit a frame whose position in the ES queue starts at |access_unit_pos|. | 62 // Emit a frame whose position in the ES queue starts at |access_unit_pos|. |
63 // Returns true if successful, false if no PTS is available for the frame. | 63 // Returns true if successful, false if no PTS is available for the frame. |
(...skipping 16 matching lines...) Expand all Loading... |
80 // Last video decoder config. | 80 // Last video decoder config. |
81 VideoDecoderConfig last_video_decoder_config_; | 81 VideoDecoderConfig last_video_decoder_config_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(EsParserH264); | 83 DISALLOW_COPY_AND_ASSIGN(EsParserH264); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace mp2t | 86 } // namespace mp2t |
87 } // namespace media | 87 } // namespace media |
88 | 88 |
89 #endif | 89 #endif |
OLD | NEW |