Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 394 // (0 to 255) and store to destination. | 394 // (0 to 255) and store to destination. |
| 395 // 'interpolation' is specified as 8 bit fraction where 0 means 100% src_argb0 | 395 // 'interpolation' is specified as 8 bit fraction where 0 means 100% src_argb0 |
| 396 // and 255 means 1% src_argb0 and 99% src_argb1. | 396 // and 255 means 1% src_argb0 and 99% src_argb1. |
| 397 // Internally uses ARGBScale bilinear filtering. | 397 // Internally uses ARGBScale bilinear filtering. |
| 398 // Caveat: This function will write up to 16 bytes beyond the end of dst_argb. | 398 // Caveat: This function will write up to 16 bytes beyond the end of dst_argb. |
| 399 LIBYUV_API | 399 LIBYUV_API |
| 400 int ARGBInterpolate(const uint8* src_argb0, int src_stride_argb0, | 400 int ARGBInterpolate(const uint8* src_argb0, int src_stride_argb0, |
| 401 const uint8* src_argb1, int src_stride_argb1, | 401 const uint8* src_argb1, int src_stride_argb1, |
| 402 uint8* dst_argb, int dst_stride_argb, | 402 uint8* dst_argb, int dst_stride_argb, |
| 403 int width, int height, int interpolation); | 403 int width, int height, int interpolation); |
| 404 // Interpolate 2 planes by specified amount (0 to 255). | |
|
Diony Rosa
2015/11/25 19:38:39
I'd mention that this interpolation has the same m
fbarchard
2015/11/25 19:56:57
Done.
| |
| 405 LIBYUV_API | |
| 406 int InterpolatePlane(const uint8* src0, int src_stride0, | |
| 407 const uint8* src1, int src_stride1, | |
| 408 uint8* dst, int dst_stride, | |
| 409 int width, int height, int interpolation); | |
| 410 | |
| 411 // Interpolate 2 YUV images by specified amount (0 to 255). | |
| 412 LIBYUV_API | |
| 413 int I420Interpolate(const uint8* src0_y, int src0_stride_y, | |
| 414 const uint8* src0_u, int src0_stride_u, | |
| 415 const uint8* src0_v, int src0_stride_v, | |
| 416 const uint8* src1_y, int src1_stride_y, | |
| 417 const uint8* src1_u, int src1_stride_u, | |
| 418 const uint8* src1_v, int src1_stride_v, | |
| 419 uint8* dst_y, int dst_stride_y, | |
| 420 uint8* dst_u, int dst_stride_u, | |
| 421 uint8* dst_v, int dst_stride_v, | |
| 422 int width, int height, int interpolation); | |
| 404 | 423 |
| 405 #if defined(__pnacl__) || defined(__CLR_VER) || \ | 424 #if defined(__pnacl__) || defined(__CLR_VER) || \ |
| 406 (defined(__i386__) && !defined(__SSE2__)) | 425 (defined(__i386__) && !defined(__SSE2__)) |
| 407 #define LIBYUV_DISABLE_X86 | 426 #define LIBYUV_DISABLE_X86 |
| 408 #endif | 427 #endif |
| 409 // The following are available on all x86 platforms: | 428 // The following are available on all x86 platforms: |
| 410 #if !defined(LIBYUV_DISABLE_X86) && \ | 429 #if !defined(LIBYUV_DISABLE_X86) && \ |
| 411 (defined(_M_IX86) || defined(__x86_64__) || defined(__i386__)) | 430 (defined(_M_IX86) || defined(__x86_64__) || defined(__i386__)) |
| 412 #define HAS_ARGBAFFINEROW_SSE2 | 431 #define HAS_ARGBAFFINEROW_SSE2 |
| 413 #endif | 432 #endif |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 445 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb, | 464 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb, |
| 446 uint8* dst_argb, int dst_stride_argb, | 465 uint8* dst_argb, int dst_stride_argb, |
| 447 int width, int height); | 466 int width, int height); |
| 448 | 467 |
| 449 #ifdef __cplusplus | 468 #ifdef __cplusplus |
| 450 } // extern "C" | 469 } // extern "C" |
| 451 } // namespace libyuv | 470 } // namespace libyuv |
| 452 #endif | 471 #endif |
| 453 | 472 |
| 454 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT | 473 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT |
| OLD | NEW |