OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/video_util.h" | 5 #include "media/base/video_util.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
| 9 #include "base/bind.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/numerics/safe_conversions.h" | 11 #include "base/numerics/safe_conversions.h" |
11 #include "base/numerics/safe_math.h" | 12 #include "base/numerics/safe_math.h" |
12 #include "media/base/video_frame.h" | 13 #include "media/base/video_frame.h" |
13 #include "media/base/yuv_convert.h" | 14 #include "media/base/yuv_convert.h" |
14 #include "third_party/libyuv/include/libyuv.h" | 15 #include "third_party/libyuv/include/libyuv.h" |
15 | 16 |
16 namespace media { | 17 namespace media { |
17 | 18 |
18 namespace { | 19 namespace { |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 dst_frame->stride(VideoFrame::kVPlane), | 413 dst_frame->stride(VideoFrame::kVPlane), |
413 VideoFrame::PlaneSize(PIXEL_FORMAT_I420, VideoFrame::kVPlane, | 414 VideoFrame::PlaneSize(PIXEL_FORMAT_I420, VideoFrame::kVPlane, |
414 dst_frame->coded_size()), | 415 dst_frame->coded_size()), |
415 VideoFrame::PlaneSize(PIXEL_FORMAT_I420, VideoFrame::kVPlane, | 416 VideoFrame::PlaneSize(PIXEL_FORMAT_I420, VideoFrame::kVPlane, |
416 src_frame.visible_rect().size())); | 417 src_frame.visible_rect().size())); |
417 | 418 |
418 return true; | 419 return true; |
419 } | 420 } |
420 | 421 |
421 } // namespace media | 422 } // namespace media |
OLD | NEW |