Home | History | Annotate | Download | only in unit_test

Lines Matching refs:ih

31   int iw, ih, ow, oh;
35 for (ih = 8; ih < _rotate_max_h && !err; ++ih) {
41 ow = ih;
44 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
46 output_2 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
48 for (i = 0; i < (iw * ih); ++i)
51 TransposePlane(input, iw, output_1, ow, iw, ih);
54 for (i = 0; i < (iw * ih); ++i) {
60 printf("input %dx%d \n", iw, ih);
61 print_array(input, iw, ih);
67 print_array(output_2, iw, ih);
79 int iw, ih, ow, oh;
83 for (ih = 8; ih < _rotate_max_h && !err; ++ih) {
89 ow = ih;
92 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
95 output_a2 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
96 output_b2 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
98 for (i = 0; i < (iw * ih); i += 2) {
103 TransposeUV(input, iw, output_a1, ow, output_b1, ow, iw >> 1, ih);
108 for (i = 0; i < (iw * ih); i += 2) {
116 printf("input %dx%d \n", iw, ih);
117 print_array(input, iw, ih);
139 int iw, ih, ow, oh;
143 for (ih = 8; ih < _rotate_max_h && !err; ++ih) {
151 ow = ih;
154 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
155 output_0 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
157 output_180 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
160 for (i = 0; i < (iw * ih); ++i)
163 RotatePlane90(input, iw, output_90, ow, iw, ih);
168 for (i = 0; i < (iw * ih); ++i) {
174 printf("input %dx%d \n", iw, ih);
175 print_array(input, iw, ih);
181 print_array(output_180, iw, ih);
187 print_array(output_0, iw, ih);
201 int iw, ih, ow, oh;
205 for (ih = 8; ih < _rotate_max_h && !err; ++ih) {
215 ow = ih;
218 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
226 for (i = 0; i < (iw * ih); i += 2) {
231 RotateUV90(input, iw, output_90_u, ow, output_90_v, ow, iw >> 1, ih);
247 printf("input %dx%d \n", iw, ih);
248 print_array(input, iw, ih);
282 int iw, ih, ow, oh;
286 for (ih = 8; ih < _rotate_max_h && !err; ++ih) {
297 oh = ih;
299 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
307 for (i = 0; i < (iw * ih); i += 2) {
312 RotateUV180(input, iw, output_180_u, ow, output_180_v, ow, iw >> 1, ih);
328 printf("input %dx%d \n", iw, ih);
329 print_array(input, iw, ih);
363 int iw, ih, ow, oh;
367 for (ih = 8; ih < _rotate_max_h && !err; ++ih) {
377 ow = ih;
380 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
388 for (i = 0; i < (iw * ih); i += 2) {
394 iw >> 1, ih);
410 printf("input %dx%d \n", iw, ih);
411 print_array(input, iw, ih);
445 int iw, ih, ow, oh;
449 for (ih = 8; ih < _rotate_max_h && !err; ++ih) {
456 oh = ih;
458 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
459 output_0 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
460 output_180 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
462 for (i = 0; i < (iw * ih); ++i)
465 RotatePlane180(input, iw, output_180, ow, iw, ih);
468 for (i = 0; i < (iw * ih); ++i) {
474 printf("input %dx%d \n", iw, ih);
475 print_array(input, iw, ih);
478 print_array(output_180, iw, ih);
481 print_array(output_0, iw, ih);
493 int iw, ih, ow, oh;
497 for (ih = 8; ih < _rotate_max_h && !err; ++ih) {
505 ow = ih;
508 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
509 output_0 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
511 output_180 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
514 for (i = 0; i < (iw * ih); ++i)
517 RotatePlane270(input, iw, output_270, ow, iw, ih);
522 for (i = 0; i < (iw * ih); ++i) {
528 printf("input %dx%d \n", iw, ih);
529 print_array(input, iw, ih);
535 print_array(output_180, iw, ih);
541 print_array(output_0, iw, ih);
555 int iw, ih, ow, oh;
559 for (ih = 16; ih < _rotate_max_h && !err; ih += 4) {
564 ow = ih;
567 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
568 output_0 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
571 for (i = 0; i < (iw * ih); ++i)
574 RotatePlane90(input, iw, output_90, ow, iw, ih);
577 for (i = 0; i < (iw * ih); ++i) {
583 printf("intput %dx%d\n", iw, ih);
584 print_array(input, iw, ih);
590 print_array(output_0, iw, ih);
602 int iw, ih;
606 for (ih = 16; ih < _rotate_max_h && !err; ih += 4) {
611 int ow = ih;
614 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
615 output_0 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
618 for (i = 0; i < (iw * ih); ++i)
623 iw >> 1, ih >> 1);
626 iw >> 1, ih >> 1);
627 RotatePlane90(input + iw * (ih >> 1), iw,
629 iw >> 1, ih >> 1);
630 RotatePlane90(input + (iw >> 1) + iw * (ih >> 1), iw,
632 iw >> 1, ih >> 1);
634 RotatePlane270(output_90, ih, output_0, iw, ow, oh);
636 for (i = 0; i < (iw * ih); ++i) {
642 printf("intput %dx%d\n", iw, ih);
643 print_array(input, iw, ih);
649 print_array(output_0, iw, ih);
661 int iw, ih, ow, oh;
665 for (ih = 16; ih < _rotate_max_h && !err; ih += 4) {
671 ow = ih;
674 input = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
675 output_0 = static_cast<uint8*>(calloc(iw * ih, sizeof(uint8)));
678 for (i = 0; i < (iw * ih); ++i)
683 iw >> 1, ih >> 1);
686 iw >> 1, ih >> 1);
687 RotatePlane270(input + iw * (ih >> 1), iw,
689 iw >> 1, ih >> 1);
690 RotatePlane270(input + (iw >> 1) + iw * (ih >> 1), iw,
692 iw >> 1, ih >> 1);
694 RotatePlane90(output_270, ih, output_0, iw, ow, oh);
696 for (i = 0; i < (iw * ih); ++i) {
702 printf("intput %dx%d\n", iw, ih);
703 print_array(input, iw, ih);
709 print_array(output_0, iw, ih);