Lines Matching refs:src_height
39 int src_height, in ScalePlaneDown2() argument
56 (void)src_height; in ScalePlaneDown2()
159 int src_height, in ScalePlaneDown2_16() argument
176 (void)src_height; in ScalePlaneDown2_16()
210 int src_height, in ScalePlaneDown2_16To8() argument
241 for (y = 0; y < src_height / 2; ++y) { in ScalePlaneDown2_16To8()
246 if (src_height & 1) { in ScalePlaneDown2_16To8()
259 int src_height, in ScalePlaneDown4() argument
273 (void)src_height; in ScalePlaneDown4()
340 int src_height, in ScalePlaneDown4_16() argument
354 (void)src_height; in ScalePlaneDown4_16()
384 int src_height, in ScalePlaneDown34() argument
399 (void)src_height; in ScalePlaneDown34()
524 int src_height, in ScalePlaneDown34_16() argument
539 (void)src_height; in ScalePlaneDown34_16()
610 int src_height, in ScalePlaneDown38() argument
626 (void)src_height; in ScalePlaneDown38()
750 int src_height, in ScalePlaneDown38_16() argument
765 (void)src_height; in ScalePlaneDown38_16()
943 int src_height, in ScalePlaneBox() argument
956 const int max_y = (src_height << 16); in ScalePlaneBox()
957 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox, &x, &y, in ScalePlaneBox()
1040 int src_height, in ScalePlaneBox_16() argument
1053 const int max_y = (src_height << 16); in ScalePlaneBox_16()
1054 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox, &x, &y, in ScalePlaneBox_16()
1098 int src_height, in ScalePlaneBilinearDown() argument
1117 const int max_y = (src_height - 1) << 16; in ScalePlaneBilinearDown()
1125 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, &x, &y, in ScalePlaneBilinearDown()
1229 int src_height, in ScalePlaneBilinearDown_16() argument
1248 const int max_y = (src_height - 1) << 16; in ScalePlaneBilinearDown_16()
1256 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, &x, &y, in ScalePlaneBilinearDown_16()
1324 int src_height, in ScalePlaneBilinearUp() argument
1338 const int max_y = (src_height - 1) << 16; in ScalePlaneBilinearUp()
1345 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, &x, &y, in ScalePlaneBilinearUp()
1438 if (src_height > 1) { in ScalePlaneBilinearUp()
1442 if (src_height > 2) { in ScalePlaneBilinearUp()
1484 int src_height, in ScalePlaneUp2_Linear() argument
1531 ScaleRowUp(src_ptr + ((src_height - 1) / 2) * (int64_t)src_stride, dst_ptr, in ScalePlaneUp2_Linear()
1534 dy = FixedDiv(src_height - 1, dst_height - 1); in ScalePlaneUp2_Linear()
1549 int src_height, in ScalePlaneUp2_Bilinear() argument
1564 assert(src_height == ((dst_height + 1) / 2)); in ScalePlaneUp2_Bilinear()
1597 for (x = 0; x < src_height - 1; ++x) { in ScalePlaneUp2_Bilinear()
1615 int src_height, in ScalePlaneUp2_12_Linear() argument
1651 ScaleRowUp(src_ptr + ((src_height - 1) / 2) * (int64_t)src_stride, dst_ptr, in ScalePlaneUp2_12_Linear()
1654 dy = FixedDiv(src_height - 1, dst_height - 1); in ScalePlaneUp2_12_Linear()
1670 int src_height, in ScalePlaneUp2_12_Bilinear() argument
1685 assert(src_height == ((dst_height + 1) / 2)); in ScalePlaneUp2_12_Bilinear()
1707 for (x = 0; x < src_height - 1; ++x) { in ScalePlaneUp2_12_Bilinear()
1718 int src_height, in ScalePlaneUp2_16_Linear() argument
1754 ScaleRowUp(src_ptr + ((src_height - 1) / 2) * (int64_t)src_stride, dst_ptr, in ScalePlaneUp2_16_Linear()
1757 dy = FixedDiv(src_height - 1, dst_height - 1); in ScalePlaneUp2_16_Linear()
1768 int src_height, in ScalePlaneUp2_16_Bilinear() argument
1783 assert(src_height == ((dst_height + 1) / 2)); in ScalePlaneUp2_16_Bilinear()
1805 for (x = 0; x < src_height - 1; ++x) { in ScalePlaneUp2_16_Bilinear()
1816 int src_height, in ScalePlaneBilinearUp_16() argument
1830 const int max_y = (src_height - 1) << 16; in ScalePlaneBilinearUp_16()
1837 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, &x, &y, in ScalePlaneBilinearUp_16()
1907 if (src_height > 1) { in ScalePlaneBilinearUp_16()
1911 if (src_height > 2) { in ScalePlaneBilinearUp_16()
1953 int src_height, in ScalePlaneSimple() argument
1968 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone, &x, &y, in ScalePlaneSimple()
1990 int src_height, in ScalePlaneSimple_16() argument
2005 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone, &x, &y, in ScalePlaneSimple_16()
2032 int src_height, in ScalePlane() argument
2039 filtering = ScaleFilterReduce(src_width, src_height, dst_width, dst_height, in ScalePlane()
2043 if (src_height < 0) { in ScalePlane()
2044 src_height = -src_height; in ScalePlane()
2045 src = src + (src_height - 1) * (int64_t)src_stride; in ScalePlane()
2050 if (dst_width == src_width && dst_height == src_height) { in ScalePlane()
2060 if (dst_height <= src_height) { in ScalePlane()
2061 dy = FixedDiv(src_height, dst_height); in ScalePlane()
2063 } else if (src_height > 1 && dst_height > 1) { in ScalePlane()
2064 dy = FixedDiv1(src_height, dst_height); in ScalePlane()
2067 ScalePlaneVertical(src_height, dst_width, dst_height, src_stride, in ScalePlane()
2071 if (dst_width <= Abs(src_width) && dst_height <= src_height) { in ScalePlane()
2073 if (4 * dst_width == 3 * src_width && 4 * dst_height == 3 * src_height) { in ScalePlane()
2075 ScalePlaneDown34(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
2079 if (2 * dst_width == src_width && 2 * dst_height == src_height) { in ScalePlane()
2081 ScalePlaneDown2(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
2086 if (8 * dst_width == 3 * src_width && 8 * dst_height == 3 * src_height) { in ScalePlane()
2088 ScalePlaneDown38(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
2092 if (4 * dst_width == src_width && 4 * dst_height == src_height && in ScalePlane()
2095 ScalePlaneDown4(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
2100 if (filtering == kFilterBox && dst_height * 2 < src_height) { in ScalePlane()
2101 return ScalePlaneBox(src_width, src_height, dst_width, dst_height, in ScalePlane()
2105 ScalePlaneUp2_Linear(src_width, src_height, dst_width, dst_height, in ScalePlane()
2109 if ((dst_height + 1) / 2 == src_height && (dst_width + 1) / 2 == src_width && in ScalePlane()
2111 ScalePlaneUp2_Bilinear(src_width, src_height, dst_width, dst_height, in ScalePlane()
2115 if (filtering && dst_height > src_height) { in ScalePlane()
2116 return ScalePlaneBilinearUp(src_width, src_height, dst_width, dst_height, in ScalePlane()
2120 return ScalePlaneBilinearDown(src_width, src_height, dst_width, dst_height, in ScalePlane()
2123 ScalePlaneSimple(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
2132 int src_height, in ScalePlane_16() argument
2139 filtering = ScaleFilterReduce(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
2143 if (src_height < 0) { in ScalePlane_16()
2144 src_height = -src_height; in ScalePlane_16()
2145 src = src + (src_height - 1) * (int64_t)src_stride; in ScalePlane_16()
2150 if (dst_width == src_width && dst_height == src_height) { in ScalePlane_16()
2160 if (dst_height <= src_height) { in ScalePlane_16()
2161 dy = FixedDiv(src_height, dst_height); in ScalePlane_16()
2166 } else if (src_height > 1 && dst_height > 1) { in ScalePlane_16()
2167 dy = FixedDiv1(src_height, dst_height); in ScalePlane_16()
2170 ScalePlaneVertical_16(src_height, dst_width, dst_height, src_stride, in ScalePlane_16()
2174 if (dst_width <= Abs(src_width) && dst_height <= src_height) { in ScalePlane_16()
2176 if (4 * dst_width == 3 * src_width && 4 * dst_height == 3 * src_height) { in ScalePlane_16()
2178 ScalePlaneDown34_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
2182 if (2 * dst_width == src_width && 2 * dst_height == src_height) { in ScalePlane_16()
2184 ScalePlaneDown2_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
2189 if (8 * dst_width == 3 * src_width && 8 * dst_height == 3 * src_height) { in ScalePlane_16()
2191 ScalePlaneDown38_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
2195 if (4 * dst_width == src_width && 4 * dst_height == src_height && in ScalePlane_16()
2198 ScalePlaneDown4_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
2203 if (filtering == kFilterBox && dst_height * 2 < src_height) { in ScalePlane_16()
2204 return ScalePlaneBox_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
2208 ScalePlaneUp2_16_Linear(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
2212 if ((dst_height + 1) / 2 == src_height && (dst_width + 1) / 2 == src_width && in ScalePlane_16()
2214 ScalePlaneUp2_16_Bilinear(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
2218 if (filtering && dst_height > src_height) { in ScalePlane_16()
2219 return ScalePlaneBilinearUp_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
2223 return ScalePlaneBilinearDown_16(src_width, src_height, dst_width, in ScalePlane_16()
2227 ScalePlaneSimple_16(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane_16()
2236 int src_height, in ScalePlane_12() argument
2243 filtering = ScaleFilterReduce(src_width, src_height, dst_width, dst_height, in ScalePlane_12()
2247 if (src_height < 0) { in ScalePlane_12()
2248 src_height = -src_height; in ScalePlane_12()
2249 src = src + (src_height - 1) * (int64_t)src_stride; in ScalePlane_12()
2254 ScalePlaneUp2_12_Linear(src_width, src_height, dst_width, dst_height, in ScalePlane_12()
2258 if ((dst_height + 1) / 2 == src_height && (dst_width + 1) / 2 == src_width && in ScalePlane_12()
2260 ScalePlaneUp2_12_Bilinear(src_width, src_height, dst_width, dst_height, in ScalePlane_12()
2265 return ScalePlane_16(src, src_stride, src_width, src_height, dst, dst_stride, in ScalePlane_12()
2280 int src_height, in I420Scale() argument
2291 int src_halfheight = SUBSAMPLE(src_height, 1, 1); in I420Scale()
2296 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 || in I420Scale()
2297 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I420Scale()
2302 r = ScalePlane(src_y, src_stride_y, src_width, src_height, dst_y, in I420Scale()
2325 int src_height, in I420Scale_16() argument
2336 int src_halfheight = SUBSAMPLE(src_height, 1, 1); in I420Scale_16()
2341 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 || in I420Scale_16()
2342 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I420Scale_16()
2347 r = ScalePlane_16(src_y, src_stride_y, src_width, src_height, dst_y, in I420Scale_16()
2370 int src_height, in I420Scale_12() argument
2381 int src_halfheight = SUBSAMPLE(src_height, 1, 1); in I420Scale_12()
2386 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 || in I420Scale_12()
2387 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I420Scale_12()
2392 r = ScalePlane_12(src_y, src_stride_y, src_width, src_height, dst_y, in I420Scale_12()
2418 int src_height, in I444Scale() argument
2430 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 || in I444Scale()
2431 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I444Scale()
2436 r = ScalePlane(src_y, src_stride_y, src_width, src_height, dst_y, in I444Scale()
2441 r = ScalePlane(src_u, src_stride_u, src_width, src_height, dst_u, in I444Scale()
2446 r = ScalePlane(src_v, src_stride_v, src_width, src_height, dst_v, in I444Scale()
2459 int src_height, in I444Scale_16() argument
2471 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 || in I444Scale_16()
2472 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I444Scale_16()
2477 r = ScalePlane_16(src_y, src_stride_y, src_width, src_height, dst_y, in I444Scale_16()
2482 r = ScalePlane_16(src_u, src_stride_u, src_width, src_height, dst_u, in I444Scale_16()
2487 r = ScalePlane_16(src_v, src_stride_v, src_width, src_height, dst_v, in I444Scale_16()
2500 int src_height, in I444Scale_12() argument
2512 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 || in I444Scale_12()
2513 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I444Scale_12()
2518 r = ScalePlane_12(src_y, src_stride_y, src_width, src_height, dst_y, in I444Scale_12()
2523 r = ScalePlane_12(src_u, src_stride_u, src_width, src_height, dst_u, in I444Scale_12()
2528 r = ScalePlane_12(src_v, src_stride_v, src_width, src_height, dst_v, in I444Scale_12()
2544 int src_height, in I422Scale() argument
2558 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 || in I422Scale()
2559 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I422Scale()
2564 r = ScalePlane(src_y, src_stride_y, src_width, src_height, dst_y, in I422Scale()
2569 r = ScalePlane(src_u, src_stride_u, src_halfwidth, src_height, dst_u, in I422Scale()
2574 r = ScalePlane(src_v, src_stride_v, src_halfwidth, src_height, dst_v, in I422Scale()
2587 int src_height, in I422Scale_16() argument
2601 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 || in I422Scale_16()
2602 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I422Scale_16()
2607 r = ScalePlane_16(src_y, src_stride_y, src_width, src_height, dst_y, in I422Scale_16()
2612 r = ScalePlane_16(src_u, src_stride_u, src_halfwidth, src_height, dst_u, in I422Scale_16()
2617 r = ScalePlane_16(src_v, src_stride_v, src_halfwidth, src_height, dst_v, in I422Scale_16()
2630 int src_height, in I422Scale_12() argument
2644 if (!src_y || !src_u || !src_v || src_width <= 0 || src_height == 0 || in I422Scale_12()
2645 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I422Scale_12()
2650 r = ScalePlane_12(src_y, src_stride_y, src_width, src_height, dst_y, in I422Scale_12()
2655 r = ScalePlane_12(src_u, src_stride_u, src_halfwidth, src_height, dst_u, in I422Scale_12()
2660 r = ScalePlane_12(src_v, src_stride_v, src_halfwidth, src_height, dst_v, in I422Scale_12()
2674 int src_height, in NV12Scale() argument
2683 int src_halfheight = SUBSAMPLE(src_height, 1, 1); in NV12Scale()
2688 if (!src_y || !src_uv || src_width <= 0 || src_height == 0 || in NV12Scale()
2689 src_width > 32768 || src_height > 32768 || !dst_y || !dst_uv || in NV12Scale()
2694 r = ScalePlane(src_y, src_stride_y, src_width, src_height, dst_y, in NV12Scale()
2713 int src_height, in Scale() argument
2724 src_stride_v, src_width, src_height, dst_y, dst_stride_y, in Scale()