| 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/base/checks.h" |
| 16 // TODO(nisse): Only needed for the deprecated ConvertToI420. |
| 17 #include "webrtc/api/video/i420_buffer.h" |
| 16 | 18 |
| 17 // NOTE(ajm): Path provided by gyp. | 19 // NOTE(ajm): Path provided by gn. |
| 18 #include "libyuv.h" // NOLINT | 20 #include "libyuv.h" // NOLINT |
| 19 | 21 |
| 20 namespace webrtc { | 22 namespace webrtc { |
| 21 | 23 |
| 22 VideoType RawVideoTypeToCommonVideoVideoType(RawVideoType type) { | 24 VideoType RawVideoTypeToCommonVideoVideoType(RawVideoType type) { |
| 23 switch (type) { | 25 switch (type) { |
| 24 case kVideoI420: | 26 case kVideoI420: |
| 25 return kI420; | 27 return kI420; |
| 26 case kVideoIYUV: | 28 case kVideoIYUV: |
| 27 return kIYUV; | 29 return kIYUV; |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 src_v, src_uv_width, | 444 src_v, src_uv_width, |
| 443 src_width, src_height, | 445 src_width, src_height, |
| 444 dst_y, dst_stride_y, | 446 dst_y, dst_stride_y, |
| 445 dst_u, dst_stride_u, | 447 dst_u, dst_stride_u, |
| 446 dst_v, dst_stride_v, | 448 dst_v, dst_stride_v, |
| 447 dst_width, dst_height, | 449 dst_width, dst_height, |
| 448 libyuv::kFilterBox); | 450 libyuv::kFilterBox); |
| 449 } | 451 } |
| 450 | 452 |
| 451 } // namespace webrtc | 453 } // namespace webrtc |
| OLD | NEW |