ARGBColorMatrix API wrapper for backward compatibility.

BUG=274
TESTED=try bots
R=ryanpetrie@google.com

Review URL: https://webrtc-codereview.appspot.com/2329004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@806 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
fbarchard@google.com 2013-10-01 18:46:05 +00:00
parent c99db063e2
commit 98fb959e7e
3 changed files with 25 additions and 17 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 805
Version: 806
License: BSD
License File: LICENSE

View File

@ -186,21 +186,6 @@ LIBYUV_API
int ARGBSepia(uint8* dst_argb, int dst_stride_argb,
int x, int y, int width, int height);
// Deprecated. Use ARGBColorMatrix instead.
// Apply a matrix rotation to each ARGB pixel.
// matrix_argb is 3 signed ARGB values. -128 to 127 representing -1 to 1.
// The first 4 coefficients apply to B, G, R, A and produce B of the output.
// The next 4 coefficients apply to B, G, R, A and produce G of the output.
// The last 4 coefficients apply to B, G, R, A and produce R of the output.
LIBYUV_API
int RGBColorMatrix(uint8* dst_argb, int dst_stride_argb,
const int8* matrix_rgb,
int x, int y, int width, int height);
// Temporary API mapper.
// #define ARGBColorMatrix(d, s, m, x, y, w, h) \
// RGBColorMatrix(d, s, m, x, y, w, h)
// Apply a matrix rotation to each ARGB pixel.
// matrix_argb is 4 signed ARGB values. -128 to 127 representing -2 to 2.
// The first 4 coefficients apply to B, G, R, A and produce B of the output.
@ -213,6 +198,29 @@ int ARGBColorMatrix(const uint8* src_argb, int src_stride_argb,
const int8* matrix_argb,
int width, int height);
// Deprecated. Use ARGBColorMatrix instead.
// Apply a matrix rotation to each ARGB pixel.
// matrix_argb is 3 signed ARGB values. -128 to 127 representing -1 to 1.
// The first 4 coefficients apply to B, G, R, A and produce B of the output.
// The next 4 coefficients apply to B, G, R, A and produce G of the output.
// The last 4 coefficients apply to B, G, R, A and produce R of the output.
LIBYUV_API
int RGBColorMatrix(uint8* dst_argb, int dst_stride_argb,
const int8* matrix_rgb,
int x, int y, int width, int height);
#ifdef __cplusplus
} // extern "C"
// Deprecated. Temporary API mapper.
int inline ARGBColorMatrix(uint8* dst_argb, int dst_stride_argb,
const int8* matrix_rgb,
int x, int y, int width, int height) {
return RGBColorMatrix(dst_argb, dst_stride_argb, matrix_rgb,
x, y, width, height);
}
extern "C" {
#endif
// Apply a color table each ARGB pixel.
// Table contains 256 ARGB values.
LIBYUV_API

View File

@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 805
#define LIBYUV_VERSION 806
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT