11 #ifndef INCLUDE_LIBYUV_CONVERT_H_ 12 #define INCLUDE_LIBYUV_CONVERT_H_ 49 #define I420ToI420 I420Copy 67 #define J400ToJ420 I400ToI420 72 const uint8* src_uv,
int src_stride_uv,
81 const uint8* src_vu,
int src_stride_vu,
198 int MJPGToI420(
const uint8* sample,
size_t sample_size,
202 int src_width,
int src_height,
207 int MJPGSize(
const uint8* sample,
size_t sample_size,
238 int crop_x,
int crop_y,
239 int src_width,
int src_height,
240 int crop_width,
int crop_height,
249 #endif // INCLUDE_LIBYUV_CONVERT_H_ EGLSurface EGLint EGLint EGLint EGLint height
Definition: eglext.h:950
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)
Definition: convert_to_i420.cc:28
uint8_t * dst_v
Definition: peerconnection_jni.cc:2274
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)
Definition: convert.cc:570
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gl2.h:403
EGLSurface EGLint EGLint EGLint width
Definition: eglext.h:950
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)
Definition: convert.cc:403
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)
Definition: convert.cc:328
uint8_t * dst_y
Definition: peerconnection_jni.cc:2270
unsigned char uint8
Definition: basic_types.h:62
int dst_height
Definition: convert.cc:32
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)
Definition: convert.cc:297
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)
Definition: convert.cc:64
uint8_t * src_u
Definition: peerconnection_jni.cc:2263
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)
Definition: convert.cc:1118
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)
Definition: convert.cc:636
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)
Definition: convert.cc:478
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)
Definition: convert.cc:882
uint8_t * src_y
Definition: peerconnection_jni.cc:2261
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)
Definition: convert.cc:102
JNIEnv jlong jbyteArray jint jint jint jint rotation
Definition: androidvideotracksource_jni.cc:30
size_t dst_stride_v
Definition: peerconnection_jni.cc:2275
Definition: basictypes_test.cc:14
int dst_width
Definition: convert.cc:32
#define LIBYUV_API
Definition: basic_types.h:102
size_t dst_stride_u
Definition: peerconnection_jni.cc:2273
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)
Definition: convert.cc:996
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)
Definition: convert.cc:281
uint8_t * dst_u
Definition: peerconnection_jni.cc:2272
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)
Definition: convert.cc:702
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)
Definition: convert.cc:123
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)
Definition: convert.cc:1242
uint32_t uint32
Definition: angle_config.h:28
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)
Definition: convert.cc:142
size_t dst_stride_y
Definition: peerconnection_jni.cc:2271
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)
Definition: convert.cc:1396
uint8_t * src_v
Definition: peerconnection_jni.cc:2265
RotationMode
Definition: rotate.h:22
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)
Definition: convert.cc:768
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)
Definition: convert.cc:313