Lines Matching full:height
37 int width, int height) { in I420Copy() argument
40 width <= 0 || height == 0) { in I420Copy()
43 // Negative height means invert the image. in I420Copy()
44 if (height < 0) { in I420Copy()
45 height = -height; in I420Copy()
46 int halfheight = (height + 1) >> 1; in I420Copy()
47 src_y = src_y + (height - 1) * src_stride_y; in I420Copy()
56 int halfheight = (height + 1) >> 1; in I420Copy()
58 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height); in I420Copy()
132 int width, int height) { in I422ToI420() argument
135 width <= 0 || height == 0) { in I422ToI420()
138 // Negative height means invert the image. in I422ToI420()
139 if (height < 0) { in I422ToI420()
140 height = -height; in I422ToI420()
141 src_y = src_y + (height - 1) * src_stride_y; in I422ToI420()
142 src_u = src_u + (height - 1) * src_stride_u; in I422ToI420()
143 src_v = src_v + (height - 1) * src_stride_v; in I422ToI420()
164 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height); in I422ToI420()
169 for (y = 0; y < height - 1; y += 2) { in I422ToI420()
174 if (height & 1) { in I422ToI420()
179 for (y = 0; y < height - 1; y += 2) { in I422ToI420()
184 if (height & 1) { in I422ToI420()
212 int width, int height) { in I444ToI420() argument
215 width <= 0 || height == 0) { in I444ToI420()
218 // Negative height means invert the image. in I444ToI420()
219 if (height < 0) { in I444ToI420()
220 height = -height; in I444ToI420()
221 src_y = src_y + (height - 1) * src_stride_y; in I444ToI420()
222 src_u = src_u + (height - 1) * src_stride_u; in I444ToI420()
223 src_v = src_v + (height - 1) * src_stride_v; in I444ToI420()
249 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height); in I444ToI420()
254 for (y = 0; y < height - 1; y += 2) { in I444ToI420()
259 if (height & 1) { in I444ToI420()
264 for (y = 0; y < height - 1; y += 2) { in I444ToI420()
269 if (height & 1) { in I444ToI420()
281 // 411 chroma is 1/4 width, 1x height
282 // 420 chroma is 1/2 width, 1/2 height
290 int width, int height) { in I411ToI420() argument
293 width <= 0 || height == 0) { in I411ToI420()
296 // Negative height means invert the image. in I411ToI420()
297 if (height < 0) { in I411ToI420()
298 height = -height; in I411ToI420()
299 dst_y = dst_y + (height - 1) * dst_stride_y; in I411ToI420()
300 dst_u = dst_u + (height - 1) * dst_stride_u; in I411ToI420()
301 dst_v = dst_v + (height - 1) * dst_stride_v; in I411ToI420()
309 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height); in I411ToI420()
313 int halfheight = (height + 1) >> 1; in I411ToI420()
317 ScalePlaneBilinear(quarterwidth, height, // from 1/4 width, 1x height in I411ToI420()
318 halfwidth, halfheight, // to 1/2 width, 1/2 height in I411ToI420()
324 ScalePlaneBilinear(quarterwidth, height, // from 1/4 width, 1x height in I411ToI420()
325 halfwidth, halfheight, // to 1/2 width, 1/2 height in I411ToI420()
338 int width, int height) { in I400ToI420() argument
340 width <= 0 || height == 0) { in I400ToI420()
343 // Negative height means invert the image. in I400ToI420()
344 if (height < 0) { in I400ToI420()
345 height = -height; in I400ToI420()
346 src_y = src_y + (height - 1) * src_stride_y; in I400ToI420()
350 int halfheight = (height + 1) >> 1; in I400ToI420()
351 CopyPlane(src_y, src_stride_y, dst_y, dst_stride_y, width, height); in I400ToI420()
359 int width, int height) { in CopyPlane2() argument
380 for (int y = 0; y < height - 1; y += 2) { in CopyPlane2()
386 if (height & 1) { in CopyPlane2()
396 // Chroma is half width / half height. (420)
406 int width, int height) { in X420ToI420() argument
409 width <= 0 || height == 0) { in X420ToI420()
412 // Negative height means invert the image. in X420ToI420()
413 if (height < 0) { in X420ToI420()
414 height = -height; in X420ToI420()
415 int halfheight = (height + 1) >> 1; in X420ToI420()
416 dst_y = dst_y + (height - 1) * dst_stride_y; in X420ToI420()
443 width, height); in X420ToI420()
446 int halfheight = (height + 1) >> 1; in X420ToI420()
464 int width, int height) { in NV12ToI420() argument
470 width, height); in NV12ToI420()
479 int width, int height) { in M420ToI420() argument
485 width, height); in M420ToI420()
496 int width, int height) { in Q420ToI420() argument
499 width <= 0 || height == 0) { in Q420ToI420()
502 // Negative height means invert the image. in Q420ToI420()
503 if (height < 0) { in Q420ToI420()
504 height = -height; in Q420ToI420()
505 int halfheight = (height + 1) >> 1; in Q420ToI420()
506 dst_y = dst_y + (height - 1) * dst_stride_y; in Q420ToI420()
569 for (int y = 0; y < height - 1; y += 2) { in Q420ToI420()
581 if (height & 1) { in Q420ToI420()
592 // READSAFE_ODDHEIGHT - last row of odd height done with C.
593 // This policy assumes that the caller handles the last row of an odd height
613 int width, int height, int bpp, int overread) { in TestReadSafe() argument
623 (src_stride_yuy2 >= 0 && (height & 1) && width * bpp >= overread)) { in TestReadSafe()
629 src_yuy2 += (height - 1) * src_stride_yuy2; in TestReadSafe()
647 int width, int height) { in YUY2ToI420() argument
648 // Negative height means invert the image. in YUY2ToI420()
649 if (height < 0) { in YUY2ToI420()
650 height = -height; in YUY2ToI420()
651 src_yuy2 = src_yuy2 + (height - 1) * src_stride_yuy2; in YUY2ToI420()
692 for (int y = 0; y < height - 1; y += 2) { in YUY2ToI420()
701 if (height & 1) { in YUY2ToI420()
714 int width, int height) { in UYVYToI420() argument
715 // Negative height means invert the image. in UYVYToI420()
716 if (height < 0) { in UYVYToI420()
717 height = -height; in UYVYToI420()
718 src_uyvy = src_uyvy + (height - 1) * src_stride_uyvy; in UYVYToI420()
759 for (int y = 0; y < height - 1; y += 2) { in UYVYToI420()
768 if (height & 1) { in UYVYToI420()
831 int width, int height) { in V210ToI420() argument
835 width <= 0 || height == 0) { in V210ToI420()
838 // Negative height means invert the image. in V210ToI420()
839 if (height < 0) { in V210ToI420()
840 height = -height; in V210ToI420()
841 src_v210 = src_v210 + (height - 1) * src_stride_v210; in V210ToI420()
906 for (int y = 0; y < height - 1; y += 2) { in V210ToI420()
917 if (height & 1) { in V210ToI420()
930 int width, int height) { in ARGBToI420() argument
933 width <= 0 || height == 0) { in ARGBToI420()
936 // Negative height means invert the image. in ARGBToI420()
937 if (height < 0) { in ARGBToI420()
938 height = -height; in ARGBToI420()
939 src_argb = src_argb + (height - 1) * src_stride_argb; in ARGBToI420()
967 for (int y = 0; y < height - 1; y += 2) { in ARGBToI420()
976 if (height & 1) { in ARGBToI420()
988 int width, int height) { in BGRAToI420() argument
991 width <= 0 || height == 0) { in BGRAToI420()
994 // Negative height means invert the image. in BGRAToI420()
995 if (height < 0) { in BGRAToI420()
996 height = -height; in BGRAToI420()
997 src_bgra = src_bgra + (height - 1) * src_stride_bgra; in BGRAToI420()
1025 for (int y = 0; y < height - 1; y += 2) { in BGRAToI420()
1034 if (height & 1) { in BGRAToI420()
1046 int width, int height) { in ABGRToI420() argument
1049 width <= 0 || height == 0) { in ABGRToI420()
1052 // Negative height means invert the image. in ABGRToI420()
1053 if (height < 0) { in ABGRToI420()
1054 height = -height; in ABGRToI420()
1055 src_abgr = src_abgr + (height - 1) * src_stride_abgr; in ABGRToI420()
1083 for (int y = 0; y < height - 1; y += 2) { in ABGRToI420()
1092 if (height & 1) { in ABGRToI420()
1104 int width, int height) { in RGBAToI420() argument
1107 width <= 0 || height == 0) { in RGBAToI420()
1110 // Negative height means invert the image. in RGBAToI420()
1111 if (height < 0) { in RGBAToI420()
1112 height = -height; in RGBAToI420()
1113 src_rgba = src_rgba + (height - 1) * src_stride_rgba; in RGBAToI420()
1141 for (int y = 0; y < height - 1; y += 2) { in RGBAToI420()
1150 if (height & 1) { in RGBAToI420()
1162 int width, int height) { in RGB24ToI420() argument
1167 width <= 0 || height == 0) { in RGB24ToI420()
1170 // Negative height means invert the image. in RGB24ToI420()
1171 if (height < 0) { in RGB24ToI420()
1172 height = -height; in RGB24ToI420()
1173 src_rgb24 = src_rgb24 + (height - 1) * src_stride_rgb24; in RGB24ToI420()
1182 TestReadSafe(src_rgb24, src_stride_rgb24, width, height, 3, 48)) { in RGB24ToI420()
1209 for (int y = 0; y < height - 1; y += 2) { in RGB24ToI420()
1220 if (height & 1) { in RGB24ToI420()
1233 int width, int height) { in RAWToI420() argument
1238 width <= 0 || height == 0) { in RAWToI420()
1241 // Negative height means invert the image. in RAWToI420()
1242 if (height < 0) { in RAWToI420()
1243 height = -height; in RAWToI420()
1244 src_raw = src_raw + (height - 1) * src_stride_raw; in RAWToI420()
1253 TestReadSafe(src_raw, src_stride_raw, width, height, 3, 48)) { in RAWToI420()
1280 for (int y = 0; y < height - 1; y += 2) { in RAWToI420()
1291 if (height & 1) { in RAWToI420()
1304 int width, int height) { in RGB565ToI420() argument
1309 width <= 0 || height == 0) { in RGB565ToI420()
1312 // Negative height means invert the image. in RGB565ToI420()
1313 if (height < 0) { in RGB565ToI420()
1314 height = -height; in RGB565ToI420()
1315 src_rgb565 = src_rgb565 + (height - 1) * src_stride_rgb565; in RGB565ToI420()
1324 TestReadSafe(src_rgb565, src_stride_rgb565, width, height, 2, 16)) { in RGB565ToI420()
1351 for (int y = 0; y < height - 1; y += 2) { in RGB565ToI420()
1362 if (height & 1) { in RGB565ToI420()
1375 int width, int height) { in ARGB1555ToI420() argument
1380 width <= 0 || height == 0) { in ARGB1555ToI420()
1383 // Negative height means invert the image. in ARGB1555ToI420()
1384 if (height < 0) { in ARGB1555ToI420()
1385 height = -height; in ARGB1555ToI420()
1386 src_argb1555 = src_argb1555 + (height - 1) * src_stride_argb1555; in ARGB1555ToI420()
1395 TestReadSafe(src_argb1555, src_stride_argb1555, width, height, 2, 16)) { in ARGB1555ToI420()
1422 for (int y = 0; y < height - 1; y += 2) { in ARGB1555ToI420()
1434 if (height & 1) { in ARGB1555ToI420()
1447 int width, int height) { in ARGB4444ToI420() argument
1452 width <= 0 || height == 0) { in ARGB4444ToI420()
1455 // Negative height means invert the image. in ARGB4444ToI420()
1456 if (height < 0) { in ARGB4444ToI420()
1457 height = -height; in ARGB4444ToI420()
1458 src_argb4444 = src_argb4444 + (height - 1) * src_stride_argb4444; in ARGB4444ToI420()
1467 TestReadSafe(src_argb4444, src_stride_argb4444, width, height, 2, 16)) { in ARGB4444ToI420()
1494 for (int y = 0; y < height - 1; y += 2) { in ARGB4444ToI420()
1506 if (height & 1) { in ARGB4444ToI420()