webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
convert.h File Reference
#include "libyuv/basic_types.h"
#include "libyuv/rotate.h"
#include "libyuv/convert_argb.h"
#include "libyuv/convert_from.h"
#include "libyuv/planar_functions.h"

Go to the source code of this file.

Macros

#define I420ToI420   I420Copy
 
#define J400ToJ420   I400ToI420
 

Functions

LIBYUV_API int I444ToI420 (const uint8 *src_y, int src_stride_y, const uint8 *src_u, int src_stride_u, const uint8 *src_v, int src_stride_v, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int I422ToI420 (const uint8 *src_y, int src_stride_y, const uint8 *src_u, int src_stride_u, const uint8 *src_v, int src_stride_v, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int I420Copy (const uint8 *src_y, int src_stride_y, const uint8 *src_u, int src_stride_u, const uint8 *src_v, int src_stride_v, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int I400ToI420 (const uint8 *src_y, int src_stride_y, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int NV12ToI420 (const uint8 *src_y, int src_stride_y, const uint8 *src_uv, int src_stride_uv, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int NV21ToI420 (const uint8 *src_y, int src_stride_y, const uint8 *src_vu, int src_stride_vu, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int YUY2ToI420 (const uint8 *src_yuy2, int src_stride_yuy2, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int UYVYToI420 (const uint8 *src_uyvy, int src_stride_uyvy, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int M420ToI420 (const uint8 *src_m420, int src_stride_m420, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int Android420ToI420 (const uint8 *src_y, int src_stride_y, const uint8 *src_u, int src_stride_u, const uint8 *src_v, int src_stride_v, int pixel_stride_uv, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int ARGBToI420 (const uint8 *src_frame, int src_stride_frame, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int BGRAToI420 (const uint8 *src_frame, int src_stride_frame, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int ABGRToI420 (const uint8 *src_frame, int src_stride_frame, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int RGBAToI420 (const uint8 *src_frame, int src_stride_frame, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int RGB24ToI420 (const uint8 *src_frame, int src_stride_frame, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int RAWToI420 (const uint8 *src_frame, int src_stride_frame, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int RGB565ToI420 (const uint8 *src_frame, int src_stride_frame, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int ARGB1555ToI420 (const uint8 *src_frame, int src_stride_frame, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int ARGB4444ToI420 (const uint8 *src_frame, int src_stride_frame, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int width, int height)
 
LIBYUV_API int ConvertToI420 (const uint8 *src_frame, size_t src_size, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int crop_x, int crop_y, int src_width, int src_height, int crop_width, int crop_height, enum RotationMode rotation, uint32 format)
 

Macro Definition Documentation

◆ I420ToI420

#define I420ToI420   I420Copy

◆ J400ToJ420

#define J400ToJ420   I400ToI420

Function Documentation

◆ ABGRToI420()

LIBYUV_API int ABGRToI420 ( const uint8 src_frame,
int  src_stride_frame,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ Android420ToI420()

LIBYUV_API int Android420ToI420 ( const uint8 src_y,
int  src_stride_y,
const uint8 src_u,
int  src_stride_u,
const uint8 src_v,
int  src_stride_v,
int  pixel_stride_uv,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ ARGB1555ToI420()

LIBYUV_API int ARGB1555ToI420 ( const uint8 src_frame,
int  src_stride_frame,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ ARGB4444ToI420()

LIBYUV_API int ARGB4444ToI420 ( const uint8 src_frame,
int  src_stride_frame,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ ARGBToI420()

LIBYUV_API int ARGBToI420 ( const uint8 src_frame,
int  src_stride_frame,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ BGRAToI420()

LIBYUV_API int BGRAToI420 ( const uint8 src_frame,
int  src_stride_frame,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ ConvertToI420()

LIBYUV_API int ConvertToI420 ( const uint8 src_frame,
size_t  src_size,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  crop_x,
int  crop_y,
int  src_width,
int  src_height,
int  crop_width,
int  crop_height,
enum RotationMode  rotation,
uint32  format 
)

◆ I400ToI420()

LIBYUV_API int I400ToI420 ( const uint8 src_y,
int  src_stride_y,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ I420Copy()

LIBYUV_API int I420Copy ( const uint8 src_y,
int  src_stride_y,
const uint8 src_u,
int  src_stride_u,
const uint8 src_v,
int  src_stride_v,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ I422ToI420()

LIBYUV_API int I422ToI420 ( const uint8 src_y,
int  src_stride_y,
const uint8 src_u,
int  src_stride_u,
const uint8 src_v,
int  src_stride_v,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ I444ToI420()

LIBYUV_API int I444ToI420 ( const uint8 src_y,
int  src_stride_y,
const uint8 src_u,
int  src_stride_u,
const uint8 src_v,
int  src_stride_v,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ M420ToI420()

LIBYUV_API int M420ToI420 ( const uint8 src_m420,
int  src_stride_m420,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ NV12ToI420()

LIBYUV_API int NV12ToI420 ( const uint8 src_y,
int  src_stride_y,
const uint8 src_uv,
int  src_stride_uv,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ NV21ToI420()

LIBYUV_API int NV21ToI420 ( const uint8 src_y,
int  src_stride_y,
const uint8 src_vu,
int  src_stride_vu,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ RAWToI420()

LIBYUV_API int RAWToI420 ( const uint8 src_frame,
int  src_stride_frame,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ RGB24ToI420()

LIBYUV_API int RGB24ToI420 ( const uint8 src_frame,
int  src_stride_frame,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ RGB565ToI420()

LIBYUV_API int RGB565ToI420 ( const uint8 src_frame,
int  src_stride_frame,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ RGBAToI420()

LIBYUV_API int RGBAToI420 ( const uint8 src_frame,
int  src_stride_frame,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ UYVYToI420()

LIBYUV_API int UYVYToI420 ( const uint8 src_uyvy,
int  src_stride_uyvy,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)

◆ YUY2ToI420()

LIBYUV_API int YUY2ToI420 ( const uint8 src_yuy2,
int  src_stride_yuy2,
uint8 dst_y,
int  dst_stride_y,
uint8 dst_u,
int  dst_stride_u,
uint8 dst_v,
int  dst_stride_v,
int  width,
int  height 
)