Home | History | Annotate | Download | only in source

Lines Matching refs:src_width

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