Lines Matching +full:- +full:k
9 * http://www.apache.org/licenses/LICENSE-2.0
31 * - ihevc_itrans_recon_32x32()
109 WORD32 j, k; in ihevc_itrans_recon_32x32() local
131 if((zero_rows & 0xFFFFFFF0) == 0xFFFFFFF0) /* First 4 rows of input are non-zero */ in ihevc_itrans_recon_32x32()
134 … /**********************************START - IT_RECON_32x32****************************************/ in ihevc_itrans_recon_32x32()
138 add = 1 << (shift - 1); in ihevc_itrans_recon_32x32()
150 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
152 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_src[src_strd] in ihevc_itrans_recon_32x32()
153 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
156 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
158 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_src[2 * src_strd]; in ihevc_itrans_recon_32x32()
160 // for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
174 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
176 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
177 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
179 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
180 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
182 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
184 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
185 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
187 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
189 pi2_tmp[k] = in ihevc_itrans_recon_32x32()
190 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
191 pi2_tmp[k + 16] = in ihevc_itrans_recon_32x32()
192 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
204 add = 1 << (shift - 1); in ihevc_itrans_recon_32x32()
205 …_rows_2nd_stage & 0xFFFFFFF0) == 0xFFFFFFF0) /* First 4 rows of output of 1st stage are non-zero */ in ihevc_itrans_recon_32x32()
210 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
212 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_tmp[trans_size] in ihevc_itrans_recon_32x32()
213 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
216 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
218 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_tmp[2 * trans_size]; in ihevc_itrans_recon_32x32()
220 // for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
234 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
236 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
237 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
239 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
240 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
242 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
244 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
245 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
247 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
251 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
252 pu1_dst[k] = CLIP_U8((itrans_out + pu1_pred[k])); in ihevc_itrans_recon_32x32()
254 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
255 pu1_dst[k + 16] = CLIP_U8((itrans_out + pu1_pred[k + 16])); in ihevc_itrans_recon_32x32()
262 …_rows_2nd_stage & 0xFFFFFF00) == 0xFFFFFF00) /* First 8 rows of output of 1st stage are non-zero */ in ihevc_itrans_recon_32x32()
267 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
269 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_tmp[trans_size] in ihevc_itrans_recon_32x32()
270 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
272 + g_ai2_ihevc_trans_32[5][k] in ihevc_itrans_recon_32x32()
274 + g_ai2_ihevc_trans_32[7][k] in ihevc_itrans_recon_32x32()
277 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
279 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_tmp[2 * trans_size] in ihevc_itrans_recon_32x32()
280 + g_ai2_ihevc_trans_32[6][k] in ihevc_itrans_recon_32x32()
283 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
285 eeo[k] = g_ai2_ihevc_trans_32[4][k] * pi2_tmp[4 * trans_size]; in ihevc_itrans_recon_32x32()
294 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
296 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
297 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
299 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
300 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
302 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
304 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
305 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
307 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
311 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
312 pu1_dst[k] = CLIP_U8((itrans_out + pu1_pred[k])); in ihevc_itrans_recon_32x32()
314 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
315 pu1_dst[k + 16] = CLIP_U8((itrans_out + pu1_pred[k + 16])); in ihevc_itrans_recon_32x32()
322 else /* All rows of output of 1st stage are non-zero */ in ihevc_itrans_recon_32x32()
327 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
329 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_tmp[trans_size] in ihevc_itrans_recon_32x32()
330 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
332 + g_ai2_ihevc_trans_32[5][k] in ihevc_itrans_recon_32x32()
334 + g_ai2_ihevc_trans_32[7][k] in ihevc_itrans_recon_32x32()
336 + g_ai2_ihevc_trans_32[9][k] in ihevc_itrans_recon_32x32()
338 + g_ai2_ihevc_trans_32[11][k] in ihevc_itrans_recon_32x32()
340 + g_ai2_ihevc_trans_32[13][k] in ihevc_itrans_recon_32x32()
342 + g_ai2_ihevc_trans_32[15][k] in ihevc_itrans_recon_32x32()
344 + g_ai2_ihevc_trans_32[17][k] in ihevc_itrans_recon_32x32()
346 + g_ai2_ihevc_trans_32[19][k] in ihevc_itrans_recon_32x32()
348 + g_ai2_ihevc_trans_32[21][k] in ihevc_itrans_recon_32x32()
350 + g_ai2_ihevc_trans_32[23][k] in ihevc_itrans_recon_32x32()
352 + g_ai2_ihevc_trans_32[25][k] in ihevc_itrans_recon_32x32()
354 + g_ai2_ihevc_trans_32[27][k] in ihevc_itrans_recon_32x32()
356 + g_ai2_ihevc_trans_32[29][k] in ihevc_itrans_recon_32x32()
358 + g_ai2_ihevc_trans_32[31][k] in ihevc_itrans_recon_32x32()
361 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
363 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_tmp[2 * trans_size] in ihevc_itrans_recon_32x32()
364 + g_ai2_ihevc_trans_32[6][k] in ihevc_itrans_recon_32x32()
366 + g_ai2_ihevc_trans_32[10][k] in ihevc_itrans_recon_32x32()
368 + g_ai2_ihevc_trans_32[14][k] in ihevc_itrans_recon_32x32()
370 + g_ai2_ihevc_trans_32[18][k] in ihevc_itrans_recon_32x32()
372 + g_ai2_ihevc_trans_32[22][k] in ihevc_itrans_recon_32x32()
374 + g_ai2_ihevc_trans_32[26][k] in ihevc_itrans_recon_32x32()
376 + g_ai2_ihevc_trans_32[30][k] in ihevc_itrans_recon_32x32()
379 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
381 eeo[k] = g_ai2_ihevc_trans_32[4][k] * pi2_tmp[4 * trans_size] in ihevc_itrans_recon_32x32()
382 + g_ai2_ihevc_trans_32[12][k] in ihevc_itrans_recon_32x32()
384 + g_ai2_ihevc_trans_32[20][k] in ihevc_itrans_recon_32x32()
386 + g_ai2_ihevc_trans_32[28][k] in ihevc_itrans_recon_32x32()
412 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
414 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
415 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
417 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
418 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
420 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
422 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
423 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
425 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
429 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
430 pu1_dst[k] = CLIP_U8((itrans_out + pu1_pred[k])); in ihevc_itrans_recon_32x32()
432 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
433 pu1_dst[k + 16] = CLIP_U8((itrans_out + pu1_pred[k + 16])); in ihevc_itrans_recon_32x32()
441 … /************************************END - IT_RECON_32x32****************************************/ in ihevc_itrans_recon_32x32()
444 else if((zero_rows & 0xFFFFFF00) == 0xFFFFFF00) /* First 8 rows of input are non-zero */ in ihevc_itrans_recon_32x32()
447 … /**********************************START - IT_RECON_32x32****************************************/ in ihevc_itrans_recon_32x32()
451 add = 1 << (shift - 1); in ihevc_itrans_recon_32x32()
463 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
465 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_src[src_strd] in ihevc_itrans_recon_32x32()
466 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
468 + g_ai2_ihevc_trans_32[5][k] in ihevc_itrans_recon_32x32()
470 + g_ai2_ihevc_trans_32[7][k] in ihevc_itrans_recon_32x32()
473 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
475 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_src[2 * src_strd] in ihevc_itrans_recon_32x32()
476 + g_ai2_ihevc_trans_32[6][k] in ihevc_itrans_recon_32x32()
479 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
481 eeo[k] = g_ai2_ihevc_trans_32[4][k] * pi2_src[4 * src_strd]; in ihevc_itrans_recon_32x32()
490 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
492 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
493 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
495 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
496 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
498 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
500 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
501 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
503 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
505 pi2_tmp[k] = in ihevc_itrans_recon_32x32()
506 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
507 pi2_tmp[k + 16] = in ihevc_itrans_recon_32x32()
508 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
520 add = 1 << (shift - 1); in ihevc_itrans_recon_32x32()
521 …_rows_2nd_stage & 0xFFFFFFF0) == 0xFFFFFFF0) /* First 4 rows of output of 1st stage are non-zero */ in ihevc_itrans_recon_32x32()
526 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
528 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_tmp[trans_size] in ihevc_itrans_recon_32x32()
529 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
532 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
534 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_tmp[2 * trans_size]; in ihevc_itrans_recon_32x32()
536 // for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
550 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
552 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
553 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
555 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
556 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
558 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
560 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
561 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
563 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
567 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
568 pu1_dst[k] = CLIP_U8((itrans_out + pu1_pred[k])); in ihevc_itrans_recon_32x32()
570 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
571 pu1_dst[k + 16] = CLIP_U8((itrans_out + pu1_pred[k + 16])); in ihevc_itrans_recon_32x32()
578 …_rows_2nd_stage & 0xFFFFFF00) == 0xFFFFFF00) /* First 8 rows of output of 1st stage are non-zero */ in ihevc_itrans_recon_32x32()
583 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
585 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_tmp[trans_size] in ihevc_itrans_recon_32x32()
586 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
588 + g_ai2_ihevc_trans_32[5][k] in ihevc_itrans_recon_32x32()
590 + g_ai2_ihevc_trans_32[7][k] in ihevc_itrans_recon_32x32()
593 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
595 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_tmp[2 * trans_size] in ihevc_itrans_recon_32x32()
596 + g_ai2_ihevc_trans_32[6][k] in ihevc_itrans_recon_32x32()
599 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
601 eeo[k] = g_ai2_ihevc_trans_32[4][k] * pi2_tmp[4 * trans_size]; in ihevc_itrans_recon_32x32()
610 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
612 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
613 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
615 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
616 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
618 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
620 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
621 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
623 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
627 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
628 pu1_dst[k] = CLIP_U8((itrans_out + pu1_pred[k])); in ihevc_itrans_recon_32x32()
630 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
631 pu1_dst[k + 16] = CLIP_U8((itrans_out + pu1_pred[k + 16])); in ihevc_itrans_recon_32x32()
638 else /* All rows of output of 1st stage are non-zero */ in ihevc_itrans_recon_32x32()
643 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
645 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_tmp[trans_size] in ihevc_itrans_recon_32x32()
646 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
648 + g_ai2_ihevc_trans_32[5][k] in ihevc_itrans_recon_32x32()
650 + g_ai2_ihevc_trans_32[7][k] in ihevc_itrans_recon_32x32()
652 + g_ai2_ihevc_trans_32[9][k] in ihevc_itrans_recon_32x32()
654 + g_ai2_ihevc_trans_32[11][k] in ihevc_itrans_recon_32x32()
656 + g_ai2_ihevc_trans_32[13][k] in ihevc_itrans_recon_32x32()
658 + g_ai2_ihevc_trans_32[15][k] in ihevc_itrans_recon_32x32()
660 + g_ai2_ihevc_trans_32[17][k] in ihevc_itrans_recon_32x32()
662 + g_ai2_ihevc_trans_32[19][k] in ihevc_itrans_recon_32x32()
664 + g_ai2_ihevc_trans_32[21][k] in ihevc_itrans_recon_32x32()
666 + g_ai2_ihevc_trans_32[23][k] in ihevc_itrans_recon_32x32()
668 + g_ai2_ihevc_trans_32[25][k] in ihevc_itrans_recon_32x32()
670 + g_ai2_ihevc_trans_32[27][k] in ihevc_itrans_recon_32x32()
672 + g_ai2_ihevc_trans_32[29][k] in ihevc_itrans_recon_32x32()
674 + g_ai2_ihevc_trans_32[31][k] in ihevc_itrans_recon_32x32()
677 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
679 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_tmp[2 * trans_size] in ihevc_itrans_recon_32x32()
680 + g_ai2_ihevc_trans_32[6][k] in ihevc_itrans_recon_32x32()
682 + g_ai2_ihevc_trans_32[10][k] in ihevc_itrans_recon_32x32()
684 + g_ai2_ihevc_trans_32[14][k] in ihevc_itrans_recon_32x32()
686 + g_ai2_ihevc_trans_32[18][k] in ihevc_itrans_recon_32x32()
688 + g_ai2_ihevc_trans_32[22][k] in ihevc_itrans_recon_32x32()
690 + g_ai2_ihevc_trans_32[26][k] in ihevc_itrans_recon_32x32()
692 + g_ai2_ihevc_trans_32[30][k] in ihevc_itrans_recon_32x32()
695 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
697 eeo[k] = g_ai2_ihevc_trans_32[4][k] * pi2_tmp[4 * trans_size] in ihevc_itrans_recon_32x32()
698 + g_ai2_ihevc_trans_32[12][k] in ihevc_itrans_recon_32x32()
700 + g_ai2_ihevc_trans_32[20][k] in ihevc_itrans_recon_32x32()
702 + g_ai2_ihevc_trans_32[28][k] in ihevc_itrans_recon_32x32()
728 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
730 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
731 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
733 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
734 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
736 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
738 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
739 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
741 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
745 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
746 pu1_dst[k] = CLIP_U8((itrans_out + pu1_pred[k])); in ihevc_itrans_recon_32x32()
748 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
749 pu1_dst[k + 16] = CLIP_U8((itrans_out + pu1_pred[k + 16])); in ihevc_itrans_recon_32x32()
757 … /************************************END - IT_RECON_32x32****************************************/ in ihevc_itrans_recon_32x32()
760 else /* All rows of input are non-zero */ in ihevc_itrans_recon_32x32()
763 … /**********************************START - IT_RECON_32x32****************************************/ in ihevc_itrans_recon_32x32()
767 add = 1 << (shift - 1); in ihevc_itrans_recon_32x32()
779 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
781 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_src[src_strd] in ihevc_itrans_recon_32x32()
782 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
784 + g_ai2_ihevc_trans_32[5][k] in ihevc_itrans_recon_32x32()
786 + g_ai2_ihevc_trans_32[7][k] in ihevc_itrans_recon_32x32()
788 + g_ai2_ihevc_trans_32[9][k] in ihevc_itrans_recon_32x32()
790 + g_ai2_ihevc_trans_32[11][k] in ihevc_itrans_recon_32x32()
792 + g_ai2_ihevc_trans_32[13][k] in ihevc_itrans_recon_32x32()
794 + g_ai2_ihevc_trans_32[15][k] in ihevc_itrans_recon_32x32()
796 + g_ai2_ihevc_trans_32[17][k] in ihevc_itrans_recon_32x32()
798 + g_ai2_ihevc_trans_32[19][k] in ihevc_itrans_recon_32x32()
800 + g_ai2_ihevc_trans_32[21][k] in ihevc_itrans_recon_32x32()
802 + g_ai2_ihevc_trans_32[23][k] in ihevc_itrans_recon_32x32()
804 + g_ai2_ihevc_trans_32[25][k] in ihevc_itrans_recon_32x32()
806 + g_ai2_ihevc_trans_32[27][k] in ihevc_itrans_recon_32x32()
808 + g_ai2_ihevc_trans_32[29][k] in ihevc_itrans_recon_32x32()
810 + g_ai2_ihevc_trans_32[31][k] in ihevc_itrans_recon_32x32()
813 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
815 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_src[2 * src_strd] in ihevc_itrans_recon_32x32()
816 + g_ai2_ihevc_trans_32[6][k] in ihevc_itrans_recon_32x32()
818 + g_ai2_ihevc_trans_32[10][k] in ihevc_itrans_recon_32x32()
820 + g_ai2_ihevc_trans_32[14][k] in ihevc_itrans_recon_32x32()
822 + g_ai2_ihevc_trans_32[18][k] in ihevc_itrans_recon_32x32()
824 + g_ai2_ihevc_trans_32[22][k] in ihevc_itrans_recon_32x32()
826 + g_ai2_ihevc_trans_32[26][k] in ihevc_itrans_recon_32x32()
828 + g_ai2_ihevc_trans_32[30][k] in ihevc_itrans_recon_32x32()
831 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
833 eeo[k] = g_ai2_ihevc_trans_32[4][k] * pi2_src[4 * src_strd] in ihevc_itrans_recon_32x32()
834 + g_ai2_ihevc_trans_32[12][k] in ihevc_itrans_recon_32x32()
836 + g_ai2_ihevc_trans_32[20][k] in ihevc_itrans_recon_32x32()
838 + g_ai2_ihevc_trans_32[28][k] in ihevc_itrans_recon_32x32()
856 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
858 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
859 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
861 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
862 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
864 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
866 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
867 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
869 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
871 pi2_tmp[k] = in ihevc_itrans_recon_32x32()
872 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
873 pi2_tmp[k + 16] = in ihevc_itrans_recon_32x32()
874 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
886 add = 1 << (shift - 1); in ihevc_itrans_recon_32x32()
887 …_rows_2nd_stage & 0xFFFFFFF0) == 0xFFFFFFF0) /* First 4 rows of output of 1st stage are non-zero */ in ihevc_itrans_recon_32x32()
892 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
894 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_tmp[trans_size] in ihevc_itrans_recon_32x32()
895 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
898 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
900 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_tmp[2 * trans_size]; in ihevc_itrans_recon_32x32()
902 // for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
916 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
918 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
919 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
921 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
922 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
924 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
926 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
927 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
929 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
933 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
934 pu1_dst[k] = CLIP_U8((itrans_out + pu1_pred[k])); in ihevc_itrans_recon_32x32()
936 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
937 pu1_dst[k + 16] = CLIP_U8((itrans_out + pu1_pred[k + 16])); in ihevc_itrans_recon_32x32()
944 …_rows_2nd_stage & 0xFFFFFF00) == 0xFFFFFF00) /* First 8 rows of output of 1st stage are non-zero */ in ihevc_itrans_recon_32x32()
949 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
951 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_tmp[trans_size] in ihevc_itrans_recon_32x32()
952 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
954 + g_ai2_ihevc_trans_32[5][k] in ihevc_itrans_recon_32x32()
956 + g_ai2_ihevc_trans_32[7][k] in ihevc_itrans_recon_32x32()
959 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
961 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_tmp[2 * trans_size] in ihevc_itrans_recon_32x32()
962 + g_ai2_ihevc_trans_32[6][k] in ihevc_itrans_recon_32x32()
965 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
967 eeo[k] = g_ai2_ihevc_trans_32[4][k] * pi2_tmp[4 * trans_size]; in ihevc_itrans_recon_32x32()
976 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
978 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
979 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
981 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
982 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
984 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
986 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
987 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
989 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
993 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
994 pu1_dst[k] = CLIP_U8((itrans_out + pu1_pred[k])); in ihevc_itrans_recon_32x32()
996 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
997 pu1_dst[k + 16] = CLIP_U8((itrans_out + pu1_pred[k + 16])); in ihevc_itrans_recon_32x32()
1004 else /* All rows of output of 1st stage are non-zero */ in ihevc_itrans_recon_32x32()
1009 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
1011 o[k] = g_ai2_ihevc_trans_32[1][k] * pi2_tmp[trans_size] in ihevc_itrans_recon_32x32()
1012 + g_ai2_ihevc_trans_32[3][k] in ihevc_itrans_recon_32x32()
1014 + g_ai2_ihevc_trans_32[5][k] in ihevc_itrans_recon_32x32()
1016 + g_ai2_ihevc_trans_32[7][k] in ihevc_itrans_recon_32x32()
1018 + g_ai2_ihevc_trans_32[9][k] in ihevc_itrans_recon_32x32()
1020 + g_ai2_ihevc_trans_32[11][k] in ihevc_itrans_recon_32x32()
1022 + g_ai2_ihevc_trans_32[13][k] in ihevc_itrans_recon_32x32()
1024 + g_ai2_ihevc_trans_32[15][k] in ihevc_itrans_recon_32x32()
1026 + g_ai2_ihevc_trans_32[17][k] in ihevc_itrans_recon_32x32()
1028 + g_ai2_ihevc_trans_32[19][k] in ihevc_itrans_recon_32x32()
1030 + g_ai2_ihevc_trans_32[21][k] in ihevc_itrans_recon_32x32()
1032 + g_ai2_ihevc_trans_32[23][k] in ihevc_itrans_recon_32x32()
1034 + g_ai2_ihevc_trans_32[25][k] in ihevc_itrans_recon_32x32()
1036 + g_ai2_ihevc_trans_32[27][k] in ihevc_itrans_recon_32x32()
1038 + g_ai2_ihevc_trans_32[29][k] in ihevc_itrans_recon_32x32()
1040 + g_ai2_ihevc_trans_32[31][k] in ihevc_itrans_recon_32x32()
1043 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
1045 eo[k] = g_ai2_ihevc_trans_32[2][k] * pi2_tmp[2 * trans_size] in ihevc_itrans_recon_32x32()
1046 + g_ai2_ihevc_trans_32[6][k] in ihevc_itrans_recon_32x32()
1048 + g_ai2_ihevc_trans_32[10][k] in ihevc_itrans_recon_32x32()
1050 + g_ai2_ihevc_trans_32[14][k] in ihevc_itrans_recon_32x32()
1052 + g_ai2_ihevc_trans_32[18][k] in ihevc_itrans_recon_32x32()
1054 + g_ai2_ihevc_trans_32[22][k] in ihevc_itrans_recon_32x32()
1056 + g_ai2_ihevc_trans_32[26][k] in ihevc_itrans_recon_32x32()
1058 + g_ai2_ihevc_trans_32[30][k] in ihevc_itrans_recon_32x32()
1061 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
1063 eeo[k] = g_ai2_ihevc_trans_32[4][k] * pi2_tmp[4 * trans_size] in ihevc_itrans_recon_32x32()
1064 + g_ai2_ihevc_trans_32[12][k] in ihevc_itrans_recon_32x32()
1066 + g_ai2_ihevc_trans_32[20][k] in ihevc_itrans_recon_32x32()
1068 + g_ai2_ihevc_trans_32[28][k] in ihevc_itrans_recon_32x32()
1094 eee[3] = eeee[0] - eeeo[0]; in ihevc_itrans_recon_32x32()
1096 eee[2] = eeee[1] - eeeo[1]; in ihevc_itrans_recon_32x32()
1097 for(k = 0; k < 4; k++) in ihevc_itrans_recon_32x32()
1099 ee[k] = eee[k] + eeo[k]; in ihevc_itrans_recon_32x32()
1100 ee[k + 4] = eee[3 - k] - eeo[3 - k]; in ihevc_itrans_recon_32x32()
1102 for(k = 0; k < 8; k++) in ihevc_itrans_recon_32x32()
1104 e[k] = ee[k] + eo[k]; in ihevc_itrans_recon_32x32()
1105 e[k + 8] = ee[7 - k] - eo[7 - k]; in ihevc_itrans_recon_32x32()
1107 for(k = 0; k < 16; k++) in ihevc_itrans_recon_32x32()
1111 CLIP_S16(((e[k] + o[k] + add) >> shift)); in ihevc_itrans_recon_32x32()
1112 pu1_dst[k] = CLIP_U8((itrans_out + pu1_pred[k])); in ihevc_itrans_recon_32x32()
1114 CLIP_S16(((e[15 - k] - o[15 - k] + add) >> shift)); in ihevc_itrans_recon_32x32()
1115 pu1_dst[k + 16] = CLIP_U8((itrans_out + pu1_pred[k + 16])); in ihevc_itrans_recon_32x32()
1123 … /************************************END - IT_RECON_32x32****************************************/ in ihevc_itrans_recon_32x32()