• Home
  • Raw
  • Download

Lines Matching refs:src_width

36 static void ScalePlaneDown2(int src_width,  in ScalePlaneDown2()  argument
53 (void)src_width; in ScalePlaneDown2()
140 static void ScalePlaneDown2_16(int src_width, in ScalePlaneDown2_16() argument
157 (void)src_width; in ScalePlaneDown2_16()
203 static void ScalePlaneDown4(int src_width, in ScalePlaneDown4() argument
217 (void)src_width; in ScalePlaneDown4()
277 static void ScalePlaneDown4_16(int src_width, in ScalePlaneDown4_16() argument
291 (void)src_width; in ScalePlaneDown4_16()
329 static void ScalePlaneDown34(int src_width, in ScalePlaneDown34() argument
344 (void)src_width; in ScalePlaneDown34()
431 static void ScalePlaneDown34_16(int src_width, in ScalePlaneDown34_16() argument
446 (void)src_width; in ScalePlaneDown34_16()
530 static void ScalePlaneDown38(int src_width, in ScalePlaneDown38() argument
546 (void)src_width; in ScalePlaneDown38()
652 static void ScalePlaneDown38_16(int src_width, in ScalePlaneDown38_16() argument
667 (void)src_width; in ScalePlaneDown38_16()
854 static void ScalePlaneBox(int src_width, in ScalePlaneBox() argument
869 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox, &x, &y, in ScalePlaneBox()
871 src_width = Abs(src_width); in ScalePlaneBox()
874 align_buffer_64(row16, src_width * 2); in ScalePlaneBox()
879 void (*ScaleAddRow)(const uint8* src_ptr, uint16* dst_ptr, int src_width) = in ScalePlaneBox()
884 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBox()
892 if (IS_ALIGNED(src_width, 32)) { in ScalePlaneBox()
900 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBox()
908 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBox()
916 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBox()
931 memset(row16, 0, src_width * 2); in ScalePlaneBox()
933 ScaleAddRow(src, (uint16*)(row16), src_width); in ScalePlaneBox()
943 static void ScalePlaneBox_16(int src_width, in ScalePlaneBox_16() argument
958 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox, &x, &y, in ScalePlaneBox_16()
960 src_width = Abs(src_width); in ScalePlaneBox_16()
963 align_buffer_64(row32, src_width * 4); in ScalePlaneBox_16()
967 void (*ScaleAddRow)(const uint16* src_ptr, uint32* dst_ptr, int src_width) = in ScalePlaneBox_16()
971 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(src_width, 16)) { in ScalePlaneBox_16()
985 memset(row32, 0, src_width * 4); in ScalePlaneBox_16()
987 ScaleAddRow(src, (uint32*)(row32), src_width); in ScalePlaneBox_16()
998 void ScalePlaneBilinearDown(int src_width, in ScalePlaneBilinearDown() argument
1014 align_buffer_64(row, src_width); in ScalePlaneBilinearDown()
1020 (src_width >= 32768) ? ScaleFilterCols64_C : ScaleFilterCols_C; in ScalePlaneBilinearDown()
1024 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, &x, &y, in ScalePlaneBilinearDown()
1026 src_width = Abs(src_width); in ScalePlaneBilinearDown()
1031 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown()
1039 if (IS_ALIGNED(src_width, 32)) { in ScalePlaneBilinearDown()
1047 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown()
1055 if (IS_ALIGNED(src_width, 4)) { in ScalePlaneBilinearDown()
1063 if (IS_ALIGNED(src_width, 32)) { in ScalePlaneBilinearDown()
1070 if (TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScalePlaneBilinearDown()
1075 if (TestCpuFlag(kCpuHasNEON) && src_width < 32768) { in ScalePlaneBilinearDown()
1093 InterpolateRow(row, src, src_stride, src_width, yf); in ScalePlaneBilinearDown()
1105 void ScalePlaneBilinearDown_16(int src_width, in ScalePlaneBilinearDown_16() argument
1121 align_buffer_64(row, src_width * 2); in ScalePlaneBilinearDown_16()
1127 (src_width >= 32768) ? ScaleFilterCols64_16_C : ScaleFilterCols_16_C; in ScalePlaneBilinearDown_16()
1131 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, &x, &y, in ScalePlaneBilinearDown_16()
1133 src_width = Abs(src_width); in ScalePlaneBilinearDown_16()
1138 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown_16()
1146 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown_16()
1154 if (IS_ALIGNED(src_width, 32)) { in ScalePlaneBilinearDown_16()
1162 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown_16()
1170 if (IS_ALIGNED(src_width, 4)) { in ScalePlaneBilinearDown_16()
1177 if (TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScalePlaneBilinearDown_16()
1192 InterpolateRow((uint16*)row, src, src_stride, src_width, yf); in ScalePlaneBilinearDown_16()
1205 void ScalePlaneBilinearUp(int src_width, in ScalePlaneBilinearUp() argument
1227 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, &x, &y, in ScalePlaneBilinearUp()
1229 src_width = Abs(src_width); in ScalePlaneBilinearUp()
1264 if (filtering && src_width >= 32768) { in ScalePlaneBilinearUp()
1268 if (filtering && TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScalePlaneBilinearUp()
1273 if (filtering && TestCpuFlag(kCpuHasNEON) && src_width < 32768) { in ScalePlaneBilinearUp()
1280 if (!filtering && src_width * 2 == dst_width && x < 0x8000) { in ScalePlaneBilinearUp()
1340 void ScalePlaneBilinearUp_16(int src_width, in ScalePlaneBilinearUp_16() argument
1362 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, &x, &y, in ScalePlaneBilinearUp_16()
1364 src_width = Abs(src_width); in ScalePlaneBilinearUp_16()
1407 if (filtering && src_width >= 32768) { in ScalePlaneBilinearUp_16()
1411 if (filtering && TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScalePlaneBilinearUp_16()
1415 if (!filtering && src_width * 2 == dst_width && x < 0x8000) { in ScalePlaneBilinearUp_16()
1480 static void ScalePlaneSimple(int src_width, in ScalePlaneSimple() argument
1496 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone, &x, &y, in ScalePlaneSimple()
1498 src_width = Abs(src_width); in ScalePlaneSimple()
1500 if (src_width * 2 == dst_width && x < 0x8000) { in ScalePlaneSimple()
1516 static void ScalePlaneSimple_16(int src_width, in ScalePlaneSimple_16() argument
1532 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone, &x, &y, in ScalePlaneSimple_16()
1534 src_width = Abs(src_width); in ScalePlaneSimple_16()
1536 if (src_width * 2 == dst_width && x < 0x8000) { in ScalePlaneSimple_16()
1558 int src_width, in ScalePlane() argument
1566 filtering = ScaleFilterReduce(src_width, src_height, dst_width, dst_height, in ScalePlane()
1578 if (dst_width == src_width && dst_height == src_height) { in ScalePlane()
1583 if (dst_width == src_width && filtering != kFilterBox) { in ScalePlane()
1590 if (dst_width <= Abs(src_width) && dst_height <= src_height) { in ScalePlane()
1592 if (4 * dst_width == 3 * src_width && 4 * dst_height == 3 * src_height) { in ScalePlane()
1594 ScalePlaneDown34(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
1598 if (2 * dst_width == src_width && 2 * dst_height == src_height) { in ScalePlane()
1600 ScalePlaneDown2(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
1605 if (8 * dst_width == 3 * src_width && 8 * dst_height == 3 * src_height) { in ScalePlane()
1607 ScalePlaneDown38(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
1611 if (4 * dst_width == src_width && 4 * dst_height == src_height && in ScalePlane()
1614 ScalePlaneDown4(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
1620 ScalePlaneBox(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
1625 ScalePlaneBilinearUp(src_width, src_height, dst_width, dst_height, in ScalePlane()
1630 ScalePlaneBilinearDown(src_width, src_height, dst_width, dst_height, in ScalePlane()
1634 ScalePlaneSimple(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane()
1641 int src_width, in ScalePlane_16() argument
1649 filtering = ScaleFilterReduce(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1661 if (dst_width == src_width && dst_height == src_height) { in ScalePlane_16()
1666 if (dst_width == src_width) { in ScalePlane_16()
1673 if (dst_width <= Abs(src_width) && dst_height <= src_height) { in ScalePlane_16()
1675 if (4 * dst_width == 3 * src_width && 4 * dst_height == 3 * src_height) { in ScalePlane_16()
1677 ScalePlaneDown34_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1681 if (2 * dst_width == src_width && 2 * dst_height == src_height) { in ScalePlane_16()
1683 ScalePlaneDown2_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1688 if (8 * dst_width == 3 * src_width && 8 * dst_height == 3 * src_height) { in ScalePlane_16()
1690 ScalePlaneDown38_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1694 if (4 * dst_width == src_width && 4 * dst_height == src_height && in ScalePlane_16()
1697 ScalePlaneDown4_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1703 ScalePlaneBox_16(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane_16()
1708 ScalePlaneBilinearUp_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1713 ScalePlaneBilinearDown_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1717 ScalePlaneSimple_16(src_width, src_height, dst_width, dst_height, src_stride, in ScalePlane_16()
1731 int src_width, in I420Scale() argument
1742 int src_halfwidth = SUBSAMPLE(src_width, 1, 1); in I420Scale()
1746 if (!src_y || !src_u || !src_v || src_width == 0 || src_height == 0 || in I420Scale()
1747 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I420Scale()
1752 ScalePlane(src_y, src_stride_y, src_width, src_height, dst_y, dst_stride_y, in I420Scale()
1768 int src_width, in I420Scale_16() argument
1779 int src_halfwidth = SUBSAMPLE(src_width, 1, 1); in I420Scale_16()
1783 if (!src_y || !src_u || !src_v || src_width == 0 || src_height == 0 || in I420Scale_16()
1784 src_width > 32768 || src_height > 32768 || !dst_y || !dst_u || !dst_v || in I420Scale_16()
1789 ScalePlane_16(src_y, src_stride_y, src_width, src_height, dst_y, dst_stride_y, in I420Scale_16()
1806 int src_width, in Scale() argument
1818 src_stride_v, src_width, src_height, dst_y, dst_stride_y, in Scale()
1826 int src_width, in ScaleOffset() argument
1835 int src_halfwidth = SUBSAMPLE(src_width, 1, 1); in ScaleOffset()
1841 const uint8* src_u = src + src_width * src_height; in ScaleOffset()
1843 src + src_width * src_height + src_halfwidth * src_halfheight; in ScaleOffset()
1849 if (!src || src_width <= 0 || src_height <= 0 || !dst || dst_width <= 0 || in ScaleOffset()
1854 return I420Scale(src_y, src_width, src_u, src_halfwidth, src_v, src_halfwidth, in ScaleOffset()
1855 src_width, src_height, dst_y, dst_width, dst_u, in ScaleOffset()