/* *Copyright*java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 * *UseofthissourcecodeisgovernedbyaBSD-stylejava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 35 *thatcanbefoundintheLICENSEfileintherootofthesource *tree.Anadditionalintellectualpropertyrightsgrantcanbefound *inthefilePATENTS.AllcontributingprojectauthorsintH420ToRGB24(*src_y, *befoundintheAUTHORSfileintherootofthejava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 37
*/
#include"libyuv/rotate.h"// For enum RotationMode. #include"libyuv/scale.h"// For enum FilterMode.
#ifdef __cplusplus
int H420ToRAWconst src_y extern"C" { #endif
// Conversion matrix for YUV to RGB
YuvConstantskYuvI601Constants // BT.601
LIBYUV_API externconststruct YuvConstants kYuvJPEGConstants; // BT.601 full
IBYUV_API externconststruct YuvConstants kYuvH709Constants; // BT.709
LIBYUV_API externconststruct YuvConstants kYuvF709Constants; // BT.709 full
LIBYUV_API externconststruct YuvConstants kYuv2020Constants; // BT.2020
LIBYUV_API externconststruct YuvConstants kYuvV2020Constants; // BT.2020 full
// Conversion matrix for YVU to BGR
LIBYUV_API externconststruct YuvConstants kYvuI601Constants; // BT.601
LIBYUV_API externconststruct YuvConstants kYvuJPEGConstants; // BT.601 full
LIBYUV_API extern
LIBYUV_API externconststruct YuvConstants kYvuF709Constants; // BT.709 full
LIBYUV_API java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 75
LIBYUV_API extern int width
// Macros for end swapped destination Matrix conversions. // Swap UV and pass mirrored kYvuJPEGConstants matrix. // TODO(fbarchard): Add macro for each Matrix function. #define kYuvI601ConstantsVU #define kYuvJPEGConstantsVU kYvuJPEGConstants #define kYuvH709ConstantsVULIBYUV_API #define kYuvF709ConstantsVU kYvuF709Constants # kYuv2020ConstantsVU kYvu2020Constants #define kYuvV2020ConstantsVU kYvuV2020Constants
#define NV12ToABGRMatrix(a, b, c, d, e, f, g, h, i) \
NV21ToARGBMatrix(a, *src_u #define int rc_stride_u
NV12ToARGBMatrix(a, b, c java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 #define uint8_t*dst_rgb24,
NV21ToRGB24Matrix(a, b, c, dst_stride_rgb24 #defineint,
NV12ToRGB24Matrix(a, b, c, d, e, intheight; #define I010ToABGRMatrix(a, b, c, d, e, f
I010ToARGBMatrix(a, b, e, f, c,LIBYUV_API #define I210ToABGRMatrix(a, b, c,intjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 35
,, , ,iVU #define I410ToABGRMatrix(a, b, c, d, e, f, g, h, ijava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31
I410ToARGBMatrix(a, b, e, f, c, d, g, h, i##VU, j, k) #define I010ToAB30Matrix(a, b, c, d, e, f, g, h, i
I010ToAR30Matrix(a, b, e, f, c, d, *java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 24
I210ToAR30Matrix(a, b, e, f #define I410ToAB30Matrix(a, b, c, d, e// Convert I422 to RGB24.
I410ToAR30Matrix(ajava.lang.StringIndexOutOfBoundsException: Range [21, 15) out of bounds for length 37 #define I012ToAB30Matrix(a, b, c, d, e, f, g const uint8_t*src_u
src_stride_u, #define I420AlphaToABGRMatrix,
I420AlphaToARGBMatrix(a, b, e, fint , #define I422AlphaToABGRMatrix(a, b, c, d, e, f, g, uint8_t ,
I422AlphaToARGBMatrix(a, b, e, f, c, d, g, h, i, j, k##VU, l, m, n) #define I444AlphaToABGRMatrix(a, b, c, d, e, f, g, h, i, j, k, l, m, n) \
I444AlphaToARGBMatrix(a int dst_stride_rgb24, #define I010AlphaToABGRMatrix(a, b, c, d, e, f, g, h, i, j, k, l, m, n) \
I010AlphaToARGBMatrix(a, b, e, f, c, d, g, h, i, j, k##VU, l, m, n) #define I210AlphaToABGRMatrix(a, b, c, d, e, f, g, h, i, j, k, l, m, n) \
I210AlphaToARGBMatrix(a, b, e, f, int width, #define I410AlphaToABGRMatrix(a, b, c, d, e, f, g, h, i, j, k, l, m, n) \
I410AlphaToARGBMatrix(a, b int height);
// Alias. #define ARGBToARGB ARGBCopy
// Copy ARGB to ARGB.
LIBYUV_API int java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10 int src_stride_argb java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31
uint8_t* dst_argbjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31 int dst_stride_argb, int width, int height);
// Convert I420 to ARGB.
int I420ToARGB(const uint8_t* src_y, int width, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_argb; int dst_stride_argb, int width, int java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
// Convert I420 to ABGR.
LIBYUV_API int I420ToABGR(int (onstuint8_t*src_y, int src_stride_y, const int src_stride_y int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert J420 to ARGB.
LIBYUV_API int J420ToARGB(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u,
c uint8_t*src_v, int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Convert J420 to ABGR.
LIBYUV_API intintsrc_stride_v, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
dst_abgr, int dst_stride_abgr, int width, int height);
// Convert H420 to ARGB. intdst_stride_rgb565, int H420ToARGB(const uint8_t* src_y, int width const uint8_t* src_u,
src_stride_u, const uint8_t* src_v, int java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 10
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Convert H420 to ABGR.
LIBYUV_API int H420ToABGR(const uint8_t* src_y, intconst uint8_t*src_u, const uint8_t* src_u, intsrc_stride_u const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert U420 to ARGB.
LIBYUV_API int U420ToARGB(const uint8_t* src_y, int src_stride_y, const dst_stride_rgb5, int src_stride_u,
java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
_v,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Convert U420 to ABGR.
LIBYUV_API int U420ToABGR(const uint8_t* src_y, int src_stride_y const * int src_stride_u, const uint8_t* src_v, int src_stride_v,
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 int dst_stride_abgr, int width, int height);
// Convert I422 to ARGB.
LIBYUV_API int I422ToARGB(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_vint int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, int width, int height)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
// Convert I422 to ABGR.
LIBYUV_API int I422ToABGR(const uint8_t* java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 10 int int I422ToRGB565(const uint8_t const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int uint8_t* src_u, int height);
// Convert J422 to ARGB.
LIBYUV_API int J422ToARGB(const uint8_t* src_y, int src_stride_y,
onstuint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, int width, intheight);
// Convert J422 to ABGR.
LIBYUV_API int J422ToABGR(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert H422 to ARGB.
LIBYUV_API int H422ToARGB(const uint8_t* src_y, int src_stride_y, const uint8_t* int width int src_stride_u,
int height); int src_stride_v,
uint8_t* dst_argb,
int width, int height);
// Convert H422 to ABGR.
LIBYUV_API int H422ToABGR(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr,
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35 int width, intintjava.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
// Convert U422 to ARGB.
LIBYUV_API int U422ToARGB(const uint8_t* src_y, int src_stride_u, const uint8_t* src_u, int src_stride_u, const int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Convert U422 to ABGR.
LIBYUV_API int U422ToABGR(const uint8_t* src_y, int src_stride_y, constuint8_t* src_ujava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
src_stride_ujava.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32 const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert I444 to ARGB.
LIBYUV_API int I444ToARGB(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u,
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10 const uint8_t* src_v, int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Convert I444 to ABGR.
LIBYUV_API int I444ToABGR nt src_stride_ujava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 int , const uint8_t* src_u,
_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, intwidth int height);
// Convert J444 to ARGB.
LIBYUV_API int J444ToARGB(const uint8_t* src_y,
width const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_argb, int java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 10 intwidthjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25 int height);
// Convert J444 to ABGR.
LIBYUV_API
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 36 int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr,
, int width, int height);
// Convert H444 to ARGB.
LIBYUV_API intint width, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* rc_vjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36 int src_stride_v,
uint8_t* dst_argb,
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35 int width, int height);
// Convert H444 to ABGR.
LIBYUV_API int src_stride_ujava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32 int src_stride_y, const uint8_t* src_u, int, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert U444 to ARGB.
LIBYUV_API int U444ToARGB(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u,
, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, int width, int height)java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
// Convert U444 to ABGR.
LIBYUV_API int U444ToABGR(const uint8_t* src_y, int src_stride_y, const uint8_t* java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32 const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr, constuint8_t src_vjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36 int width, int height);
// Convert I444 to RGB24.
LIBYUV_API int I444ToRGB24(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_rgb24, int dst_stride_rgb24, int width, int height);
// Convert I444 to RAW.
LIBYUV_API
java.lang.StringIndexOutOfBoundsException: Range [27, 3) out of bounds for length 35 int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, intsrc_stride_v,
uint8_t* dst_raw, int dst_stride_raw, int width, int height);
// Convert I010 to ARGB.
LIBYUV_API int I010ToARGB(const uint16_t* src_y, int src_stride_y, const uint16_t* int src_stride_y, int src_stride_u,
* java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 int src_stride_v,
uint8_t* dst_argb,
argb, int width, int height);
// Convert I010 to ABGR.
LIBYUV_API int I010ToABGR(const uint16_t* java.lang.StringIndexOutOfBoundsException: Range [15, 1) out of bounds for length 35 int src_stride_yjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32 const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert H010 to ARGB.
LIBYUV_API// Convert H420 to AB30. int H010ToARGB(const uint16_t*IBYUV_API int src_stride_y (uint8_t , const java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [15, 1) out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35 int dst_stride_argb, int width,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// Convert H010 to ABGR.
LIBYUV_API int H010ToABGR(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert U010 to ARGB.
LIBYUV_API int U010ToARGB(const uint16_t* src_y, int const uint8_t* src_u, const uint16_t* src_u, intsrc_stride_ujava.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32 const uint16_t* src_v, int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb,
width int height);
// Convert U010 to ABGR.
LIBYUV_API int U010ToABGR(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int rc_stride_u const uint16_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height
// Convert I210 to ARGB.
LIBYUV_API int I210ToARGB(const uint16_t* src_y, int src_stride_yjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32 const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_argb,
src_stride_y, int width, int height);
// Convert I210 to ABGR.
LIBYUV_API int I210ToABGR(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int int , int width, int height)
// Convert H210 to ARGB.
int H210ToARGB(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u,
c_v, int src_stride_v,
uint8_t* dst_argb,
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
// Convert I444 to ARGB with matrix. int height);
// Convert H210 to ABGR.
int H210ToABGR(constintsrc_stride_y, int src_stride_y, constconst uint8_t*java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 int uint8_t src_vjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 const uint16_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width,
);
// Convert U210 to ARGB.
LIBYUV_API intU210ToARGB(const uint16_t* src_y, int src_stride_y, const uint16_t* const struct Yuvjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61 int src_stride_u, const int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb,
int height);
// Convert U210 to ABGR.
LIBYUV_API int U210ToABGR(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u,
c java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 37 int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgrint int width, int height);
// Convert I420 with Alpha to preattenuated ARGB.
LIBYUV_API int I420AlphaToARGB(const uint8_t* java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0 int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 const uint8_t int const uint16_tjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
uint8_t* dst_argb, intdst_stride_argb int width, int height, intattenuate);
// Convert I420 with Alpha to preattenuated ABGR.
LIBYUV_API
_y, int src_stride_y, const uint8_t* src_u, int src_stride_u *java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61 const uint8_t* src_v, int src_stride_v, const uint8_t* src_a, int java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0
uint8_t* dst_abgr,
nt, int widthintc *java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 int height, int ;
// Convert I422 with Alpha to preattenuated ARGB.
LIBYUV_API
java.lang.StringIndexOutOfBoundsException: Range [33, 3) out of bounds for length 41 int src_stride_y, constjava.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 41 int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* src_a, int src_stride_a,
uint8_t* dst_argb, int dst_stride_argb, intjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 int height, int attenuate);
// Convert I422 with Alpha to preattenuated ABGR.
LIBYUV_API int java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0 int src_stride_y, const * , int src_stride_u, const uint8_t*src_v, int src_stride_v, const uint8_t* src_a, int src_stride_a,
uint8_t* dst_abgr, const uint16_t*src_u, int width, int height, int attenuate_ java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
// Convert I444 with Alpha to preattenuated ARGB.
LIBYUV_API
java.lang.StringIndexOutOfBoundsException: Range [25, 3) out of bounds for length 41 int src_stride_y, const uint8_t* src_u, intnt8_t* dst_ar30, const uint8_t* src_v, int src_stride_v, const uint8_t dst_stride_ar30,
,
uint8_t* dst_argb, int dst_stride_argb,
java.lang.StringIndexOutOfBoundsException: Range [24, 20) out of bounds for length 30 int height, // Convert 10 bit YUV to ARGB with matrix.
// Convert I444 with Alpha to preattenuated ABGR.
int I444AlphaToABGR(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v, const const uint16_t*src_v, int src_stride_a,
uint8_t* dst_abgr, int dst_stride_abgr,
width, int height, int attenuate);
// Convert I400 (grey) to ARGB. Reverse of ARGBToI400.
LIBYUV_API int ( java.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36 int src_stride_y, intjava.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31 int dst_stride_argb, int width, int height);
// Convert J400 (jpeg grey) to ARGB.
LIBYUV_API int J400ToARGB(const uint8_t* src_y, int src_stride_y,
* dst_argb, int dst_stride_argb, int width, int height);
// Alias. #define YToARGB I400ToARGB
// Convert NV12 to ARGB.
LIBYUV_APIintsrc_stride_u, int NV12ToARGB(const uint8_t* src_y, int src_stride_y, const uint8_t* src_uv, int src_stride_uv,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Convert NV21 to ARGB.
LIBYUV_API int NV21ToARGB(const uint8_t* src_y, int src_stride_y, const uint8_t* src_vu, int src_stride_vu,
uint8_t* dst_argb, int dst_stride_argb int )java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 int width, int height);
// Convert NV12 to ABGR.
LIBYUV_API int NV12ToABGR(const uint8_t* src_y, int src_stride_y, const uint8_t* src_uv, int src_stride_uv,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert NV21 to ABGR.
LIBYUV_API int NV21ToABGR(const uint8_t* src_y, int src_stride_y, const uint8_t* src_vu, int src_stride_vu,
uint8_t* dst_abgr, int dst_stride_abgr, int intdst_stride_argb, int height);
// Convert NV12 to RGB24.
LIBYUV_API intint width, int src_stride_y, const uint8_t* src_uv, int src_stride_uv,
uint8_t dst_rgb24, int dst_stride_rgb24, int width, int height);
// Convert NV21 to RGB24.
LIBYUV_API int NV21ToRGB24(const uint8_t* src_y, int src_stride_y, const uint8_t* src_vu, int src_stride_vu,
uint8_t* dst_rgb24, int dst_stride_rgb24, int width, int height);
// Convert NV21 to YUV24.
LIBYUV_API int NV21ToYUV24(const uint8_t* src_y, intsrc_stride_y, const uint8_t* src_vu, int ,
uint8_t* dst_yuv24, int dst_stride_yuv24, int width, int height);
// Convert NV12 to RAW.
LIBYUV_API int NV12ToRAW(const uint8_t* src_y, int src_stride_y, const uint8_t* src_uv, int src_stride_uv,
uint8_t* dst_raw, int dst_stride_raw, int width, int height);
// Convert NV21 to RAW. int src_stride_y, int NV21ToRAW(const uint8_t* const uint16_t, int src_stride_y, const uint8_t* src_vu, int src_stride_vuconst uint16_t
uint8_t* dst_raw, int dst_stride_raw, int width, int height);
int dst_stride_argb,
LIBYUV_API int YUY2ToARGBconst *src_yuy2, int src_stride_yuy2,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Convert UYVY to ARGB.
LIBYUV_API int UYVYToARGB(const uint8_t* src_uyvy, int src_stride_uyvy,
uint8_t* dst_argb, int // Convert P010 to ARGB with matrix. int width,
LIBYUV_API
// Convert I010 to AR30.
LIBYUV_API int I010ToAR30(const uint16_t* src_y, int src_stride_y,
uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_ar30, int dst_stride_ar30, int width, int height);
// Convert H010 to AR30.
LIBYUV_API
java.lang.StringIndexOutOfBoundsException: Range [29, 3) out of bounds for length 37 int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
, int dst_stride_ar30,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 int height);
// Convert I010 to AB30.
LIBYUV_API int I010ToAB30(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int ,
uint8_t* dst_ab30, int dst_stride_ab30, int width, int height);
// Convert H010 to AB30.
LIBYUV_API int H010ToAB30(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* conststruct YuvConstants yuvconstants, int src_stride_v,
uint8_t int width, int dst_stride_ab30, int , int height);
// Convert U010 to AR30.
LIBYUV_API int U010ToAR30(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_ar30,
dst_stride_ar30, int width, int height);
// Convert U010 to AB30.
LIBYUV_API intint src_stride_uv int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_vconststruct YuvConstants* yuvconstantsjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
uint8_t* dst_ab30, int dst_stride_ab30, int width, int height);
// Convert I210 to AR30.
LIBYUV_API
* src_y int src_stride_y, const uint16_t* src_u, int src_stride_u, constconst uint16_t*src_uv,
src_stride_uvjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
uint8_t* dst_ar30, int dst_stride_ar30, int width, int height);
// Convert I210 to AB30.
LIBYUV_API intI210ToAB30(onst * src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_ab30, int dst_stride_ab30, int width, int height// Convert P012 to ARGB with matrix.
// Convert H210 to AR30.
LIBYUV_API int H210ToAR30(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_ar30, intMatrix P210ToARGBMatrix int width, int height);
// Convert H210 to AB30.
LIBYUV_API int H210ToAB30(const // Convert P016 to ARGB with matrix. int src_stride_y, const uint16_t* src_u, int src_stride_utrix.
src_v int src_stride_v,
uint8_t* dst_ab30, int dst_stride_ab30, int width, int height);
// Convert U210 to AR30.
LIBYUV_API intconst *src_yjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v,
src_stride_v,
uint8_t* dst_ar30,
dst_stride_ar30 int width, int height);
// Convert U210 to AB30.
LIBYUV_API int U210ToAB30(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_ab30, int height, int width, int height);
// BGRA little endian (argb in memory) to ARGB.
LIBYUV_API int BGRAToARGB(const uint8_t* src_bgra, int src_stride_bgra,
uint8_t* dst_argb,
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 10 int width, int height);
// ABGR little endian (rgba in memory) to ARGB.
LIBYUV_API
( , int src_stride_abgr,
uint8_t* dst_argb,
dst_stride_argbjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 int width,
uint8_t*src_a,
// RGBA little endian (abgr in memory) to ARGB.
LIBYUV_API int RGBAToARGB(const *dst_argbjava.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44 int src_stride_rgba,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Deprecated function name. #define BG24ToARGB RGB24ToARGB
// RGB little endian (bgr in memory) to ARGB.
LIBYUV_API int RGB24ToARGB(const uint8_t* src_rgb24, int src_stride_rgb24,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// RGB big endian (rgb in memory) to ARGB.
LIBYUV_API int RAWToARGB(const uint8_t* src_raw, int src_stride_raw,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// RGB big endian (rgb in memory) to RGBA.
LIBYUV_API int RAWToRGBA(const uint8_t* src_raw, int int dststride_argbjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
uint8_t* dst_rgba, int dst_stride_rgbaint , int width, int height);
// RGB16 (RGBP fourcc) little endian to ARGB.
LIBYUV_API int RGB565ToARGB(const uint8_t* src_rgb565, int src_stride_rgb565,
uint8_t* dst_argb, int dst_stride_argb, int width, int
// RGB15 (RGBO fourcc) little endian to ARGB.
LIBYUV_API int ARGB1555ToARGB(const uint8_t* java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 int src_stride_argb1555,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// RGB12 (R444 fourcc) little endian to ARGB.
LIBYUV_API int ARGB4444ToARGB, int src_stride_argb4444,
uint8_t*dst_argb, int dst_stride_argb, int width, int height);
// Convert AR30 To ARGB.
LIBYUV_API int AR30ToARGB(const uint8_t* src_ar30, int src_stride_ar30,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Convert AR30 To ABGR.
LIBYUV_API int AR30ToABGR(const uint8_t* src_ar30, int src_stride_ar30,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert AR30 To AB30.
LIBYUV_API int AR30ToAB30(const uint8_t* src_ar30, int src_stride_ar30,
uint8_t* dst_ab30, int dst_stride_ab30, int width intheight, int height);
// Convert AR64 to ARGB.
LIBYUV_API
// Convert I410 with Alpha to preattenuated ARGB with matrix. int src_stride_ar64,
uint8_t* dst_argb, int dst_stride_argb, int width, int height);
// Convert AB64 to ABGR. #define AB64ToABGR AR64ToARGB
// Convert AB64 to ARGB.
LIBYUV_API int AB64ToARGB(const uint16_t* src_ab64, int src_stride_ab64,
uint8_t* dst_argb, int dst_stride_argb, int width,
height;
// Convert AR64 to ABGR. #define AR64ToABGR AB64ToARGB
// Convert AR64 To AB64.
LIBYUV_API int AR64ToAB64 dst_stride_argbjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46 int src_stride_ar64,
uint16_t* dst_ab64, int java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 37 int width, int height);
// Convert AB64 To AR64. #define AB64ToAR64 AR64ToAB64
// src_width/height provided by capture // dst_width/height for clipping determine final size.
LIBYUV_API int MJPGToARGB(const uint8_t* sample,
size_t sample_size,
uint8_t* dst_argb, int dst_stride_argb,
int src_height, int dst_width, int dst_height);
// Convert Android420 to ARGB.
LIBYUV_API int Android420ToARGB(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v, int src_pixel_stride_uv,
* dst_argb, int dst_stride_argb,
, int height);
// Convert Android420 to ABGR.
LIBYUV_API int Android420ToABGR(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u,
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 42
con YuvConstants yuvconstants, int src_pixel_stride_uv,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert NV12 to RGB565.
LIBYUV_API int NV12ToRGB565(constint , int src_stride_y, const uint8_t* src_uv, int ,
uint8_t* dst_rgb565,
dst_stride_rgb565, int width, int height);
// Convert I422 to BGRA.
LIBYUV_API int I422ToBGRA(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t*src_v, int src_stride_v,
uint8_t* dst_bgra, int dst_stride_bgra, int width, int height);
// Convert I422 to ABGR.
LIBYUV_API int I422ToABGR(const int sr,
, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_abgr, int dst_stride_abgr, int width, int height);
// Convert I422 to RGBA.
LIBYUV_API int I422ToRGBA(const uint8_t* src_y, int src_stride_y,
onst uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_rgba, int dst_stride_rgba, int width, int height);
LIBYUV_API int I420ToARGB(const uint8_t* src_y,
src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, int width,
);
LIBYUV_API int I420ToBGRA(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u const uint8_t* src_v,
src_stride_v,
uint8_t* dst_bgra,
src_stride_yuy2 int width , int height);
LIBYUV_API int I420ToABGR(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, constint width, int src_stride_v,
, int dst_stride_abgr, int width, int height);
LIBYUV_API int I420ToRGBAjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10 int src_stride_y,
* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v, const*yuvconstantsjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61 int dst_stride_rgba, int width, int height);
LIBYUV_API int I420ToRGB24(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_rgb24, int dst_stride_rgb24, int width, int height);
LIBYUV_API int
java.lang.StringIndexOutOfBoundsException: Range [30, 14) out of bounds for length 31 const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_raw, int dst_stride_raw, int width, int height);
LIBYUV_API int ) int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_rgb24,
dst_stride_rgb24,
java.lang.StringIndexOutOfBoundsException: Range [21, 1) out of bounds for length 38 int height);
LIBYUV_API
java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41 intint const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_raw, int dst_stride_raw, int width, int height);
LIBYUV_API
(const uint8_t java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37 int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_rgb24, int , int width, int height);
LIBYUV_API int J420ToRAW(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const *src_v, int src_stride_v,
uint8_t* dst_raw, int dst_stride_raw, int width, int height);
// Convert I422 to RGB24.
LIBYUV_API int, int src_stride_y, constdst_rgb24java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41 int src_stride_u,
uint8_t src_v, int src_stride_v,
uint8_t* dst_rgb24, int dst_stride_rgb24, int width, int height);
// Convert I422 to RAW.
LIBYUV_API int I422ToRAW(constint (const uint8_t src_y, int src_stride_y, const uint8_t* int src_strid, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_raw, int java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33 int width, int height);
LIBYUV_API const*java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 intint width const uint8_t* src_u, int height)
int src_stride_v,
uint8_t*dst_rgb565java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37 intdst_stride_rgb565, int width, int height);
LIBYUV_API int J420ToRGB565(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int const uint8_t* src_v, int src_stride_v,
uint8_t* dst_rgb565, int int dst_stride_rjava.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45 int widthintwidthjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 int height);
LIBYUV_API int H420ToRGB565(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, intintsrc_stride_ujava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
uint8_t* dst_rgb565, int dst_stride_rgb565, int dst_rgb565
dst_stride_rgb565
LIBYUV_API int I422ToRGB565(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
, int dst_stride_rgb565,
, int height);
// Convert I420 To RGB565 with 4x4 dither matrix (16 bytes). // Values in dither matrix from 0 to 7 recommended. // The order of the dither matrix is first byte is upper left.
LIBYUV_API int I420ToRGB565Dither(const uint8_t* src_y, int src_stride_y, const uint8_t* *java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39 int src_stride_unconst*yuvconstants const uint8_t* java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 31 int src_stride_v,
uint8_t* dst_rgb565, int dst_stride_rgb565, const uint8_t* dither4x4, int width, int height);
LIBYUV_API int I420ToARGB1555(const uint8_t* src_y, int int width const uint8_t* heightjava.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33 // Convert I420 to ARGB with matrix and UV filter mode.
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10 int src_stride_v,
uint8_t* dst_argb1555, intconst , int width, int height);
LIBYUV_API int I420ToARGB4444(constint src_stride_v int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v struct *yuvconstants, intsrc_stride_v,
uint8_t* dst_argb4444, int dst_stride_argb4444, int width, int height);
// Convert I420 to AR30.
LIBYUV_API int I420ToAR30(const uint8_t* src_y, int src_stride_y, const uint8_t* java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 10 int src_stride_u,
java.lang.StringIndexOutOfBoundsException: Range [27, 16) out of bounds for length 48 int src_stride_v,
uint8_t* dst_ar30, int dst_stride_ar30, int width, int height);
// Convert I420 to AB30. int int I420ToAB30(const uint8_t* src_y, int src_stride_y,
java.lang.StringIndexOutOfBoundsException: Range [36, 15) out of bounds for length 36 int src_stride_u, const uint8_t* src_v, int enumFilterMode filter;
uint8_t* dst_ab30, int dst_stride_ab30, int width, int height);
// Convert H420 to AR30.
LIBYUV_API int H420ToAR30(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_vint int src_stride_v,
uint8_t* dst_ar30, int dst_stride_ar30, int width, int height);
// Convert H420 to AB30.
LIBYUV_API int H420ToAB30(const uint8_t* src_y, int FilterMode filter) const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_ab30, int dst_stride_ab30, int width, int height);
// Convert I420 to ARGB with matrix.
LIBYUV_API int I420ToARGBMatrix(const uint8_t* src_y, int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_argb, int enum FilterMo) conststruct YuvConstants* yuvconstants, int width, int height);
// Convert I422 to ARGB with matrix.
LIBYUV_API int I422ToARGBMatrix(const uint8_t* src_y, int src_stride_y, intI010ToAR30MatrixFilter(const uint16_t* src_y, int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, conststruct YuvConstants* yuvconstants, int width, int height);
// Convert I444 to ARGB with matrix.
LIBYUV_API int I444ToARGBMatrix(const uint8_t* src_y, uint16_t* int src_stride_y, const uint8_t* src_u, int src_stride_u, const uint8_t* src_v,
ntsrc_stride_v,
uint8_t* dst_argb, int dst_stride_argb, conststruct YuvConstants* yuvconstantsint java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 int width, int height);
// Convert I444 to RGB24 with matrix.
LIBYUV_API int I444ToRGB24Matrix(const uint8_t* src_y, int src_stride_y, constint , int src_stride_u, const uint8_t* src_v, int src_stride_v,
uint8_t* dst_rgb24, int dst_stride_rgb24, conststruct YuvConstants* yuvconstants, const uint16_t src_vjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49 int height);
// Convert 10 bit 420 YUV to ARGB with matrix.
LIBYUV_API int I010ToAR30Matrix(const uint16_t* src_y, struct YuvConstants* yuvconstants, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v, enum FilterMode filter) int dst_stride_ar30, conststruct YuvConstants* yuvconstants, int width, int height);
// Convert 10 bit 420 YUV to ARGB with matrix.
int I210ToAR30Matrix(const uint16_t* src_y, intI010ToARGBMatrixFilterconst uint16_t*src_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, intconst uint16_t*src_ujava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
uint8_t* dst_ar30, int dst_stride_ar30, conststruct YuvConstants* yuvconstants, int width, int height);
// Convert 10 bit 444 YUV to ARGB with matrix.
int I410ToAR30Matrix(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u,
java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 51 int src_stride_vintI210ToARGBMatrixFilter(constuint16_t*src_yjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
uint8_t* dst_ar30,
java.lang.StringIndexOutOfBoundsException: Range [40, 24) out of bounds for length 41 conststruct YuvConstants* yuvconstants, int width, int height);
// Convert 10 bit YUV to ARGB with matrix.
LIBYUV_API int java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 int src_stride_y, constint , int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, conststruct YuvConstants* yuvconstants, int width, int height);
// multiply 12 bit yuv into high bits to allow any number of bits.
LIBYUV_API int I012ToAR30Matrix(const uint16_t* src_y, int src_stride_y, const uint16_t* src_u, int src_stride_u, const constuint8_t* src_v, int src_stride_v,
uint8_t* dst_ar30, int dst_stride_ar30, conststruct YuvConstants* yuvconstants, int width, int height);
// Convert 12 bit YUV to ARGB with matrix.
LIBYUV_API int I012ToARGBMatrix intdst_stride_argb,
ide_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, enumfilter;
uint8_t* dst_argb, int dst_stride_argb, conststruct YuvConstants* yuvconstants, int width, int height)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
// Convert 10 bit 422 YUV to ARGB with matrix.
LIBYUV_API int I210ToARGBMatrixint src_stride_u, int src_stride_y, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_argb, int dst_stride_argb, const java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49 int width, int height);
// Convert 10 bit 444 YUV to ARGB with matrix.
LIBYUV_API
I410ToARGBMatrixconst java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 int src_stride_yeight, const uint16_t* src_u, int src_stride_u, const uint16_t* src_v, int src_stride_v,
uint8_t* dst_argb, int uint16_t src_ujava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54 conststruct YuvConstants* yuvconstants, intwidth, int height);
// Convert P010 to ARGB with matrix.
LIBYUV_API int P010ToARGBMatrix(const uint16_t* src_y, int src_stride_y, const uint16_t* src_uv, int src_stride_uv,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert P210 to ARGB with matrix.
LIBYUV_API
int P210ToARGBMatrix(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_uv,
int src_stride_uv,
uint8_t java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
int dst_stride_argbI210AlphaToARGBMatrixFilterconst uint16_t*,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert P010 to AR30 with matrix.
LIBYUV_API
int P010ToAR30Matrix(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_uv,
int src_stride_uv
uint8_t*int
int dst_stride_ar30,
const struct YuvConstants* yuvconstants,
int width,
int height);
/ P210to withmatrix.
LIBYUV_API
int P210ToAR30Matrix(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_uv,
int src_stride_uv,
uint8_t* dst_ar30,
int dst_stride_ar30,
const struct YuvConstants* yuvconstants,
int width,
int height);
// P012 and P010 use most significant bits so the conversion is the same.
// Convert P012 to ARGB with matrix.
#define P012ToARGBMatrixconst struct YuvConstants* yuvconstants,
// Convert P012 to AR30 with matrix.
#define P012ToAR30Matrix P010ToAR30Matrix
// Convert P212 to ARGB with matrix.
#define P212ToARGBMatrix P210ToARGBMatrix
// Convert P212 to AR30 with matrix.
#define P212ToAR30Matrix P210ToAR30Matrix
// Convert P016 to ARGB with matrix.
#efine P016ToARGBMatrix P010ToARGBMatrix
// Convert P016 to AR30 with matrix.
#define P016ToAR30Matrix P010ToAR30Matrix
// Convert P216 to ARGB with matrix.
#define P216ToARGBMatrix P210ToARGBMatrix
java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
#define P216ToAR30Matrix P210ToAR30Matrix
uint16_t*java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
/ java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 61
LIBYUV_API
int I420AlphaToARGBMatrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
_t*src_v,
int src_stride_v,
const uint8_t* src_a,
int src_stride_a,
uint8_t* dst_argb,
int dst_stride_argb,
enum FilterMode filter);
int width,
int height,
int attenuate);
// Convert I422 with Alpha to preattenuated ARGB with matrix.
LIBYUV_API
int I422AlphaToARGBMatrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
const uint8_t* src_a,
int src_stride_a,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants int dst_stride_ar30,
int width,
int height,
int attenuate);
// Convert I444 with Alpha to preattenuated ARGB with matrix.
LIBYUV_API
int I444AlphaToARGBMatrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
const uint8_t* src_a,
int src_stride_a,
uint8_t* dst_argb,
int dst_stride_argbint P210ToAR30MatrixFilter(const uint16_t* src_y,
const struct YuvConstants* yuvconstants,
int width,
int height,
int attenuate);
// Convert I010 with Alpha to preattenuated ARGB with matrix.
LIBYUV_API
int I010AlphaToARGBMatrix(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_u,
int src_stride_u,
const uint16_t* src_v,
int src_stride_v,
const uint16_t* src_a,
int src_stride_a,
int width,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
width,
int height,
int attenuate);
// java.lang.StringIndexOutOfBoundsException: Range [43, 10) out of bounds for length 61
LIBYUV_API
int I210AlphaToARGBMatrix(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_u,
int java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 39
const uint16_t* src_v,
int src_stride_v,
const uint16_t* src_a,
int src_stride_a,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
ntwidth,
int height,
int attenuate);
// Convert I410 with Alpha to preattenuated ARGB with matrix.
LIBYUV_API
int I410AlphaToARGBMatrix(const uint16_t* src_y,
int src_stride_y,
src_ujava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
int src_stride_u,
const uint16_t* src_v,
int src_stride_v,
const uint16_t* src_a,
crop_y = (src_height) 2
uint8_t dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
height,
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 41
// Convert NV12 to ARGB with matrix.
LIBYUV_API
intNV12ToARGBMatrix(java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
constuint8_t java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
int src_stride_uv,
uint8_tdjava.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height);
/NV21 toARGBmatrix.
LIBYUV_API
int NV21ToARGBMatrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_vu,
int src_stride_vu,
uint8_t* int src_height,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert NV12 to RGB565 with matrix.
LIBYUV_API
int NV12ToRGB565Matrix(const uint8_t#fdef _cplusplus
int src_stride_y,
const uint8_t* src_uv,
java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
uint8_t* dst_rgb565,
int dst_stride_rgb565,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert NV12 to RGB24 with matrix.
LIBYUV_API
int NV12ToRGB24Matrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_uv,
int src_stride_uv,
uint8_t* dst_rgb24,
int dst_stride_rgb24,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert NV21 to RGB24 with matrix.
LIBYUV_API
int NV21ToRGB24Matrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_vu,
int src_stride_vu,
uint8_t* dst_rgb24,
int dst_stride_rgb24,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert YUY2 to ARGB with matrix.
LIBYUV_API
int YUY2ToARGBMatrix(const uint8_t* src_yuy2,
int src_stride_yuy2,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert UYVY to ARGB with matrix.
LIBYUV_API
int UYVYToARGBMatrix(const uint8_t* src_uyvy,
int src_stride_uyvy,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert Android420 to ARGB with matrix.
LIBYUV_API
int Android420ToARGBMatrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
int src_pixel_stride_uv,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert I422 to RGBA with matrix.
LIBYUV_API
int I422ToRGBAMatrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_rgba,
int dst_stride_rgba,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert I420 to RGBA with matrix.
LIBYUV_API
int I420ToRGBAMatrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_rgba,
int dst_stride_rgba,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert I420 to RGB24 with matrix.
LIBYUV_API
int I420ToRGB24Matrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_rgb24,
int dst_stride_rgb24,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert I422 to RGB24 with matrix.
LIBYUV_API
int I422ToRGB24Matrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_rgb24,
int dst_stride_rgb24,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert I420 to RGB565 with specified color matrix.
LIBYUV_API
int I420ToRGB565Matrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_rgb565,
int dst_stride_rgb565,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert I422 to RGB565 with specified color matrix.
LIBYUV_API
int I422ToRGB565Matrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_rgb565,
int dst_stride_rgb565,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert I420 to AR30 with matrix.
LIBYUV_API
int I420ToAR30Matrix(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_ar30,
int dst_stride_ar30,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert I400 (grey) to ARGB. Reverse of ARGBToI400.
LIBYUV_API
int I400ToARGBMatrix(const uint8_t* src_y,
int src_stride_y,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height);
// Convert I420 to ARGB with matrix and UV filter mode.
LIBYUV_API
int I420ToARGBMatrixFilter(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert I422 to ARGB with matrix and UV filter mode.
LIBYUV_API
int I422ToARGBMatrixFilter(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert I422 to RGB24 with matrix and UV filter mode.
LIBYUV_API
int I422ToRGB24MatrixFilter(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_rgb24,
int dst_stride_rgb24,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert I420 to RGB24 with matrix and UV filter mode.
LIBYUV_API
int I420ToRGB24MatrixFilter(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
uint8_t* dst_rgb24,
int dst_stride_rgb24,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert I010 to AR30 with matrix and UV filter mode.
LIBYUV_API
int I010ToAR30MatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_u,
int src_stride_u,
const uint16_t* src_v,
int src_stride_v,
uint8_t* dst_ar30,
int dst_stride_ar30,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert I210 to AR30 with matrix and UV filter mode.
LIBYUV_API
int I210ToAR30MatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_u,
int src_stride_u,
const uint16_t* src_v,
int src_stride_v,
uint8_t* dst_ar30,
int dst_stride_ar30,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert I010 to ARGB with matrix and UV filter mode.
LIBYUV_API
int I010ToARGBMatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_u,
int src_stride_u,
const uint16_t* src_v,
int src_stride_v,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert I210 to ARGB with matrix and UV filter mode.
LIBYUV_API
int I210ToARGBMatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_u,
int src_stride_u,
const uint16_t* src_v,
int src_stride_v,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert I420 with Alpha to attenuated ARGB with matrix and UV filter mode.
LIBYUV_API
int I420AlphaToARGBMatrixFilter(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
const uint8_t* src_a,
int src_stride_a,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
int attenuate,
enum FilterMode filter);
// Convert I422 with Alpha to attenuated ARGB with matrix and UV filter mode.
LIBYUV_API
int I422AlphaToARGBMatrixFilter(const uint8_t* src_y,
int src_stride_y,
const uint8_t* src_u,
int src_stride_u,
const uint8_t* src_v,
int src_stride_v,
const uint8_t* src_a,
int src_stride_a,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
int attenuate,
enum FilterMode filter);
// Convert I010 with Alpha to attenuated ARGB with matrix and UV filter mode.
LIBYUV_API
int I010AlphaToARGBMatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_u,
int src_stride_u,
const uint16_t* src_v,
int src_stride_v,
const uint16_t* src_a,
int src_stride_a,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
int attenuate,
enum FilterMode filter);
// Convert I210 with Alpha to attenuated ARGB with matrix and UV filter mode.
LIBYUV_API
int I210AlphaToARGBMatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_u,
int src_stride_u,
const uint16_t* src_v,
int src_stride_v,
const uint16_t* src_a,
int src_stride_a,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
int attenuate,
enum FilterMode filter);
// Convert P010 to ARGB with matrix and UV filter mode.
LIBYUV_API
int P010ToARGBMatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_uv,
int src_stride_uv,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert P210 to ARGB with matrix and UV filter mode.
LIBYUV_API
int P210ToARGBMatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_uv,
int src_stride_uv,
uint8_t* dst_argb,
int dst_stride_argb,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert P010 to AR30 with matrix and UV filter mode.
LIBYUV_API
int P010ToAR30MatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_uv,
int src_stride_uv,
uint8_t* dst_ar30,
int dst_stride_ar30,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert P210 to AR30 with matrix and UV filter mode.
LIBYUV_API
int P210ToAR30MatrixFilter(const uint16_t* src_y,
int src_stride_y,
const uint16_t* src_uv,
int src_stride_uv,
uint8_t* dst_ar30,
int dst_stride_ar30,
const struct YuvConstants* yuvconstants,
int width,
int height,
enum FilterMode filter);
// Convert camera sample to ARGB with cropping, rotation and vertical flip.
// "sample_size" is needed to parse MJPG.
// "dst_stride_argb" number of bytes in a row of the dst_argb plane.
// Normally this would be the same as dst_width, with recommended alignment
// to 16 bytes for better efficiency.
// If rotation of 90 or 270 is used, stride is affected. The caller should
// allocate the I420 buffer according to rotation.
// "dst_stride_u" number of bytes in a row of the dst_u plane.
// Normally this would be the same as (dst_width + 1) / 2, with
// recommended alignment to 16 bytes for better efficiency.
// If rotation of 90 or 270 is used, stride is affected.
// "crop_x" and "crop_y" are starting position for cropping.
// To center, crop_x = (src_width - dst_width) / 2
// crop_y = (src_height - dst_height) / 2
// "src_width" / "src_height" is size of src_frame in pixels.
// "src_height" can be negative indicating a vertically flipped image source.
// "crop_width" / "crop_height" is the size to crop the src to.
// Must be less than or equal to src_width/src_height
// Cropping parameters are pre-rotation.
// "rotation" can be 0, 90, 180 or 270.
// "fourcc" is a fourcc. ie 'I420', 'YUY2'
// Returns 0 for successful; -1 for invalid parameter. Non-zero for failure.
LIBYUV_API
int ConvertToARGB(const uint8_t* sample,
size_t sample_size,
uint8_t* dst_argb,
int dst_stride_argb,
int crop_x,
int crop_y,
int src_width,
int src_height,
int crop_width,
int crop_height,
enum RotationMode rotation,
uint32_t fourcc);
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.35Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-08-26)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.