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> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
9 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
10 #include "base/location.h" | 12 #include "base/location.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
12 #include "base/values.h" | 15 #include "base/values.h" |
13 #include "media/base/video_frame_pool.h" | 16 #include "media/base/video_frame_pool.h" |
14 #include "media/base/video_util.h" | 17 #include "media/base/video_util.h" |
15 #include "media/cast/cast_environment.h" | 18 #include "media/cast/cast_environment.h" |
16 // VPX_CODEC_DISABLE_COMPAT excludes parts of the libvpx API that provide | 19 // VPX_CODEC_DISABLE_COMPAT excludes parts of the libvpx API that provide |
17 // backwards compatibility for legacy applications using the library. | 20 // backwards compatibility for legacy applications using the library. |
18 #define VPX_CODEC_DISABLE_COMPAT 1 | 21 #define VPX_CODEC_DISABLE_COMPAT 1 |
19 #include "third_party/libvpx_new/source/libvpx/vpx/vp8dx.h" | 22 #include "third_party/libvpx_new/source/libvpx/vpx/vp8dx.h" |
20 #include "third_party/libvpx_new/source/libvpx/vpx/vpx_decoder.h" | 23 #include "third_party/libvpx_new/source/libvpx/vpx/vpx_decoder.h" |
21 #include "third_party/libyuv/include/libyuv/convert.h" | 24 #include "third_party/libyuv/include/libyuv/convert.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 cast_environment_->PostTask(CastEnvironment::VIDEO, | 268 cast_environment_->PostTask(CastEnvironment::VIDEO, |
266 FROM_HERE, | 269 FROM_HERE, |
267 base::Bind(&VideoDecoder::ImplBase::DecodeFrame, | 270 base::Bind(&VideoDecoder::ImplBase::DecodeFrame, |
268 impl_, | 271 impl_, |
269 base::Passed(&encoded_frame), | 272 base::Passed(&encoded_frame), |
270 callback)); | 273 callback)); |
271 } | 274 } |
272 | 275 |
273 } // namespace cast | 276 } // namespace cast |
274 } // namespace media | 277 } // namespace media |
OLD | NEW |