Home | History | Annotate | Download | only in unit_test

Lines Matching refs:ow

31   int iw, ih, ow, oh;
41 ow = ih;
45 output_1 = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
51 TransposePlane(input, iw, output_1, ow, iw, ih);
52 TransposePlane(output_1, ow, output_2, oh, ow, oh);
64 print_array(output_1, ow, oh);
79 int iw, ih, ow, oh;
89 ow = ih;
93 output_a1 = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
94 output_b1 = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
103 TransposeUV(input, iw, output_a1, ow, output_b1, ow, iw >> 1, ih);
105 TransposePlane(output_a1, ow, output_a2, oh, ow, oh);
106 TransposePlane(output_b1, ow, output_b2, oh, ow, oh);
120 print_array(output_a1, ow, oh);
121 print_array(output_b1, ow, oh);
124 print_array(output_a2, oh, ow);
125 print_array(output_b2, oh, ow);
139 int iw, ih, ow, oh;
151 ow = ih;
156 output_90 = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
158 output_270 = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
163 RotatePlane90(input, iw, output_90, ow, iw, ih);
164 RotatePlane90(output_90, ow, output_180, oh, ow, oh);
165 RotatePlane90(output_180, oh, output_270, ow, oh, ow);
166 RotatePlane90(output_270, ow, output_0, iw, ow, oh);
178 print_array(output_90, ow, oh);
184 print_array(output_270, ow, oh);
201 int iw, ih, ow, oh;
215 ow = ih;
219 output_0_u = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
220 output_0_v = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
221 output_90_u = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
222 output_90_v = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
223 output_180_u = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
224 output_180_v = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
231 RotateUV90(input, iw, output_90_u, ow, output_90_v, ow, iw >> 1, ih);
233 RotatePlane90(output_90_u, ow, output_180_u, oh, ow, oh);
234 RotatePlane90(output_90_v, ow, output_180_v, oh, ow, oh);
236 RotatePlane180(output_180_u, ow, output_0_u, ow, ow, oh);
237 RotatePlane180(output_180_v, ow, output_0_v, ow, ow, oh);
239 for (i = 0; i < (ow * oh); ++i) {
251 print_array(output_90_u, ow, oh);
254 print_array(output_90_v, ow, oh);
257 print_array(output_180_u, oh, ow);
260 print_array(output_180_v, oh, ow);
263 print_array(output_0_u, oh, ow);
266 print_array(output_0_v, oh, ow);
282 int iw, ih, ow, oh;
296 ow = iw >> 1;
300 output_0_u = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
301 output_0_v = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
302 output_90_u = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
303 output_90_v = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
304 output_180_u = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
305 output_180_v = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
312 RotateUV180(input, iw, output_180_u, ow, output_180_v, ow, iw >> 1, ih);
314 RotatePlane90(output_180_u, ow, output_90_u, oh, ow, oh);
315 RotatePlane90(output_180_v, ow, output_90_v, oh, ow, oh);
317 RotatePlane90(output_90_u, oh, output_0_u, ow, oh, ow);
318 RotatePlane90(output_90_v, oh, output_0_v, ow, oh, ow);
320 for (i = 0; i < (ow * oh); ++i) {
332 print_array(output_180_u, oh, ow);
335 print_array(output_180_v, oh, ow);
338 print_array(output_90_u, oh, ow);
341 print_array(output_90_v, oh, ow);
344 print_array(output_0_u, ow, oh);
347 print_array(output_0_v, ow, oh);
363 int iw, ih, ow, oh;
377 ow = ih;
381 output_0_u = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
382 output_0_v = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
383 output_270_u = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
384 output_270_v = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
385 output_180_u = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
386 output_180_v = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
393 RotateUV270(input, iw, output_270_u, ow, output_270_v, ow,
396 RotatePlane270(output_270_u, ow, output_180_u, oh, ow, oh);
397 RotatePlane270(output_270_v, ow, output_180_v, oh, ow, oh);
399 RotatePlane180(output_180_u, ow, output_0_u, ow, ow, oh);
400 RotatePlane180(output_180_v, ow, output_0_v, ow, ow, oh);
402 for (i = 0; i < (ow * oh); ++i) {
414 print_array(output_270_u, ow, oh);
417 print_array(output_270_v, ow, oh);
420 print_array(output_180_u, oh, ow);
423 print_array(output_180_v, oh, ow);
426 print_array(output_0_u, oh, ow);
429 print_array(output_0_v, oh, ow);
445 int iw, ih, ow, oh;
455 ow = iw;
465 RotatePlane180(input, iw, output_180, ow, iw, ih);
466 RotatePlane180(output_180, ow, output_0, iw, ow, oh);
493 int iw, ih, ow, oh;
505 ow = ih;
510 output_90 = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
512 output_270 = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
517 RotatePlane270(input, iw, output_270, ow, iw, ih);
518 RotatePlane270(output_270, ow, output_180, oh, ow, oh);
519 RotatePlane270(output_180, oh, output_90, ow, oh, ow);
520 RotatePlane270(output_90, ow, output_0, iw, ow, oh);
532 print_array(output_270, ow, oh);
538 print_array(output_90, ow, oh);
555 int iw, ih, ow, oh;
564 ow = ih;
569 output_90 = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
574 RotatePlane90(input, iw, output_90, ow, iw, ih);
575 RotatePlane270(output_90, ow, output_0, iw, ow, oh);
587 print_array(output_90, ow, oh);
611 int ow = ih;
616 ow * oh, sizeof(uint8)));
622 output_90 + (ow >> 1), ow,
625 output_90 + (ow >> 1) + ow * (oh >> 1), ow,
628 output_90, ow,
631 output_90 + ow * (oh >> 1), ow,
634 RotatePlane270(output_90, ih, output_0, iw, ow, oh);
646 print_array(output_90, ow, oh);
661 int iw, ih, ow, oh;
671 ow = ih;
676 output_270 = static_cast<uint8*>(calloc(ow * oh, sizeof(uint8)));
682 output_270 + ow * (oh >> 1), ow,
685 output_270, ow,
688 output_270 + (ow >> 1) + ow * (oh >> 1), ow,
691 output_270 + (ow >> 1), ow,
694 RotatePlane90(output_270, ih, output_0, iw, ow, oh);
706 print_array(output_270, ow, oh);