• Home
  • Raw
  • Download

Lines Matching refs:src_width

36 static void ScalePlaneDown2(int src_width, int src_height,  in ScalePlaneDown2()  argument
108 static void ScalePlaneDown2_16(int src_width, int src_height, in ScalePlaneDown2_16() argument
162 static void ScalePlaneDown4(int src_width, int src_height, in ScalePlaneDown4() argument
222 static void ScalePlaneDown4_16(int src_width, int src_height, in ScalePlaneDown4_16() argument
269 static void ScalePlaneDown34(int src_width, int src_height, in ScalePlaneDown34() argument
366 static void ScalePlaneDown34_16(int src_width, int src_height, in ScalePlaneDown34_16() argument
461 static void ScalePlaneDown38(int src_width, int src_height, in ScalePlaneDown38() argument
557 static void ScalePlaneDown38_16(int src_width, int src_height, in ScalePlaneDown38_16() argument
731 static void ScalePlaneBox(int src_width, int src_height, in ScalePlaneBox() argument
742 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox, in ScalePlaneBox()
744 src_width = Abs(src_width); in ScalePlaneBox()
747 align_buffer_64(row16, src_width * 2); in ScalePlaneBox()
752 void (*ScaleAddRow)(const uint8* src_ptr, uint16* dst_ptr, int src_width) = in ScalePlaneBox()
757 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBox()
765 if (IS_ALIGNED(src_width, 32)) { in ScalePlaneBox()
773 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBox()
788 memset(row16, 0, src_width * 2); in ScalePlaneBox()
790 ScaleAddRow(src, (uint16 *)(row16), src_width); in ScalePlaneBox()
800 static void ScalePlaneBox_16(int src_width, int src_height, in ScalePlaneBox_16() argument
811 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox, in ScalePlaneBox_16()
813 src_width = Abs(src_width); in ScalePlaneBox_16()
816 align_buffer_64(row32, src_width * 4); in ScalePlaneBox_16()
820 void (*ScaleAddRow)(const uint16* src_ptr, uint32* dst_ptr, int src_width) = in ScalePlaneBox_16()
824 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(src_width, 16)) { in ScalePlaneBox_16()
838 memset(row32, 0, src_width * 4); in ScalePlaneBox_16()
840 ScaleAddRow(src, (uint32 *)(row32), src_width); in ScalePlaneBox_16()
851 void ScalePlaneBilinearDown(int src_width, int src_height, in ScalePlaneBilinearDown() argument
863 align_buffer_64(row, src_width); in ScalePlaneBilinearDown()
869 (src_width >= 32768) ? ScaleFilterCols64_C : ScaleFilterCols_C; in ScalePlaneBilinearDown()
873 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, in ScalePlaneBilinearDown()
875 src_width = Abs(src_width); in ScalePlaneBilinearDown()
880 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown()
888 if (IS_ALIGNED(src_width, 32)) { in ScalePlaneBilinearDown()
896 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown()
904 if (IS_ALIGNED(src_width, 4)) { in ScalePlaneBilinearDown()
912 if (TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScalePlaneBilinearDown()
917 if (TestCpuFlag(kCpuHasNEON) && src_width < 32768) { in ScalePlaneBilinearDown()
935 InterpolateRow(row, src, src_stride, src_width, yf); in ScalePlaneBilinearDown()
947 void ScalePlaneBilinearDown_16(int src_width, int src_height, in ScalePlaneBilinearDown_16() argument
959 align_buffer_64(row, src_width * 2); in ScalePlaneBilinearDown_16()
965 (src_width >= 32768) ? ScaleFilterCols64_16_C : ScaleFilterCols_16_C; in ScalePlaneBilinearDown_16()
969 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, in ScalePlaneBilinearDown_16()
971 src_width = Abs(src_width); in ScalePlaneBilinearDown_16()
976 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown_16()
984 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown_16()
992 if (IS_ALIGNED(src_width, 32)) { in ScalePlaneBilinearDown_16()
1000 if (IS_ALIGNED(src_width, 16)) { in ScalePlaneBilinearDown_16()
1008 if (IS_ALIGNED(src_width, 4)) { in ScalePlaneBilinearDown_16()
1016 if (TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScalePlaneBilinearDown_16()
1031 InterpolateRow((uint16*)row, src, src_stride, src_width, yf); in ScalePlaneBilinearDown_16()
1044 void ScalePlaneBilinearUp(int src_width, int src_height, in ScalePlaneBilinearUp() argument
1062 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, in ScalePlaneBilinearUp()
1064 src_width = Abs(src_width); in ScalePlaneBilinearUp()
1099 if (filtering && src_width >= 32768) { in ScalePlaneBilinearUp()
1103 if (filtering && TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScalePlaneBilinearUp()
1108 if (filtering && TestCpuFlag(kCpuHasNEON) && src_width < 32768) { in ScalePlaneBilinearUp()
1115 if (!filtering && src_width * 2 == dst_width && x < 0x8000) { in ScalePlaneBilinearUp()
1175 void ScalePlaneBilinearUp_16(int src_width, int src_height, in ScalePlaneBilinearUp_16() argument
1193 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering, in ScalePlaneBilinearUp_16()
1195 src_width = Abs(src_width); in ScalePlaneBilinearUp_16()
1238 if (filtering && src_width >= 32768) { in ScalePlaneBilinearUp_16()
1242 if (filtering && TestCpuFlag(kCpuHasSSSE3) && src_width < 32768) { in ScalePlaneBilinearUp_16()
1246 if (!filtering && src_width * 2 == dst_width && x < 0x8000) { in ScalePlaneBilinearUp_16()
1311 static void ScalePlaneSimple(int src_width, int src_height, in ScalePlaneSimple() argument
1323 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone, in ScalePlaneSimple()
1325 src_width = Abs(src_width); in ScalePlaneSimple()
1327 if (src_width * 2 == dst_width && x < 0x8000) { in ScalePlaneSimple()
1343 static void ScalePlaneSimple_16(int src_width, int src_height, in ScalePlaneSimple_16() argument
1355 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone, in ScalePlaneSimple_16()
1357 src_width = Abs(src_width); in ScalePlaneSimple_16()
1359 if (src_width * 2 == dst_width && x < 0x8000) { in ScalePlaneSimple_16()
1381 int src_width, int src_height, in ScalePlane() argument
1386 filtering = ScaleFilterReduce(src_width, src_height, in ScalePlane()
1398 if (dst_width == src_width && dst_height == src_height) { in ScalePlane()
1403 if (dst_width == src_width && filtering != kFilterBox) { in ScalePlane()
1412 if (dst_width <= Abs(src_width) && dst_height <= src_height) { in ScalePlane()
1414 if (4 * dst_width == 3 * src_width && in ScalePlane()
1417 ScalePlaneDown34(src_width, src_height, dst_width, dst_height, in ScalePlane()
1421 if (2 * dst_width == src_width && 2 * dst_height == src_height) { in ScalePlane()
1423 ScalePlaneDown2(src_width, src_height, dst_width, dst_height, in ScalePlane()
1428 if (8 * dst_width == 3 * src_width && in ScalePlane()
1431 ScalePlaneDown38(src_width, src_height, dst_width, dst_height, in ScalePlane()
1435 if (4 * dst_width == src_width && 4 * dst_height == src_height && in ScalePlane()
1438 ScalePlaneDown4(src_width, src_height, dst_width, dst_height, in ScalePlane()
1444 ScalePlaneBox(src_width, src_height, dst_width, dst_height, in ScalePlane()
1449 ScalePlaneBilinearUp(src_width, src_height, dst_width, dst_height, in ScalePlane()
1454 ScalePlaneBilinearDown(src_width, src_height, dst_width, dst_height, in ScalePlane()
1458 ScalePlaneSimple(src_width, src_height, dst_width, dst_height, in ScalePlane()
1464 int src_width, int src_height, in ScalePlane_16() argument
1469 filtering = ScaleFilterReduce(src_width, src_height, in ScalePlane_16()
1481 if (dst_width == src_width && dst_height == src_height) { in ScalePlane_16()
1486 if (dst_width == src_width) { in ScalePlane_16()
1495 if (dst_width <= Abs(src_width) && dst_height <= src_height) { in ScalePlane_16()
1497 if (4 * dst_width == 3 * src_width && in ScalePlane_16()
1500 ScalePlaneDown34_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1504 if (2 * dst_width == src_width && 2 * dst_height == src_height) { in ScalePlane_16()
1506 ScalePlaneDown2_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1511 if (8 * dst_width == 3 * src_width && in ScalePlane_16()
1514 ScalePlaneDown38_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1518 if (4 * dst_width == src_width && 4 * dst_height == src_height && in ScalePlane_16()
1521 ScalePlaneDown4_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1527 ScalePlaneBox_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1532 ScalePlaneBilinearUp_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1537 ScalePlaneBilinearDown_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1541 ScalePlaneSimple_16(src_width, src_height, dst_width, dst_height, in ScalePlane_16()
1552 int src_width, int src_height, in I420Scale() argument
1558 int src_halfwidth = SUBSAMPLE(src_width, 1, 1); in I420Scale()
1562 if (!src_y || !src_u || !src_v || src_width == 0 || src_height == 0 || in I420Scale()
1563 src_width > 32768 || src_height > 32768 || in I420Scale()
1568 ScalePlane(src_y, src_stride_y, src_width, src_height, in I420Scale()
1584 int src_width, int src_height, in I420Scale_16() argument
1590 int src_halfwidth = SUBSAMPLE(src_width, 1, 1); in I420Scale_16()
1594 if (!src_y || !src_u || !src_v || src_width == 0 || src_height == 0 || in I420Scale_16()
1595 src_width > 32768 || src_height > 32768 || in I420Scale_16()
1600 ScalePlane_16(src_y, src_stride_y, src_width, src_height, in I420Scale_16()
1616 int src_width, int src_height, in Scale() argument
1624 src_width, src_height, in Scale()
1634 int ScaleOffset(const uint8* src, int src_width, int src_height, in ScaleOffset() argument
1639 int src_halfwidth = SUBSAMPLE(src_width, 1, 1); in ScaleOffset()
1645 const uint8* src_u = src + src_width * src_height; in ScaleOffset()
1646 const uint8* src_v = src + src_width * src_height + in ScaleOffset()
1653 if (!src || src_width <= 0 || src_height <= 0 || in ScaleOffset()
1658 return I420Scale(src_y, src_width, in ScaleOffset()
1661 src_width, src_height, in ScaleOffset()