Home | History | Annotate | Download | only in source

Lines Matching refs:src_width

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