Home | History | Annotate | Download | only in source

Lines Matching refs:src_height

873                               int src_height) {
1756 uint16* dst_ptr, int src_width, int src_height) {
1795 "+rm"(src_height) // %5
2273 uint16* dst_ptr, int src_width, int src_height) {
2275 assert(src_height > 0);
2279 for (int y = 0; y < src_height; ++y) {
2294 static void ScalePlaneDown2(int /* src_width */, int /* src_height */,
2332 static void ScalePlaneDown4(int /* src_width */, int /* src_height */,
2367 static void ScalePlaneDown8(int /* src_width */, int /* src_height */,
2397 static void ScalePlaneDown34(int /* src_width */, int /* src_height */,
2486 static void ScalePlaneDown38(int /* src_width */, int /* src_height */,
2618 static void ScalePlaneBox(int src_width, int src_height,
2625 int dy = (src_height << 16) / dst_height;
2628 int maxy = (src_height << 16);
2630 dst_height * 2 > src_height) {
2648 uint16* dst_ptr, int src_width, int src_height)=
2668 if (y > (src_height << 16)) {
2669 y = (src_height << 16);
2682 static void ScalePlaneBilinearSimple(int src_width, int src_height,
2687 int dy = (src_height << 16) / dst_height;
2690 int maxy = (src_height > 1) ? ((src_height - 1) << 16) - 1 : 0;
2696 const uint8* src1 = (yi < src_height - 1) ? src0 + src_stride : src0;
2724 void ScalePlaneBilinear(int src_width, int src_height,
2731 ScalePlaneBilinearSimple(src_width, src_height, dst_width, dst_height,
2759 int dy = (src_height << 16) / dst_height;
2762 int maxy = (src_height > 1) ? ((src_height - 1) << 16) - 1 : 0;
2784 static void ScalePlaneSimple(int src_width, int src_height,
2789 int dy = (src_height << 16) / dst_height;
2808 static void ScalePlaneAnySize(int src_width, int src_height,
2814 ScalePlaneSimple(src_width, src_height, dst_width, dst_height,
2818 ScalePlaneBilinear(src_width, src_height, dst_width, dst_height,
2831 static void ScalePlaneDown(int src_width, int src_height,
2837 ScalePlaneSimple(src_width, src_height, dst_width, dst_height,
2839 } else if (filtering == kFilterBilinear || src_height * 2 > dst_height) {
2841 ScalePlaneBilinear(src_width, src_height, dst_width, dst_height,
2844 ScalePlaneBox(src_width, src_height, dst_width, dst_height,
2855 int src_width, int src_height,
2868 if (dst_width == src_width && dst_height == src_height) {
2871 } else if (dst_width <= src_width && dst_height <= src_height) {
2875 ScalePlaneDown(src_width, src_height, dst_width, dst_height,
2878 4 * dst_height == 3 * src_height) {
2880 ScalePlaneDown34(src_width, src_height, dst_width, dst_height,
2882 } else if (2 * dst_width == src_width && 2 * dst_height == src_height) {
2884 ScalePlaneDown2(src_width, src_height, dst_width, dst_height,
2888 dst_height == ((src_height * 3 + 7) / 8)) {
2890 ScalePlaneDown38(src_width, src_height, dst_width, dst_height,
2892 } else if (4 * dst_width == src_width && 4 * dst_height == src_height &&
2895 ScalePlaneDown4(src_width, src_height, dst_width, dst_height,
2897 } else if (8 * dst_width == src_width && 8 * dst_height == src_height &&
2900 ScalePlaneDown8(src_width, src_height, dst_width, dst_height,
2904 ScalePlaneDown(src_width, src_height, dst_width, dst_height,
2909 ScalePlaneAnySize(src_width, src_height, dst_width, dst_height,
2923 int src_width, int src_height,
2929 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 ||
2934 if (src_height < 0) {
2935 src_height = -src_height;
2936 int halfheight = (src_height + 1) >> 1;
2937 src_y = src_y + (src_height - 1) * src_stride_y;
2945 int src_halfheight = (src_height + 1) >> 1;
2960 if ((src_height & 1) &&
2962 src_halfheight = src_height >> 1;
2971 ScalePlane(src_y, src_stride_y, src_width, src_height,
2987 int src_width, int src_height,
2992 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 ||
2997 if (src_height < 0) {
2998 src_height = -src_height;
2999 int halfheight = (src_height + 1) >> 1;
3000 src_y = src_y + (src_height - 1) * src_stride_y;
3008 int src_halfheight = (src_height + 1) >> 1;
3024 if ((src_height & 1) &&
3026 src_halfheight = src_height >> 1;
3035 ScalePlane(src_y, src_stride_y, src_width, src_height,
3049 int ScaleOffset(const uint8* src, int src_width, int src_height,
3052 if (!src || src_width <= 0 || src_height <= 0 ||
3059 int src_halfheight = (src_height + 1) >> 1;
3064 const uint8* src_u = src + src_width * src_height;
3065 const uint8* src_v = src + src_width * src_height +
3073 src_width, src_height, dst_y, dst_u, dst_v, dst_width,