|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include "libyuv/scale.h"#include <assert.h>#include <string.h>#include "libyuv/cpu_id.h"#include "libyuv/planar_functions.h"#include "libyuv/row.h"#include "libyuv/scale_row.h"Macros | |
| #define | SUBSAMPLE(v, a, s) (v < 0) ? (-((-v + a) >> s)) : ((v + a) >> s) |
| #define | MIN1(x) ((x) < 1 ? 1 : (x)) |
Functions | |
| void | ScalePlaneBilinearDown (int src_width, int src_height, int dst_width, int dst_height, int src_stride, int dst_stride, const uint8 *src_ptr, uint8 *dst_ptr, enum FilterMode filtering) |
| void | ScalePlaneBilinearDown_16 (int src_width, int src_height, int dst_width, int dst_height, int src_stride, int dst_stride, const uint16 *src_ptr, uint16 *dst_ptr, enum FilterMode filtering) |
| void | ScalePlaneBilinearUp (int src_width, int src_height, int dst_width, int dst_height, int src_stride, int dst_stride, const uint8 *src_ptr, uint8 *dst_ptr, enum FilterMode filtering) |
| void | ScalePlaneBilinearUp_16 (int src_width, int src_height, int dst_width, int dst_height, int src_stride, int dst_stride, const uint16 *src_ptr, uint16 *dst_ptr, enum FilterMode filtering) |
| LIBYUV_API void | ScalePlane (const uint8 *src, int src_stride, int src_width, int src_height, uint8 *dst, int dst_stride, int dst_width, int dst_height, enum FilterMode filtering) |
| LIBYUV_API void | ScalePlane_16 (const uint16 *src, int src_stride, int src_width, int src_height, uint16 *dst, int dst_stride, int dst_width, int dst_height, enum FilterMode filtering) |
| LIBYUV_API int | I420Scale (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_width, int src_height, uint8 *dst_y, int dst_stride_y, uint8 *dst_u, int dst_stride_u, uint8 *dst_v, int dst_stride_v, int dst_width, int dst_height, enum FilterMode filtering) |
| LIBYUV_API int | I420Scale_16 (const uint16 *src_y, int src_stride_y, const uint16 *src_u, int src_stride_u, const uint16 *src_v, int src_stride_v, int src_width, int src_height, uint16 *dst_y, int dst_stride_y, uint16 *dst_u, int dst_stride_u, uint16 *dst_v, int dst_stride_v, int dst_width, int dst_height, enum FilterMode filtering) |
| LIBYUV_API int | Scale (const uint8 *src_y, const uint8 *src_u, const uint8 *src_v, int src_stride_y, int src_stride_u, int src_stride_v, int src_width, int src_height, uint8 *dst_y, uint8 *dst_u, uint8 *dst_v, int dst_stride_y, int dst_stride_u, int dst_stride_v, int dst_width, int dst_height, LIBYUV_BOOL interpolate) |
| LIBYUV_API int | ScaleOffset (const uint8 *src, int src_width, int src_height, uint8 *dst, int dst_width, int dst_height, int dst_yoffset, LIBYUV_BOOL interpolate) |
| LIBYUV_API int I420Scale | ( | 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_width, | ||
| int | src_height, | ||
| uint8 * | dst_y, | ||
| int | dst_stride_y, | ||
| uint8 * | dst_u, | ||
| int | dst_stride_u, | ||
| uint8 * | dst_v, | ||
| int | dst_stride_v, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| enum FilterMode | filtering | ||
| ) |
| LIBYUV_API int I420Scale_16 | ( | const uint16 * | src_y, |
| int | src_stride_y, | ||
| const uint16 * | src_u, | ||
| int | src_stride_u, | ||
| const uint16 * | src_v, | ||
| int | src_stride_v, | ||
| int | src_width, | ||
| int | src_height, | ||
| uint16 * | dst_y, | ||
| int | dst_stride_y, | ||
| uint16 * | dst_u, | ||
| int | dst_stride_u, | ||
| uint16 * | dst_v, | ||
| int | dst_stride_v, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| enum FilterMode | filtering | ||
| ) |
| LIBYUV_API int Scale | ( | const uint8 * | src_y, |
| const uint8 * | src_u, | ||
| const uint8 * | src_v, | ||
| int | src_stride_y, | ||
| int | src_stride_u, | ||
| int | src_stride_v, | ||
| int | src_width, | ||
| int | src_height, | ||
| uint8 * | dst_y, | ||
| uint8 * | dst_u, | ||
| uint8 * | dst_v, | ||
| int | dst_stride_y, | ||
| int | dst_stride_u, | ||
| int | dst_stride_v, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| LIBYUV_BOOL | interpolate | ||
| ) |
| LIBYUV_API int ScaleOffset | ( | const uint8 * | src, |
| int | src_width, | ||
| int | src_height, | ||
| uint8 * | dst, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| int | dst_yoffset, | ||
| LIBYUV_BOOL | interpolate | ||
| ) |
| LIBYUV_API void ScalePlane | ( | const uint8 * | src, |
| int | src_stride, | ||
| int | src_width, | ||
| int | src_height, | ||
| uint8 * | dst, | ||
| int | dst_stride, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| enum FilterMode | filtering | ||
| ) |
| LIBYUV_API void ScalePlane_16 | ( | const uint16 * | src, |
| int | src_stride, | ||
| int | src_width, | ||
| int | src_height, | ||
| uint16 * | dst, | ||
| int | dst_stride, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| enum FilterMode | filtering | ||
| ) |
| void ScalePlaneBilinearDown | ( | int | src_width, |
| int | src_height, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| int | src_stride, | ||
| int | dst_stride, | ||
| const uint8 * | src_ptr, | ||
| uint8 * | dst_ptr, | ||
| enum FilterMode | filtering | ||
| ) |
| void ScalePlaneBilinearDown_16 | ( | int | src_width, |
| int | src_height, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| int | src_stride, | ||
| int | dst_stride, | ||
| const uint16 * | src_ptr, | ||
| uint16 * | dst_ptr, | ||
| enum FilterMode | filtering | ||
| ) |
| void ScalePlaneBilinearUp | ( | int | src_width, |
| int | src_height, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| int | src_stride, | ||
| int | dst_stride, | ||
| const uint8 * | src_ptr, | ||
| uint8 * | dst_ptr, | ||
| enum FilterMode | filtering | ||
| ) |
| void ScalePlaneBilinearUp_16 | ( | int | src_width, |
| int | src_height, | ||
| int | dst_width, | ||
| int | dst_height, | ||
| int | src_stride, | ||
| int | dst_stride, | ||
| const uint16 * | src_ptr, | ||
| uint16 * | dst_ptr, | ||
| enum FilterMode | filtering | ||
| ) |
1.8.13