Lines Matching refs:dst_width

40                             int dst_width, int dst_height,
46 uint8* dst_ptr, int dst_width) =
57 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(dst_width, 16)) {
61 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 16)) {
87 ScaleRowDown2(src_ptr, src_stride, dst_ptr, dst_width);
94 int dst_width, int dst_height,
100 uint16* dst_ptr, int dst_width) =
111 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(dst_width, 16)) {
116 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 16)) {
143 ScaleRowDown2(src_ptr, src_stride, dst_ptr, dst_width);
154 int dst_width, int dst_height,
160 uint8* dst_ptr, int dst_width) =
168 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(dst_width, 8)) {
173 IS_ALIGNED(dst_width, 8) && IS_ALIGNED(row_stride, 16) &&
190 ScaleRowDown4(src_ptr, src_stride, dst_ptr, dst_width);
197 int dst_width, int dst_height,
203 uint16* dst_ptr, int dst_width) =
211 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(dst_width, 8)) {
217 IS_ALIGNED(dst_width, 8) && IS_ALIGNED(row_stride, 16) &&
235 ScaleRowDown4(src_ptr, src_stride, dst_ptr, dst_width);
244 int dst_width, int dst_height,
250 uint8* dst_ptr, int dst_width);
252 uint8* dst_ptr, int dst_width);
254 assert(dst_width % 3 == 0);
263 if (TestCpuFlag(kCpuHasNEON) && (dst_width % 24 == 0)) {
274 if (TestCpuFlag(kCpuHasSSSE3) && (dst_width % 24 == 0) &&
286 if (TestCpuFlag(kCpuHasMIPS_DSPR2) && (dst_width % 24 == 0) &&
300 ScaleRowDown34_0(src_ptr, filter_stride, dst_ptr, dst_width);
303 ScaleRowDown34_1(src_ptr, filter_stride, dst_ptr, dst_width);
307 dst_ptr, dst_width);
314 ScaleRowDown34_0(src_ptr, filter_stride, dst_ptr, dst_width);
317 ScaleRowDown34_1(src_ptr, 0, dst_ptr, dst_width);
319 ScaleRowDown34_0(src_ptr, 0, dst_ptr, dst_width);
324 int dst_width, int dst_height,
330 uint16* dst_ptr, int dst_width);
332 uint16* dst_ptr, int dst_width);
334 assert(dst_width % 3 == 0);
343 if (TestCpuFlag(kCpuHasNEON) && (dst_width % 24 == 0)) {
354 if (TestCpuFlag(kCpuHasSSSE3) && (dst_width % 24 == 0) &&
366 if (TestCpuFlag(kCpuHasMIPS_DSPR2) && (dst_width % 24 == 0) &&
380 ScaleRowDown34_0(src_ptr, filter_stride, dst_ptr, dst_width);
383 ScaleRowDown34_1(src_ptr, filter_stride, dst_ptr, dst_width);
387 dst_ptr, dst_width);
394 ScaleRowDown34_0(src_ptr, filter_stride, dst_ptr, dst_width);
397 ScaleRowDown34_1(src_ptr, 0, dst_ptr, dst_width);
399 ScaleRowDown34_0(src_ptr, 0, dst_ptr, dst_width);
420 int dst_width, int dst_height,
426 uint8* dst_ptr, int dst_width);
428 uint8* dst_ptr, int dst_width);
430 assert(dst_width % 3 == 0);
439 if (TestCpuFlag(kCpuHasNEON) && (dst_width % 12 == 0)) {
449 if (TestCpuFlag(kCpuHasSSSE3) && (dst_width % 24 == 0) &&
460 if (TestCpuFlag(kCpuHasMIPS_DSPR2) && (dst_width % 12 == 0) &&
474 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
477 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
480 ScaleRowDown38_2(src_ptr, filter_stride, dst_ptr, dst_width);
487 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
490 ScaleRowDown38_3(src_ptr, 0, dst_ptr, dst_width);
492 ScaleRowDown38_3(src_ptr, 0, dst_ptr, dst_width);
497 int dst_width, int dst_height,
503 uint16* dst_ptr, int dst_width);
505 uint16* dst_ptr, int dst_width);
507 assert(dst_width % 3 == 0);
516 if (TestCpuFlag(kCpuHasNEON) && (dst_width % 12 == 0)) {
526 if (TestCpuFlag(kCpuHasSSSE3) && (dst_width % 24 == 0) &&
537 if (TestCpuFlag(kCpuHasMIPS_DSPR2) && (dst_width % 12 == 0) &&
551 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
554 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
557 ScaleRowDown38_2(src_ptr, filter_stride, dst_ptr, dst_width);
564 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
567 ScaleRowDown38_3(src_ptr, 0, dst_ptr, dst_width);
569 ScaleRowDown38_3(src_ptr, 0, dst_ptr, dst_width);
605 static void ScalePlaneBoxRow_C(int dst_width, int boxheight,
610 for (i = 0; i < dst_width; ++i) {
619 static void ScalePlaneBoxRow_16_C(int dst_width, int boxheight,
624 for (i = 0; i < dst_width; ++i) {
653 static void ScaleAddCols2_C(int dst_width, int boxheight, int x, int dx,
662 for (i = 0; i < dst_width; ++i) {
670 static void ScaleAddCols2_16_C(int dst_width, int boxheight, int x, int dx,
679 for (i = 0; i < dst_width; ++i) {
688 static void ScaleAddCols1_C(int dst_width, int boxheight, int x, int dx,
693 for (i = 0; i < dst_width; ++i) {
699 static void ScaleAddCols1_16_C(int dst_width, int boxheight, int x, int dx,
704 for (i = 0; i < dst_width; ++i) {
718 int dst_width, int dst_height,
728 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox,
744 ScalePlaneBoxRow_C(dst_width, boxheight,
754 void (*ScaleAddCols)(int dst_width, int boxheight, int x, int dx,
781 ScaleAddCols(dst_width, boxheight, x, dx, (uint16*)(row16),
790 int dst_width, int dst_height,
800 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox,
816 ScalePlaneBoxRow_16_C(dst_width, boxheight,
826 void (*ScaleAddCols)(int dst_width, int boxheight, int x, int dx,
853 ScaleAddCols(dst_width, boxheight, x, dx, (uint32*)(row32),
863 int dst_width, int dst_height,
879 int dst_width, int x, int dx) =
882 ptrdiff_t src_stride, int dst_width, int source_y_fraction) =
884 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
949 ScaleFilterCols(dst_ptr, src, dst_width, x, dx);
953 ScaleFilterCols(dst_ptr, row, dst_width, x, dx);
965 int dst_width, int dst_height,
981 int dst_width, int x, int dx) =
984 ptrdiff_t src_stride, int dst_width, int source_y_fraction) =
986 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
1051 ScaleFilterCols(dst_ptr, src, dst_width, x, dx);
1055 ScaleFilterCols(dst_ptr, (uint16*)row, dst_width, x, dx);
1068 int dst_width, int dst_height,
1080 ptrdiff_t src_stride, int dst_width, int source_y_fraction) =
1083 int dst_width, int x, int dx) =
1085 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
1090 if (TestCpuFlag(kCpuHasSSE2) && dst_width >= 16) {
1092 if (IS_ALIGNED(dst_width, 16)) {
1101 if (TestCpuFlag(kCpuHasSSSE3) && dst_width >= 16) {
1103 if (IS_ALIGNED(dst_width, 16)) {
1112 if (TestCpuFlag(kCpuHasAVX2) && dst_width >= 32) {
1114 if (IS_ALIGNED(dst_width, 32)) {
1120 if (TestCpuFlag(kCpuHasNEON) && dst_width >= 16) {
1122 if (IS_ALIGNED(dst_width, 16)) {
1128 if (TestCpuFlag(kCpuHasMIPS_DSPR2) && dst_width >= 4) {
1130 if (IS_ALIGNED(dst_width, 4)) {
1144 if (!filtering && src_width * 2 == dst_width && x < 0x8000) {
1147 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 8) &&
1163 const int kRowSize = (dst_width + 15) & ~15;
1170 ScaleFilterCols(rowptr, src, dst_width, x, dx);
1174 ScaleFilterCols(rowptr + rowstride, src, dst_width, x, dx);
1186 ScaleFilterCols(rowptr, src, dst_width, x, dx);
1194 InterpolateRow(dst_ptr, rowptr, 0, dst_width, 0);
1197 InterpolateRow(dst_ptr, rowptr, rowstride, dst_width, yf);
1207 int dst_width, int dst_height,
1219 ptrdiff_t src_stride, int dst_width, int source_y_fraction) =
1222 int dst_width, int x, int dx) =
1224 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
1229 if (TestCpuFlag(kCpuHasSSE2) && dst_width >= 16) {
1231 if (IS_ALIGNED(dst_width, 16)) {
1240 if (TestCpuFlag(kCpuHasSSSE3) && dst_width >= 16) {
1242 if (IS_ALIGNED(dst_width, 16)) {
1251 if (TestCpuFlag(kCpuHasAVX2) && dst_width >= 32) {
1253 if (IS_ALIGNED(dst_width, 32)) {
1259 if (TestCpuFlag(kCpuHasNEON) && dst_width >= 16) {
1261 if (IS_ALIGNED(dst_width, 16)) {
1267 if (TestCpuFlag(kCpuHasMIPS_DSPR2) && dst_width >= 4) {
1269 if (IS_ALIGNED(dst_width, 4)) {
1283 if (!filtering && src_width * 2 == dst_width && x < 0x8000) {
1286 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 8) &&
1302 const int kRowSize = (dst_width + 15) & ~15;
1309 ScaleFilterCols(rowptr, src, dst_width, x, dx);
1313 ScaleFilterCols(rowptr + rowstride, src, dst_width, x, dx);
1325 ScaleFilterCols(rowptr, src, dst_width, x, dx);
1333 InterpolateRow(dst_ptr, rowptr, 0, dst_width, 0);
1336 InterpolateRow(dst_ptr, rowptr, rowstride, dst_width, yf);
1351 int dst_width, int dst_height,
1356 int dst_width, int x, int dx) = ScaleCols_C;
1362 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone,
1366 if (src_width * 2 == dst_width && x < 0x8000) {
1369 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 8) &&
1379 dst_width, x, dx);
1386 int dst_width, int dst_height,
1391 int dst_width, int x, int dx) = ScaleCols_16_C;
1397 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone,
1401 if (src_width * 2 == dst_width && x < 0x8000) {
1404 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 8) &&
1414 dst_width, x, dx);
1427 int dst_width, int dst_height,
1431 dst_width, dst_height,
1443 if (dst_width == src_width && dst_height == src_height) {
1445 CopyPlane(src, src_stride, dst, dst_stride, dst_width, dst_height);
1448 if (dst_width == src_width) {
1452 dst_width, dst_height,
1457 if (dst_width <= Abs(src_width) && dst_height <= src_height) {
1459 if (4 * dst_width == 3 * src_width &&
1462 ScalePlaneDown34(src_width, src_height, dst_width, dst_height,
1466 if (2 * dst_width == src_width && 2 * dst_height == src_height) {
1468 ScalePlaneDown2(src_width, src_height, dst_width, dst_height,
1473 if (8 * dst_width == 3 * src_width &&
1476 ScalePlaneDown38(src_width, src_height, dst_width, dst_height,
1480 if (4 * dst_width == src_width && 4 * dst_height == src_height &&
1483 ScalePlaneDown4(src_width, src_height, dst_width, dst_height,
1489 ScalePlaneBox(src_width, src_height, dst_width, dst_height,
1494 ScalePlaneBilinearUp(src_width, src_height, dst_width, dst_height,
1499 ScalePlaneBilinearDown(src_width, src_height, dst_width, dst_height,
1503 ScalePlaneSimple(src_width, src_height, dst_width, dst_height,
1511 int dst_width, int dst_height,
1515 dst_width, dst_height,
1527 if (dst_width == src_width && dst_height == src_height) {
1529 CopyPlane_16(src, src_stride, dst, dst_stride, dst_width, dst_height);
1532 if (dst_width == src_width) {
1536 dst_width, dst_height,
1541 if (dst_width <= Abs(src_width) && dst_height <= src_height) {
1543 if (4 * dst_width == 3 * src_width &&
1546 ScalePlaneDown34_16(src_width, src_height, dst_width, dst_height,
1550 if (2 * dst_width == src_width && 2 * dst_height == src_height) {
1552 ScalePlaneDown2_16(src_width, src_height, dst_width, dst_height,
1557 if (8 * dst_width == 3 * src_width &&
1560 ScalePlaneDown38_16(src_width, src_height, dst_width, dst_height,
1564 if (4 * dst_width == src_width && 4 * dst_height == src_height &&
1567 ScalePlaneDown4_16(src_width, src_height, dst_width, dst_height,
1573 ScalePlaneBox_16(src_width, src_height, dst_width, dst_height,
1578 ScalePlaneBilinearUp_16(src_width, src_height, dst_width, dst_height,
1583 ScalePlaneBilinearDown_16(src_width, src_height, dst_width, dst_height,
1587 ScalePlaneSimple_16(src_width, src_height, dst_width, dst_height,
1602 int dst_width, int dst_height,
1606 int dst_halfwidth = SUBSAMPLE(dst_width, 1, 1);
1609 !dst_y || !dst_u || !dst_v || dst_width <= 0 || dst_height <= 0) {
1614 dst_y, dst_stride_y, dst_width, dst_height,
1633 int dst_width, int dst_height,
1637 int dst_halfwidth = SUBSAMPLE(dst_width, 1, 1);
1640 !dst_y || !dst_u || !dst_v || dst_width <= 0 || dst_height <= 0) {
1645 dst_y, dst_stride_y, dst_width, dst_height,
1663 int dst_width, int dst_height,
1672 dst_width, dst_height,
1679 uint8* dst, int dst_width, int dst_height, int dst_yoffset,
1685 int dst_halfwidth = SUBSAMPLE(dst_width, 1, 1);
1692 uint8* dst_y = dst + dst_yoffset_even * dst_width;
1693 uint8* dst_u = dst + dst_width * dst_height +
1695 uint8* dst_v = dst + dst_width * dst_height + dst_halfwidth * dst_halfheight +
1698 !dst || dst_width <= 0 || dst_height <= 0 || dst_yoffset_even < 0 ||
1706 dst_y, dst_width,
1709 dst_width, aheight,