| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 11 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 12 | 12 |
| 13 #include <string.h> | 13 #include <string.h> |
| 14 | 14 |
| 15 #include "webrtc/base/checks.h" | 15 #include "webrtc/rtc_base/checks.h" |
| 16 // TODO(nisse): Only needed for the deprecated ConvertToI420. | 16 // TODO(nisse): Only needed for the deprecated ConvertToI420. |
| 17 #include "webrtc/api/video/i420_buffer.h" | 17 #include "webrtc/api/video/i420_buffer.h" |
| 18 | 18 |
| 19 // NOTE(ajm): Path provided by gn. | 19 // NOTE(ajm): Path provided by gn. |
| 20 #include "libyuv.h" // NOLINT | 20 #include "libyuv.h" // NOLINT |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 size_t CalcBufferSize(VideoType type, int width, int height) { | 24 size_t CalcBufferSize(VideoType type, int width, int height) { |
| 25 RTC_DCHECK_GE(width, 0); | 25 RTC_DCHECK_GE(width, 0); |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 src_v, src_uv_width, | 406 src_v, src_uv_width, |
| 407 src_width, src_height, | 407 src_width, src_height, |
| 408 dst_y, dst_stride_y, | 408 dst_y, dst_stride_y, |
| 409 dst_u, dst_stride_u, | 409 dst_u, dst_stride_u, |
| 410 dst_v, dst_stride_v, | 410 dst_v, dst_stride_v, |
| 411 dst_width, dst_height, | 411 dst_width, dst_height, |
| 412 libyuv::kFilterBox); | 412 libyuv::kFilterBox); |
| 413 } | 413 } |
| 414 | 414 |
| 415 } // namespace webrtc | 415 } // namespace webrtc |
| OLD | NEW |