webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include "libyuv/convert.h"
#include "libyuv/basic_types.h"
#include "libyuv/cpu_id.h"
#include "libyuv/planar_functions.h"
#include "libyuv/rotate.h"
#include "libyuv/scale.h"
#include "libyuv/row.h"
Macros | |
#define | SUBSAMPLE(v, a, s) (v < 0) ? (-((-v + a) >> s)) : ((v + a) >> s) |
Functions | |
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 | 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 | 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 | 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 | 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 | 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 | ARGBToI420 (const uint8 *src_argb, int src_stride_argb, 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_bgra, int src_stride_bgra, 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_abgr, int src_stride_abgr, 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_rgba, int src_stride_rgba, 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_rgb24, int src_stride_rgb24, 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_raw, int src_stride_raw, 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_rgb565, int src_stride_rgb565, 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_argb1555, int src_stride_argb1555, 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_argb4444, int src_stride_argb4444, 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 src_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 ABGRToI420 | ( | const uint8 * | src_abgr, |
int | src_stride_abgr, | ||
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 | src_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 ARGB1555ToI420 | ( | const uint8 * | src_argb1555, |
int | src_stride_argb1555, | ||
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_argb4444, |
int | src_stride_argb4444, | ||
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_argb, |
int | src_stride_argb, | ||
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_bgra, |
int | src_stride_bgra, | ||
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 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 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 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 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 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 RAWToI420 | ( | const uint8 * | src_raw, |
int | src_stride_raw, | ||
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_rgb24, |
int | src_stride_rgb24, | ||
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_rgb565, |
int | src_stride_rgb565, | ||
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_rgba, |
int | src_stride_rgba, | ||
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 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 | ||
) |