Lines Matching refs:height

34                int height) {
37 // Negative height means invert the image.
38 if (height < 0) {
39 height = -height;
40 dst_y = dst_y + (height - 1) * dst_stride_y;
45 width *= height;
46 height = 1;
80 for (y = 0; y < height; ++y) {
87 // TODO(fbarchard): Consider support for negative height.
95 int height) {
100 width *= height;
101 height = 1;
126 for (y = 0; y < height; ++y) {
148 int height) {
150 if (!src_u || !src_v || !dst_u || !dst_v || width <= 0 || height == 0) {
153 // Negative height means invert the image.
154 if (height < 0) {
155 height = -height;
156 src_y = src_y + (height - 1) * src_stride_y;
157 src_u = src_u + (height - 1) * src_stride_u;
158 src_v = src_v + (height - 1) * src_stride_v;
165 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height);
167 CopyPlane(src_u, src_stride_u, dst_u, dst_stride_u, halfwidth, height);
168 CopyPlane(src_v, src_stride_v, dst_v, dst_stride_v, halfwidth, height);
187 int height) {
188 if (!src_u || !src_v || !dst_u || !dst_v || width <= 0 || height == 0) {
191 // Negative height means invert the image.
192 if (height < 0) {
193 height = -height;
194 src_y = src_y + (height - 1) * src_stride_y;
195 src_u = src_u + (height - 1) * src_stride_u;
196 src_v = src_v + (height - 1) * src_stride_v;
203 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height);
205 CopyPlane(src_u, src_stride_u, dst_u, dst_stride_u, width, height);
206 CopyPlane(src_v, src_stride_v, dst_v, dst_stride_v, width, height);
217 int height) {
218 if (!src_y || !dst_y || width <= 0 || height == 0) {
221 // Negative height means invert the image.
222 if (height < 0) {
223 height = -height;
224 src_y = src_y + (height - 1) * src_stride_y;
227 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height);
242 int height) {
247 if (!src_y || !dst_y || width <= 0 || height == 0) {
250 // Negative height means invert the image.
251 if (height < 0) {
252 height = -height;
253 src_y = src_y + (height - 1) * src_stride_y;
257 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height);
262 // Width and height are plane sizes (typically half pixel width).
271 int height) {
275 // Negative height means invert the image.
276 if (height < 0) {
277 height = -height;
278 dst_u = dst_u + (height - 1) * dst_stride_u;
279 dst_v = dst_v + (height - 1) * dst_stride_v;
286 width *= height;
287 height = 1;
325 for (y = 0; y < height; ++y) {
342 int height) {
347 // Negative height means invert the image.
348 if (height < 0) {
349 height = -height;
350 dst_uv = dst_uv + (height - 1) * dst_stride_uv;
356 width *= height;
357 height = 1;
393 for (y = 0; y < height; ++y) {
408 int height) {
411 // Negative height means invert the image.
412 if (height < 0) {
413 height = -height;
414 src_y = src_y + (height - 1) * src_stride_y;
459 for (y = 0; y < height; ++y) {
477 int height) {
483 if (!src_yuy2 || !dst_y || !dst_u || !dst_v || width <= 0 || height == 0) {
486 // Negative height means invert the image.
487 if (height < 0) {
488 height = -height;
489 src_yuy2 = src_yuy2 + (height - 1) * src_stride_yuy2;
495 width * height <= 32768) {
496 width *= height;
497 height = 1;
541 for (y = 0; y < height; ++y) {
563 int height) {
569 if (!src_uyvy || !dst_y || !dst_u || !dst_v || width <= 0 || height == 0) {
572 // Negative height means invert the image.
573 if (height < 0) {
574 height = -height;
575 src_uyvy = src_uyvy + (height - 1) * src_stride_uyvy;
581 width * height <= 32768) {
582 width *= height;
583 height = 1;
627 for (y = 0; y < height; ++y) {
645 int height) {
649 if (!src_yuy2 || !dst_y || width <= 0 || height == 0) {
652 // Negative height means invert the image.
653 if (height < 0) {
654 height = -height;
655 src_yuy2 = src_yuy2 + (height - 1) * src_stride_yuy2;
660 width *= height;
661 height = 1;
697 for (y = 0; y < height; ++y) {
712 int height) {
713 if (!src_y || !dst_y || width <= 0 || height == 0) {
716 // Negative height means invert the image.
717 if (height < 0) {
718 height = -height;
719 src_y = src_y + (height - 1) * src_stride_y;
723 MirrorPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height);
742 int height) {
744 int halfheight = (height + 1) >> 1;
746 height == 0) {
749 // Negative height means invert the image.
750 if (height < 0) {
751 height = -height;
752 halfheight = (height + 1) >> 1;
753 src_y = src_y + (height - 1) * src_stride_y;
762 MirrorPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height);
776 int height) {
780 if (!src_argb || !dst_argb || width <= 0 || height == 0) {
783 // Negative height means invert the image.
784 if (height < 0) {
785 height = -height;
786 src_argb = src_argb + (height - 1) * src_stride_argb;
823 for (y = 0; y < height; ++y) {
861 int height) {
865 if (!src_argb0 || !src_argb1 || !dst_argb || width <= 0 || height == 0) {
868 // Negative height means invert the image.
869 if (height < 0) {
870 height = -height;
871 dst_argb = dst_argb + (height - 1) * dst_stride_argb;
877 width *= height;
878 height = 1;
882 for (y = 0; y < height; ++y) {
902 int height) {
907 if (!src_y0 || !src_y1 || !alpha || !dst_y || width <= 0 || height == 0) {
910 // Negative height means invert the image.
911 if (height < 0) {
912 height = -height;
913 dst_y = dst_y + (height - 1) * dst_stride_y;
920 width *= height;
921 height = 1;
942 for (y = 0; y < height; ++y) {
976 int height) {
978 // Half width/height for UV.
986 !alpha || !dst_y || !dst_u || !dst_v || width <= 0 || height == 0) {
990 // Negative height means invert the image.
991 if (height < 0) {
992 height = -height;
993 dst_y = dst_y + (height - 1) * dst_stride_y;
999 dst_y, dst_stride_y, width, height);
1056 for (y = 0; y < height; y += 2) {
1057 // last row of odd height image use 1 row of alpha instead of 2.
1058 if (y == (height - 1)) {
1061 // Subsample 2 rows of UV to half width and half height.
1086 int height) {
1090 if (!src_argb0 || !src_argb1 || !dst_argb || width <= 0 || height == 0) {
1093 // Negative height means invert the image.
1094 if (height < 0) {
1095 height = -height;
1096 dst_argb = dst_argb + (height - 1) * dst_stride_argb;
1102 width *= height;
1103 height = 1;
1140 for (y = 0; y < height; ++y) {
1158 int height) {
1162 if (!src_argb0 || !src_argb1 || !dst_argb || width <= 0 || height == 0) {
1165 // Negative height means invert the image.
1166 if (height < 0) {
1167 height = -height;
1168 dst_argb = dst_argb + (height - 1) * dst_stride_argb;
1174 width *= height;
1175 height = 1;
1217 for (y = 0; y < height; ++y) {
1235 int height) {
1239 if (!src_argb0 || !src_argb1 || !dst_argb || width <= 0 || height == 0) {
1242 // Negative height means invert the image.
1243 if (height < 0) {
1244 height = -height;
1245 dst_argb = dst_argb + (height - 1) * dst_stride_argb;
1251 width *= height;
1252 height = 1;
1289 for (y = 0; y < height; ++y) {
1308 int height) {
1314 if (!src_y || !src_u || !src_v || !dst_rgba || width <= 0 || height == 0) {
1317 // Negative height means invert the image.
1318 if (height < 0) {
1319 height = -height;
1320 dst_rgba = dst_rgba + (height - 1) * dst_stride_rgba;
1365 for (y = 0; y < height; ++y) {
1386 int height) {
1389 &kYuvI601Constants, width, height);
1403 int height) {
1408 width, height);
1420 int height) {
1425 if (!src_y || !src_uv || !dst_rgb565 || width <= 0 || height == 0) {
1428 // Negative height means invert the image.
1429 if (height < 0) {
1430 height = -height;
1431 dst_rgb565 = dst_rgb565 + (height - 1) * dst_stride_rgb565;
1467 for (y = 0; y < height; ++y) {
1485 int height) {
1489 if (!src_raw || !dst_rgb24 || width <= 0 || height == 0) {
1492 // Negative height means invert the image.
1493 if (height < 0) {
1494 height = -height;
1495 src_raw = src_raw + (height - 1) * src_stride_raw;
1500 width *= height;
1501 height = 1;
1529 for (y = 0; y < height; ++y) {
1541 int height,
1545 if (height < 0) {
1546 height = -height;
1547 dst_y = dst_y + (height - 1) * dst_stride_y;
1552 width *= height;
1553 height = 1;
1579 for (y = 0; y < height; ++y) {
1596 int height,
1601 int halfheight = (height + 1) >> 1;
1605 if (!dst_y || !dst_u || !dst_v || width <= 0 || height == 0 || x < 0 ||
1611 SetPlane(start_y, dst_stride_y, width, height, value_y);
1624 int height,
1628 if (!dst_argb || width <= 0 || height == 0 || dst_x < 0 || dst_y < 0) {
1631 if (height < 0) {
1632 height = -height;
1633 dst_argb = dst_argb + (height - 1) * dst_stride_argb;
1639 width *= height;
1640 height = 1;
1667 for (y = 0; y < height; ++y) {
1693 int height) {
1697 if (!src_argb || !dst_argb || width <= 0 || height == 0) {
1700 if (height < 0) {
1701 height = -height;
1702 src_argb = src_argb + (height - 1) * src_stride_argb;
1707 width *= height;
1708 height = 1;
1744 for (y = 0; y < height; ++y) {
1759 int height) {
1763 if (!src_argb || !dst_argb || width <= 0 || height == 0) {
1766 if (height < 0) {
1767 height = -height;
1768 src_argb = src_argb + (height - 1) * src_stride_argb;
1773 width *= height;
1774 height = 1;
1795 for (y = 0; y < height; ++y) {
1810 int height) {
1814 if (!src_argb || !dst_argb || width <= 0 || height == 0) {
1817 if (height < 0) {
1818 height = -height;
1819 src_argb = src_argb + (height - 1) * src_stride_argb;
1824 width *= height;
1825 height = 1;
1844 for (y = 0; y < height; ++y) {
1859 int height) {
1864 if (!dst_argb || width <= 0 || height <= 0 || dst_x < 0 || dst_y < 0) {
1869 width *= height;
1870 height = 1;
1889 for (y = 0; y < height; ++y) {
1903 int height) {
1907 if (!dst_argb || width <= 0 || height <= 0 || dst_x < 0 || dst_y < 0) {
1912 width *= height;
1913 height = 1;
1932 for (y = 0; y < height; ++y) {
1948 int height) {
1953 if (!src_argb || !dst_argb || !matrix_argb || width <= 0 || height == 0) {
1956 if (height < 0) {
1957 height = -height;
1958 src_argb = src_argb + (height - 1) * src_stride_argb;
1963 width *= height;
1964 height = 1;
1977 for (y = 0; y < height; ++y) {
1994 int height) {
1997 if (!dst_argb || !matrix_rgb || width <= 0 || height <= 0 || dst_x < 0 ||
2019 dst_stride_argb, &matrix_argb[0], width, height);
2031 int height) {
2036 if (!dst_argb || !table_argb || width <= 0 || height <= 0 || dst_x < 0 ||
2042 width *= height;
2043 height = 1;
2051 for (y = 0; y < height; ++y) {
2067 int height) {
2072 if (!dst_argb || !table_argb || width <= 0 || height <= 0 || dst_x < 0 ||
2078 width *= height;
2079 height = 1;
2087 for (y = 0; y < height; ++y) {
2112 int height) {
2117 if (!dst_argb || width <= 0 || height <= 0 || dst_x < 0 || dst_y < 0 ||
2123 width *= height;
2124 height = 1;
2137 for (y = 0; y < height; ++y) {
2152 int height) {
2158 if (!dst_cumsum || !src_argb || width <= 0 || height <= 0) {
2167 for (y = 0; y < height; ++y) {
2177 // Caller should allocate CumulativeSum table of width * height * 16 bytes
2178 // aligned to 16 byte boundary. height can be radius * 2 + 2 to save memory
2188 int height,
2201 if (!src_argb || !dst_argb || width <= 0 || height == 0) {
2204 if (height < 0) {
2205 height = -height;
2206 src_argb = src_argb + (height - 1) * src_stride_argb;
2209 if (radius > height) {
2210 radius = height;
2235 for (y = 0; y < height; ++y) {
2237 int bot_y = ((y + radius) < height) ? (y + radius) : (height - 1);
2252 if ((y + radius) < height) {
2296 int height,
2301 if (!src_argb || !dst_argb || width <= 0 || height == 0 || value == 0u) {
2304 if (height < 0) {
2305 height = -height;
2306 src_argb = src_argb + (height - 1) * src_stride_argb;
2311 width *= height;
2312 height = 1;
2331 for (y = 0; y < height; ++y) {
2348 int height,
2354 if (!src0 || !src1 || !dst || width <= 0 || height == 0) {
2357 // Negative height means invert the image.
2358 if (height < 0) {
2359 height = -height;
2360 dst = dst + (height - 1) * dst_stride;
2365 width *= height;
2366 height = 1;
2410 for (y = 0; y < height; ++y) {
2428 int height,
2432 width * 4, height, interpolation);
2456 int height,
2459 int halfheight = (height + 1) >> 1;
2461 !dst_y || !dst_u || !dst_v || width <= 0 || height == 0) {
2465 dst_stride_y, width, height, interpolation);
2481 int height) {
2485 if (!src_bgra || !dst_argb || width <= 0 || height == 0) {
2488 // Negative height means invert the image.
2489 if (height < 0) {
2490 height = -height;
2491 src_bgra = src_bgra + (height - 1) * src_stride_bgra;
2496 width *= height;
2497 height = 1;
2541 for (y = 0; y < height; ++y) {
2555 int height,
2569 if (!src_argb || !dst_argb || width <= 0 || height == 0) {
2572 // Negative height means invert the image.
2573 if (height < 0) {
2574 height = -height;
2575 src_argb = src_argb + (height - 1) * src_stride_argb;
2652 for (y = 0; y < height; ++y) {
2654 if (y < (height - 1)) {
2687 int height) {
2715 width, height, SobelRow);
2725 int height) {
2753 height, SobelToPlaneRow);
2764 int height) {
2792 width, height, SobelXYRow);
2803 int height) {
2807 if (!src_argb || !dst_argb || !poly || width <= 0 || height == 0) {
2810 // Negative height means invert the image.
2811 if (height < 0) {
2812 height = -height;
2813 src_argb = src_argb + (height - 1) * src_stride_argb;
2818 width *= height;
2819 height = 1;
2834 for (y = 0; y < height; ++y) {
2851 int height) {
2855 if (!src_y || !dst_y || width <= 0 || height == 0) {
2860 // Negative height means invert the image.
2861 if (height < 0) {
2862 height = -height;
2863 src_y = src_y + (height - 1) * src_stride_y;
2868 width *= height;
2869 height = 1;
2907 for (y = 0; y < height; ++y) {
2923 int height) {
2928 if (!src_argb || !dst_argb || !luma || width <= 0 || height == 0) {
2931 // Negative height means invert the image.
2932 if (height < 0) {
2933 height = -height;
2934 src_argb = src_argb + (height - 1) * src_stride_argb;
2939 width *= height;
2940 height = 1;
2949 for (y = 0; y < height; ++y) {
2964 int height) {
2968 if (!src_argb || !dst_argb || width <= 0 || height == 0) {
2971 // Negative height means invert the image.
2972 if (height < 0) {
2973 height = -height;
2974 src_argb = src_argb + (height - 1) * src_stride_argb;
2979 width *= height;
2980 height = 1;
3000 for (y = 0; y < height; ++y) {
3015 int height) {
3016 if (!src_argb || !dst_a || width <= 0 || height == 0) {
3019 // Negative height means invert the image.
3020 if (height < 0) {
3021 height = -height;
3022 src_argb += (height - 1) * src_stride;
3027 width *= height;
3028 height = 1;
3052 for (int y = 0; y < height; ++y) {
3067 int height) {
3071 if (!src_y || !dst_argb || width <= 0 || height == 0) {
3074 // Negative height means invert the image.
3075 if (height < 0) {
3076 height = -height;
3077 src_y = src_y + (height - 1) * src_stride_y;
3082 width *= height;
3083 height = 1;
3103 for (y = 0; y < height; ++y) {
3122 int height) {
3130 if (!src_yuy2 || !dst_y || !dst_uv || width <= 0 || height == 0) {
3133 // Negative height means invert the image.
3134 if (height < 0) {
3135 height = -height;
3136 src_yuy2 = src_yuy2 + (height - 1) * src_stride_yuy2;
3201 for (y = 0; y < height - 1; y += 2) {
3212 if (height & 1) {
3230 int height) {
3238 if (!src_uyvy || !dst_y || !dst_uv || width <= 0 || height == 0) {
3241 // Negative height means invert the image.
3242 if (height < 0) {
3243 height = -height;
3244 src_uyvy = src_uyvy + (height - 1) * src_stride_uyvy;
3309 for (y = 0; y < height - 1; y += 2) {
3320 if (height & 1) {