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/cast/receiver/video_decoder.h" | 5 #include "media/cast/receiver/video_decoder.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "media/base/video_frame_pool.h" | 17 #include "media/base/video_frame_pool.h" |
18 #include "media/base/video_util.h" | 18 #include "media/base/video_util.h" |
19 #include "media/cast/cast_environment.h" | 19 #include "media/cast/cast_environment.h" |
20 // VPX_CODEC_DISABLE_COMPAT excludes parts of the libvpx API that provide | 20 // VPX_CODEC_DISABLE_COMPAT excludes parts of the libvpx API that provide |
21 // backwards compatibility for legacy applications using the library. | 21 // backwards compatibility for legacy applications using the library. |
22 #define VPX_CODEC_DISABLE_COMPAT 1 | 22 #define VPX_CODEC_DISABLE_COMPAT 1 |
23 #include "third_party/libvpx_new/source/libvpx/vpx/vp8dx.h" | 23 #include "third_party/libvpx/source/libvpx/vpx/vp8dx.h" |
24 #include "third_party/libvpx_new/source/libvpx/vpx/vpx_decoder.h" | 24 #include "third_party/libvpx/source/libvpx/vpx/vpx_decoder.h" |
25 #include "third_party/libyuv/include/libyuv/convert.h" | 25 #include "third_party/libyuv/include/libyuv/convert.h" |
26 #include "ui/gfx/geometry/size.h" | 26 #include "ui/gfx/geometry/size.h" |
27 | 27 |
28 namespace media { | 28 namespace media { |
29 namespace cast { | 29 namespace cast { |
30 | 30 |
31 // Base class that handles the common problem of detecting dropped frames, and | 31 // Base class that handles the common problem of detecting dropped frames, and |
32 // then invoking the Decode() method implemented by the subclasses to convert | 32 // then invoking the Decode() method implemented by the subclasses to convert |
33 // the encoded payload data into a usable video frame. | 33 // the encoded payload data into a usable video frame. |
34 class VideoDecoder::ImplBase | 34 class VideoDecoder::ImplBase |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 cast_environment_->PostTask(CastEnvironment::VIDEO, | 271 cast_environment_->PostTask(CastEnvironment::VIDEO, |
272 FROM_HERE, | 272 FROM_HERE, |
273 base::Bind(&VideoDecoder::ImplBase::DecodeFrame, | 273 base::Bind(&VideoDecoder::ImplBase::DecodeFrame, |
274 impl_, | 274 impl_, |
275 base::Passed(&encoded_frame), | 275 base::Passed(&encoded_frame), |
276 callback)); | 276 callback)); |
277 } | 277 } |
278 | 278 |
279 } // namespace cast | 279 } // namespace cast |
280 } // namespace media | 280 } // namespace media |
OLD | NEW |