Home | History | Annotate | Download | only in source

Lines Matching refs:src_width

872                               uint16* dst_ptr, int src_width,
1756 uint16* dst_ptr, int src_width, int src_height) {
1794 "+r"(src_width), // %4
2273 uint16* dst_ptr, int src_width, int src_height) {
2274 assert(src_width > 0);
2276 for (int x = 0; x < src_width; ++x) {
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,
2624 int dx = (src_width << 16) / dst_width;
2629 if (!IS_ALIGNED(src_width, 16) || (src_width > kMaxInputWidth) ||
2648 uint16* dst_ptr, int src_width, int src_height)=
2672 ScaleAddRows(src, src_stride, row, src_width, boxheight);
2682 static void ScalePlaneBilinearSimple(int src_width, int src_height,
2686 int dx = (src_width << 16) / dst_width;
2689 int maxx = (src_width > 1) ? ((src_width - 1) << 16) - 1 : 0;
2701 int x1 = (xi < src_width - 1) ? xi + 1 : xi;
2724 void ScalePlaneBilinear(int src_width, int src_height,
2730 if (!IS_ALIGNED(src_width, 8) || (src_width > kMaxInputWidth)) {
2731 ScalePlaneBilinearSimple(src_width, src_height, dst_width, dst_height,
2758 int dx = (src_width << 16) / dst_width;
2767 ScaleFilterRows(row, src, src_stride, src_width, yf);
2784 static void ScalePlaneSimple(int src_width, int src_height,
2788 int dx = (src_width << 16) / dst_width;
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,
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,
2877 } else if (4 * dst_width == 3 * src_width &&
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,
2887 } else if (8 * dst_width == 3 * src_width &&
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 ||
2944 int src_halfwidth = (src_width + 1) >> 1;
2951 if ((src_width & 1) && src_stride_u && src_halfwidth > abs(src_stride_u)) {
2952 src_halfwidth = src_width >> 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 ||
3007 int src_halfwidth = (src_width + 1) >> 1;
3015 if ((src_width & 1) && src_stride_u && src_halfwidth > abs(src_stride_u)) {
3016 src_halfwidth = src_width >> 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 ||
3058 int src_halfwidth = (src_width + 1) >> 1;
3064 const uint8* src_u = src + src_width * src_height;
3065 const uint8* src_v = src + src_width * src_height +
3072 return Scale(src_y, src_u, src_v, src_width, src_halfwidth, src_halfwidth,
3073 src_width, src_height, dst_y, dst_u, dst_v, dst_width,