Home | History | Annotate | Download | only in source

Lines Matching full:dst_width

37                             int dst_width, int dst_height,
43 uint8* dst_ptr, int dst_width) =
57 if (IS_ALIGNED(dst_width, 16)) {
69 if (IS_ALIGNED(dst_width, 16)) {
81 if (IS_ALIGNED(dst_width, 32)) {
102 ScaleRowDown2(src_ptr, src_stride, dst_ptr, dst_width);
109 int dst_width, int dst_height,
115 uint16* dst_ptr, int dst_width) =
126 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(dst_width, 16)) {
132 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 16)) {
152 ScaleRowDown2(src_ptr, src_stride, dst_ptr, dst_width);
163 int dst_width, int dst_height,
169 uint8* dst_ptr, int dst_width) =
180 if (IS_ALIGNED(dst_width, 8)) {
189 if (IS_ALIGNED(dst_width, 8)) {
198 if (IS_ALIGNED(dst_width, 16)) {
216 ScaleRowDown4(src_ptr, src_stride, dst_ptr, dst_width);
223 int dst_width, int dst_height,
229 uint16* dst_ptr, int dst_width) =
237 if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(dst_width, 8)) {
243 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 8)) {
261 ScaleRowDown4(src_ptr, src_stride, dst_ptr, dst_width);
270 int dst_width, int dst_height,
276 uint8* dst_ptr, int dst_width);
278 uint8* dst_ptr, int dst_width);
280 assert(dst_width % 3 == 0);
297 if (dst_width % 24 == 0) {
317 if (dst_width % 24 == 0) {
329 if (TestCpuFlag(kCpuHasDSPR2) && (dst_width % 24 == 0) &&
343 ScaleRowDown34_0(src_ptr, filter_stride, dst_ptr, dst_width);
346 ScaleRowDown34_1(src_ptr, filter_stride, dst_ptr, dst_width);
350 dst_ptr, dst_width);
357 ScaleRowDown34_0(src_ptr, filter_stride, dst_ptr, dst_width);
360 ScaleRowDown34_1(src_ptr, 0, dst_ptr, dst_width);
362 ScaleRowDown34_0(src_ptr, 0, dst_ptr, dst_width);
367 int dst_width, int dst_height,
373 uint16* dst_ptr, int dst_width);
375 uint16* dst_ptr, int dst_width);
377 assert(dst_width % 3 == 0);
386 if (TestCpuFlag(kCpuHasNEON) && (dst_width % 24 == 0)) {
397 if (TestCpuFlag(kCpuHasSSSE3) && (dst_width % 24 == 0)) {
408 if (TestCpuFlag(kCpuHasDSPR2) && (dst_width % 24 == 0) &&
422 ScaleRowDown34_0(src_ptr, filter_stride, dst_ptr, dst_width);
425 ScaleRowDown34_1(src_ptr, filter_stride, dst_ptr, dst_width);
429 dst_ptr, dst_width);
436 ScaleRowDown34_0(src_ptr, filter_stride, dst_ptr, dst_width);
439 ScaleRowDown34_1(src_ptr, 0, dst_ptr, dst_width);
441 ScaleRowDown34_0(src_ptr, 0, dst_ptr, dst_width);
462 int dst_width, int dst_height,
468 dst_width);
470 uint8* dst_ptr, int dst_width);
472 assert(dst_width % 3 == 0);
490 if (dst_width % 12 == 0) {
510 if (dst_width % 12 == 0 && !filtering) {
514 if (dst_width % 6 == 0 && filtering) {
521 if (TestCpuFlag(kCpuHasDSPR2) && (dst_width % 12 == 0) &&
535 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
538 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
541 ScaleRowDown38_2(src_ptr, filter_stride, dst_ptr, dst_width);
548 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
551 ScaleRowDown38_3(src_ptr, 0, dst_ptr, dst_width);
553 ScaleRowDown38_3(src_ptr, 0, dst_ptr, dst_width);
558 int dst_width, int dst_height,
564 uint16* dst_ptr, int dst_width);
566 uint16* dst_ptr, int dst_width);
568 assert(dst_width % 3 == 0);
577 if (TestCpuFlag(kCpuHasNEON) && (dst_width % 12 == 0)) {
588 if (TestCpuFlag(kCpuHasSSSE3) && (dst_width % 24 == 0)) {
599 if (TestCpuFlag(kCpuHasDSPR2) && (dst_width % 12 == 0) &&
613 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
616 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
619 ScaleRowDown38_2(src_ptr, filter_stride, dst_ptr, dst_width);
626 ScaleRowDown38_3(src_ptr, filter_stride, dst_ptr, dst_width);
629 ScaleRowDown38_3(src_ptr, 0, dst_ptr, dst_width);
631 ScaleRowDown38_3(src_ptr, 0, dst_ptr, dst_width);
657 static void ScaleAddCols2_C(int dst_width, int boxheight, int x, int dx,
665 for (i = 0; i < dst_width; ++i) {
674 static void ScaleAddCols2_16_C(int dst_width, int boxheight, int x, int dx,
682 for (i = 0; i < dst_width; ++i) {
691 static void ScaleAddCols0_C(int dst_width, int boxheight, int x, int,
696 for (i = 0; i < dst_width; ++i) {
701 static void ScaleAddCols1_C(int dst_width, int boxheight, int x, int dx,
707 for (i = 0; i < dst_width; ++i) {
713 static void ScaleAddCols1_16_C(int dst_width, int boxheight, int x, int dx,
718 for (i = 0; i < dst_width; ++i) {
732 int dst_width, int dst_height,
742 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox,
748 void (*ScaleAddCols)(int dst_width, int boxheight, int x, int dx,
793 ScaleAddCols(dst_width, boxheight, x, dx, (uint16*)(row16), dst_ptr);
801 int dst_width, int dst_height,
811 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterBox,
817 void (*ScaleAddCols)(int dst_width, int boxheight, int x, int dx,
843 ScaleAddCols(dst_width, boxheight, x, dx, (uint32*)(row32), dst_ptr);
852 int dst_width, int dst_height,
868 int dst_width, int x, int dx) =
871 ptrdiff_t src_stride, int dst_width, int source_y_fraction) =
873 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
919 if (IS_ALIGNED(dst_width, 8)) {
932 ScaleFilterCols(dst_ptr, src, dst_width, x, dx);
936 ScaleFilterCols(dst_ptr, row, dst_width, x, dx);
948 int dst_width, int dst_height,
964 int dst_width, int x, int dx) =
967 ptrdiff_t src_stride, int dst_width, int source_y_fraction) =
969 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
1028 ScaleFilterCols(dst_ptr, src, dst_width, x, dx);
1032 ScaleFilterCols(dst_ptr, (uint16*)row, dst_width, x, dx);
1045 int dst_width, int dst_height,
1057 ptrdiff_t src_stride, int dst_width, int source_y_fraction) =
1060 int dst_width, int x, int dx) =
1062 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
1069 if (IS_ALIGNED(dst_width, 16)) {
1077 if (IS_ALIGNED(dst_width, 32)) {
1085 if (IS_ALIGNED(dst_width, 16)) {
1093 if (IS_ALIGNED(dst_width, 4)) {
1110 if (IS_ALIGNED(dst_width, 8)) {
1115 if (!filtering && src_width * 2 == dst_width && x < 0x8000) {
1118 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 8)) {
1132 const int kRowSize = (dst_width + 31) & ~31;
1139 ScaleFilterCols(rowptr, src, dst_width, x, dx);
1143 ScaleFilterCols(rowptr + rowstride, src, dst_width, x, dx);
1155 ScaleFilterCols(rowptr, src, dst_width, x, dx);
1163 InterpolateRow(dst_ptr, rowptr, 0, dst_width, 0);
1166 InterpolateRow(dst_ptr, rowptr, rowstride, dst_width, yf);
1176 int dst_width, int dst_height,
1188 ptrdiff_t src_stride, int dst_width, int source_y_fraction) =
1191 int dst_width, int x, int dx) =
1193 ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
1200 if (IS_ALIGNED(dst_width, 16)) {
1208 if (IS_ALIGNED(dst_width, 16)) {
1216 if (IS_ALIGNED(dst_width, 32)) {
1224 if (IS_ALIGNED(dst_width, 16)) {
1232 if (IS_ALIGNED(dst_width, 4)) {
1246 if (!filtering && src_width * 2 == dst_width && x < 0x8000) {
1249 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 8)) {
1263 const int kRowSize = (dst_width + 31) & ~31;
1270 ScaleFilterCols(rowptr, src, dst_width, x, dx);
1274 ScaleFilterCols(rowptr + rowstride, src, dst_width, x, dx);
1286 ScaleFilterCols(rowptr, src, dst_width, x, dx);
1294 InterpolateRow(dst_ptr, rowptr, 0, dst_width, 0);
1297 InterpolateRow(dst_ptr, rowptr, rowstride, dst_width, yf);
1312 int dst_width, int dst_height,
1317 int dst_width, int x, int dx) = ScaleCols_C;
1323 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone,
1327 if (src_width * 2 == dst_width && x < 0x8000) {
1330 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 8)) {
1337 ScaleCols(dst_ptr, src_ptr + (y >> 16) * src_stride, dst_width, x, dx);
1344 int dst_width, int dst_height,
1349 int dst_width, int x, int dx) = ScaleCols_16_C;
1355 ScaleSlope(src_width, src_height, dst_width, dst_height, kFilterNone,
1359 if (src_width * 2 == dst_width && x < 0x8000) {
1362 if (TestCpuFlag(kCpuHasSSE2) && IS_ALIGNED(dst_width, 8)) {
1370 dst_width, x, dx);
1383 int dst_width, int dst_height,
1387 dst_width, dst_height, filtering);
1398 if (dst_width == src_width && dst_height == src_height) {
1400 CopyPlane(src, src_stride, dst, dst_stride, dst_width, dst_height);
1403 if (dst_width == src_width && filtering != kFilterBox) {
1407 dst_width, dst_height,
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,
1466 int dst_width, int dst_height,
1470 dst_width, dst_height, filtering);
1481 if (dst_width == src_width && dst_height == src_height) {
1483 CopyPlane_16(src, src_stride, dst, dst_stride, dst_width, dst_height);
1486 if (dst_width
1490 dst_width, dst_height,
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,
1556 int dst_width, int dst_height,
1560 int dst_halfwidth = SUBSAMPLE(dst_width, 1, 1);
1564 !dst_y || !dst_u || !dst_v || dst_width <= 0 || dst_height <= 0) {
1569 dst_y, dst_stride_y, dst_width, dst_height,
1588 int dst_width, int dst_height,
1592 int dst_halfwidth = SUBSAMPLE(dst_width, 1, 1);
1596 !dst_y || !dst_u || !dst_v || dst_width <= 0 || dst_height <= 0) {
1601 dst_y, dst_stride_y, dst_width, dst_height,
1619 int dst_width, int dst_height,
1628 dst_width, dst_height,
1635 uint8* dst, int dst_width, int dst_height, int dst_yoffset,
1641 int dst_halfwidth = SUBSAMPLE(dst_width, 1, 1);
1648 uint8* dst_y = dst + dst_yoffset_even * dst_width;
1649 uint8* dst_u = dst + dst_width * dst_height +
1651 uint8* dst_v = dst + dst_width * dst_height + dst_halfwidth * dst_halfheight +
1654 !dst || dst_width <= 0 || dst_height <= 0 || dst_yoffset_even < 0 ||
1662 dst_y, dst_width,
1665 dst_width, aheight,