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 #include "media/formats/mp2t/es_parser_h264.h" | 5 #include "media/formats/mp2t/es_parser_h264.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/numerics/safe_conversions.h" | 9 #include "base/numerics/safe_conversions.h" |
10 #include "media/base/buffers.h" | 10 #include "media/base/buffers.h" |
11 #include "media/base/stream_parser_buffer.h" | 11 #include "media/base/stream_parser_buffer.h" |
12 #include "media/base/video_frame.h" | 12 #include "media/base/video_frame.h" |
13 #include "media/filters/h264_parser.h" | 13 #include "media/filters/h264_parser.h" |
14 #include "media/formats/common/offset_byte_queue.h" | 14 #include "media/formats/common/offset_byte_queue.h" |
15 #include "media/formats/mp2t/es_adapter_video.h" | 15 #include "media/formats/mp2t/es_adapter_video.h" |
16 #include "media/formats/mp2t/mp2t_common.h" | 16 #include "media/formats/mp2t/mp2t_common.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/geometry/rect.h" |
18 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
19 | 19 |
20 namespace media { | 20 namespace media { |
21 namespace mp2t { | 21 namespace mp2t { |
22 | 22 |
23 // An AUD NALU is at least 4 bytes: | 23 // An AUD NALU is at least 4 bytes: |
24 // 3 bytes for the start code + 1 byte for the NALU type. | 24 // 3 bytes for the start code + 1 byte for the NALU type. |
25 const int kMinAUDSize = 4; | 25 const int kMinAUDSize = 4; |
26 | 26 |
27 EsParserH264::EsParserH264( | 27 EsParserH264::EsParserH264( |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 << " height=" << sps->sar_height; | 301 << " height=" << sps->sar_height; |
302 last_video_decoder_config_ = video_decoder_config; | 302 last_video_decoder_config_ = video_decoder_config; |
303 es_adapter_.OnConfigChanged(video_decoder_config); | 303 es_adapter_.OnConfigChanged(video_decoder_config); |
304 } | 304 } |
305 | 305 |
306 return true; | 306 return true; |
307 } | 307 } |
308 | 308 |
309 } // namespace mp2t | 309 } // namespace mp2t |
310 } // namespace media | 310 } // namespace media |
OLD | NEW |