| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2012 The LibYuv 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 |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 LIBYUV_API | 438 LIBYUV_API |
| 439 int I420ToNV21(const uint8* src_y, int src_stride_y, | 439 int I420ToNV21(const uint8* src_y, int src_stride_y, |
| 440 const uint8* src_u, int src_stride_u, | 440 const uint8* src_u, int src_stride_u, |
| 441 const uint8* src_v, int src_stride_v, | 441 const uint8* src_v, int src_stride_v, |
| 442 uint8* dst_y, int dst_stride_y, | 442 uint8* dst_y, int dst_stride_y, |
| 443 uint8* dst_vu, int dst_stride_vu, | 443 uint8* dst_vu, int dst_stride_vu, |
| 444 int width, int height) { | 444 int width, int height) { |
| 445 return I420ToNV12(src_y, src_stride_y, | 445 return I420ToNV12(src_y, src_stride_y, |
| 446 src_v, src_stride_v, | 446 src_v, src_stride_v, |
| 447 src_u, src_stride_u, | 447 src_u, src_stride_u, |
| 448 dst_y, src_stride_y, | 448 dst_y, dst_stride_y, |
| 449 dst_vu, dst_stride_vu, | 449 dst_vu, dst_stride_vu, |
| 450 width, height); | 450 width, height); |
| 451 } | 451 } |
| 452 | 452 |
| 453 // Convert I422 to RGBA with matrix | 453 // Convert I422 to RGBA with matrix |
| 454 static int I420ToRGBAMatrix(const uint8* src_y, int src_stride_y, | 454 static int I420ToRGBAMatrix(const uint8* src_y, int src_stride_y, |
| 455 const uint8* src_u, int src_stride_u, | 455 const uint8* src_u, int src_stride_u, |
| 456 const uint8* src_v, int src_stride_v, | 456 const uint8* src_v, int src_stride_v, |
| 457 uint8* dst_rgba, int dst_stride_rgba, | 457 uint8* dst_rgba, int dst_stride_rgba, |
| 458 const struct YuvConstants* yuvconstants, | 458 const struct YuvConstants* yuvconstants, |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 default: | 1158 default: |
| 1159 return -1; // unknown fourcc - return failure code. | 1159 return -1; // unknown fourcc - return failure code. |
| 1160 } | 1160 } |
| 1161 return r; | 1161 return r; |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 #ifdef __cplusplus | 1164 #ifdef __cplusplus |
| 1165 } // extern "C" | 1165 } // extern "C" |
| 1166 } // namespace libyuv | 1166 } // namespace libyuv |
| 1167 #endif | 1167 #endif |
| OLD | NEW |