Chromium Code Reviews| 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 <assert.h> | 13 #include <assert.h> |
| 14 #include <string.h> | 14 #include <string.h> |
| 15 | 15 |
| 16 // NOTE(ajm): Path provided by gyp. | 16 // NOTE(ajm): Path provided by gyp. |
|
the sun
2016/11/24 10:36:59
This comment is wrong
nisse-webrtc
2016/11/25 08:58:02
Edited s/gyp/gn/.
BTW, I don't quite like the spe
| |
| 17 #include "libyuv.h" // NOLINT | 17 #include "libyuv.h" // NOLINT |
| 18 | 18 |
| 19 // TODO(nisse): Only needed for the deprecated ConvertToI420. | |
| 20 #include "webrtc/common_video/include/video_frame_buffer.h" | |
| 21 | |
| 19 namespace webrtc { | 22 namespace webrtc { |
| 20 | 23 |
| 21 VideoType RawVideoTypeToCommonVideoVideoType(RawVideoType type) { | 24 VideoType RawVideoTypeToCommonVideoVideoType(RawVideoType type) { |
| 22 switch (type) { | 25 switch (type) { |
| 23 case kVideoI420: | 26 case kVideoI420: |
| 24 return kI420; | 27 return kI420; |
| 25 case kVideoIYUV: | 28 case kVideoIYUV: |
| 26 return kIYUV; | 29 return kIYUV; |
| 27 case kVideoRGB24: | 30 case kVideoRGB24: |
| 28 return kRGB24; | 31 return kRGB24; |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 441 src_v, src_uv_width, | 444 src_v, src_uv_width, |
| 442 src_width, src_height, | 445 src_width, src_height, |
| 443 dst_y, dst_stride_y, | 446 dst_y, dst_stride_y, |
| 444 dst_u, dst_stride_u, | 447 dst_u, dst_stride_u, |
| 445 dst_v, dst_stride_v, | 448 dst_v, dst_stride_v, |
| 446 dst_width, dst_height, | 449 dst_width, dst_height, |
| 447 libyuv::kFilterBox); | 450 libyuv::kFilterBox); |
| 448 } | 451 } |
| 449 | 452 |
| 450 } // namespace webrtc | 453 } // namespace webrtc |
| OLD | NEW |