Home | History | Annotate | Download | only in common

Lines Matching refs:pu1_src

72 void ihevc_sao_band_offset_luma(UWORD8 *pu1_src,
90 pu1_src_left[row] = pu1_src[row * src_strd + (wd - 1)];
95 pu1_src_top[col] = pu1_src[(ht - 1) * src_strd + col];
114 band_idx = band_table[pu1_src[col] >> band_shift];
115 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[band_idx], 0, (1 << (band_shift + 5)) - 1);
117 pu1_src += src_strd;
124 void ihevc_sao_band_offset_chroma(UWORD8 *pu1_src,
145 pu1_src_left[2 * row] = pu1_src[row * src_strd + (wd - 2)];
146 pu1_src_left[2 * row + 1] = pu1_src[row * src_strd + (wd - 1)];
152 pu1_src_top[col] = pu1_src[(ht - 1) * src_strd + col];
176 band_idx = (0 == col % 2) ? band_table_u[pu1_src[col] >> band_shift] : band_table_v[pu1_src[col] >> band_shift];
177 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[band_idx], 0, (1 << (band_shift + 5)) - 1);
179 pu1_src += src_strd;
186 void ihevc_sao_edge_offset_class0(UWORD8 *pu1_src,
214 au1_src_left_tmp[row] = pu1_src[row * src_strd + wd - 1];
218 pu1_src_top[col] = pu1_src[(ht - 1) * src_strd + col];
235 u1_sign_left = SIGN(pu1_src[0] - pu1_src_left[row]);
240 u1_sign_right = SIGN(pu1_src[col] - pu1_src[col + 1]);
248 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
252 pu1_src += src_strd;
268 void ihevc_sao_edge_offset_class0_chroma(UWORD8 *pu1_src,
299 au1_src_left_tmp[2 * row] = pu1_src[row * src_strd + wd - 2];
300 au1_src_left_tmp[2 * row + 1] = pu1_src[row * src_strd + wd - 1];
304 pu1_src_top[col] = pu1_src[(ht - 1) * src_strd + col];
321 u1_sign_left_u = SIGN(pu1_src[0] - pu1_src_left[2 * row]);
322 u1_sign_left_v = SIGN(pu1_src[1] - pu1_src_left[2 * row + 1]);
331 u1_sign_right_u = SIGN(pu1_src[col] - pu1_src[col + 2]);
338 u1_sign_right_v = SIGN(pu1_src[col] - pu1_src[col + 2]);
347 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
351 pu1_src += src_strd;
365 void ihevc_sao_edge_offset_class1(UWORD8 *pu1_src,
395 pu1_src_left[row] = pu1_src[row * src_strd + wd - 1];
399 au1_src_top_tmp[col] = pu1_src[(ht - 1) * src_strd + col];
405 pu1_src += src_strd;
409 au1_sign_up[col] = SIGN(pu1_src[col] - pu1_src[col - src_strd]);
416 au1_sign_up[col] = SIGN(pu1_src[col] - pu1_src_top[col]);
432 u1_sign_down = SIGN(pu1_src[col] - pu1_src[col + src_strd]);
440 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
444 pu1_src += src_strd;
458 void ihevc_sao_edge_offset_class1_chroma(UWORD8 *pu1_src,
490 pu1_src_left[2 * row] = pu1_src[row * src_strd + wd - 2];
491 pu1_src_left[2 * row + 1] = pu1_src[row * src_strd + wd - 1];
495 au1_src_top_tmp[col] = pu1_src[(ht - 1) * src_strd + col];
501 pu1_src += src_strd;
505 au1_sign_up[col] = SIGN(pu1_src[col] - pu1_src[col - src_strd]);
512 au1_sign_up[col] = SIGN(pu1_src[col] - pu1_src_top[col]);
531 u1_sign_down = SIGN(pu1_src[col] - pu1_src[col + src_strd]);
539 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
543 pu1_src += src_strd;
557 void ihevc_sao_edge_offset_class2(UWORD8 *pu1_src,
597 au1_src_left_tmp[row] = pu1_src[row * src_strd + wd - 1];
601 au1_src_top_tmp[col] = pu1_src[(ht - 1) * src_strd + col];
610 edge_idx = 2 + SIGN(pu1_src[0] - pu1_src_top_left[0]) +
611 SIGN(pu1_src[0] - pu1_src[1 + src_strd]);
617 u1_pos_0_0_tmp = CLIP3(pu1_src[0] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
621 u1_pos_0_0_tmp = pu1_src[0];
626 u1_pos_0_0_tmp = pu1_src[0];
634 edge_idx = 2 + SIGN(pu1_src[wd - 1 + (ht - 1) * src_strd] - pu1_src[wd - 1 + (ht - 1) * src_strd - 1 - src_strd]) +
635 SIGN(pu1_src[wd - 1 + (ht - 1) * src_strd] - pu1_src[wd - 1 + (ht - 1) * src_strd + 1 + src_strd]);
641 u1_pos_wd_ht_tmp = CLIP3(pu1_src[wd - 1 + (ht - 1) * src_strd] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
645 u1_pos_wd_ht_tmp = pu1_src[wd - 1 + (ht - 1) * src_strd];
650 u1_pos_wd_ht_tmp = pu1_src[wd - 1 + (ht - 1) * src_strd];
662 pu1_src += src_strd;
667 pu1_sign_up[col] = SIGN(pu1_src[col] - pu1_src[col - 1 - src_strd]);
674 pu1_sign_up[col] = SIGN(pu1_src[col] - pu1_src_top[col - 1]);
694 pu1_sign_up[0] = SIGN(pu1_src[0] - pu1_src_left_cpy[row - 1]);
699 u1_sign_down = SIGN(pu1_src[col] - pu1_src[col + 1 + src_strd]);
707 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
718 pu1_src += src_strd;
721 pu1_src[-(pu1_avail[2] ? ht : ht + 1) * src_strd] = u1_pos_0_0_tmp;
722 pu1_src[(pu1_avail[3] ? wd - 1 - src_strd : wd - 1)] = u1_pos_wd_ht_tmp;
745 void ihevc_sao_edge_offset_class2_chroma(UWORD8 *pu1_src,
791 au1_src_left_tmp[2 * row] = pu1_src[row * src_strd + wd - 2];
792 au1_src_left_tmp[2 * row + 1] = pu1_src[row * src_strd + wd - 1];
796 au1_src_top_tmp[col] = pu1_src[(ht - 1) * src_strd + col];
806 edge_idx = 2 + SIGN(pu1_src[0] - pu1_src_top_left[0]) +
807 SIGN(pu1_src[0] - pu1_src[2 + src_strd]);
813 u1_pos_0_0_tmp_u = CLIP3(pu1_src[0] + pi1_sao_offset_u[edge_idx], 0, (1 << bit_depth) - 1);
817 u1_pos_0_0_tmp_u = pu1_src[0];
821 edge_idx = 2 + SIGN(pu1_src[1] - pu1_src_top_left[1]) +
822 SIGN(pu1_src[1] - pu1_src[1 + 2 + src_strd]);
828 u1_pos_0_0_tmp_v = CLIP3(pu1_src[1] + pi1_sao_offset_v[edge_idx], 0, (1 << bit_depth) - 1);
832 u1_pos_0_0_tmp_v = pu1_src[1];
837 u1_pos_0_0_tmp_u = pu1_src[0];
838 u1_pos_0_0_tmp_v = pu1_src[1];
847 edge_idx = 2 + SIGN(pu1_src[wd - 2 + (ht - 1) * src_strd] - pu1_src[wd - 2 + (ht - 1) * src_strd - 2 - src_strd]) +
848 SIGN(pu1_src[wd - 2 + (ht - 1) * src_strd] - pu1_src[wd - 2 + (ht - 1) * src_strd + 2 + src_strd]);
854 u1_pos_wd_ht_tmp_u = CLIP3(pu1_src[wd - 2 + (ht - 1) * src_strd] + pi1_sao_offset_u[edge_idx], 0, (1 << bit_depth) - 1);
858 u1_pos_wd_ht_tmp_u = pu1_src[wd - 2 + (ht - 1) * src_strd];
862 edge_idx = 2 + SIGN(pu1_src[wd - 1 + (ht - 1) * src_strd] - pu1_src[wd - 1 + (ht - 1) * src_strd - 2 - src_strd]) +
863 SIGN(pu1_src[wd - 1 + (ht - 1) * src_strd] - pu1_src[wd - 1 + (ht - 1) * src_strd + 2 + src_strd]);
869 u1_pos_wd_ht_tmp_v = CLIP3(pu1_src[wd - 1 + (ht - 1) * src_strd] + pi1_sao_offset_v[edge_idx], 0, (1 << bit_depth) - 1);
873 u1_pos_wd_ht_tmp_v = pu1_src[wd - 1 + (ht - 1) * src_strd];
878 u1_pos_wd_ht_tmp_u = pu1_src[wd - 2 + (ht - 1) * src_strd];
879 u1_pos_wd_ht_tmp_v = pu1_src[wd - 1 + (ht - 1) * src_strd];
891 pu1_src += src_strd;
896 pu1_sign_up[col] = SIGN(pu1_src[col] - pu1_src[col - 2 - src_strd]);
903 pu1_sign_up[col] = SIGN(pu1_src[col] - pu1_src_top[col - 2]);
923 pu1_sign_up[0] = SIGN(pu1_src[0] - pu1_src_left_cpy[2 * (row - 1)]);
924 pu1_sign_up[1] = SIGN(pu1_src[1] - pu1_src_left_cpy[2 * (row - 1) + 1]);
932 u1_sign_down = SIGN(pu1_src[col] - pu1_src[col + 2 + src_strd]);
940 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
951 pu1_src += src_strd;
954 pu1_src[-(pu1_avail[2] ? ht : ht + 1) * src_strd] = u1_pos_0_0_tmp_u;
955 pu1_src[-(pu1_avail[2] ? ht : ht + 1) * src_strd + 1] = u1_pos_0_0_tmp_v;
956 pu1_src[(pu1_avail[3] ? wd - 2 - src_strd : wd - 2)] = u1_pos_wd_ht_tmp_u;
957 pu1_src[(pu1_avail[3] ? wd - 1 - src_strd : wd - 1)] = u1_pos_wd_ht_tmp_v;
981 void ihevc_sao_edge_offset_class3(UWORD8 *pu1_src,
1016 au1_src_left_tmp[row] = pu1_src[row * src_strd + wd - 1];
1020 au1_src_top_tmp[col] = pu1_src[(ht - 1) * src_strd + col];
1028 edge_idx = 2 + SIGN(pu1_src[wd - 1] - pu1_src_top_right[0]) +
1029 SIGN(pu1_src[wd - 1] - pu1_src[wd - 1 - 1 + src_strd]);
1035 u1_pos_wd_0_tmp = CLIP3(pu1_src[wd - 1] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
1039 u1_pos_wd_0_tmp = pu1_src[wd - 1];
1044 u1_pos_wd_0_tmp = pu1_src[wd - 1];
1052 edge_idx = 2 + SIGN(pu1_src[(ht - 1) * src_strd] - pu1_src[(ht - 1) * src_strd + 1 - src_strd]) +
1053 SIGN(pu1_src[(ht - 1) * src_strd] - pu1_src_bot_left[0]);
1059 u1_pos_0_ht_tmp = CLIP3(pu1_src[(ht - 1) * src_strd] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
1063 u1_pos_0_ht_tmp = pu1_src[(ht - 1) * src_strd];
1068 u1_pos_0_ht_tmp = pu1_src[(ht - 1) * src_strd];
1080 pu1_src += src_strd;
1085 au1_sign_up[col] = SIGN(pu1_src[col] - pu1_src[col + 1 - src_strd]);
1092 au1_sign_up[col] = SIGN(pu1_src[col] - pu1_src_top[col + 1]);
1112 au1_sign_up[wd - 1] = SIGN(pu1_src[wd - 1] - pu1_src[wd - 1 + 1 - src_strd]);
1117 u1_sign_down = SIGN(pu1_src[col] - ((col == 0) ? pu1_src_left_cpy[row + 1] :
1118 pu1_src[col - 1 + src_strd]));
1127 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
1131 pu1_src += src_strd;
1134 pu1_src[-(pu1_avail[2] ? ht : ht + 1) * src_strd + wd - 1] = u1_pos_wd_0_tmp;
1135 pu1_src[(pu1_avail[3] ? (-src_strd) : 0)] = u1_pos_0_ht_tmp;
1157 void ihevc_sao_edge_offset_class3_chroma(UWORD8 *pu1_src,
1195 au1_src_left_tmp[2 * row] = pu1_src[row * src_strd + wd - 2];
1196 au1_src_left_tmp[2 * row + 1] = pu1_src[row * src_strd + wd - 1];
1200 au1_src_top_tmp[col] = pu1_src[(ht - 1) * src_strd + col];
1210 edge_idx = 2 + SIGN(pu1_src[wd - 2] - pu1_src_top_right[0]) +
1211 SIGN(pu1_src[wd - 2] - pu1_src[wd - 2 - 2 + src_strd]);
1217 u1_pos_wd_0_tmp_u = CLIP3(pu1_src[wd - 2] + pi1_sao_offset_u[edge_idx], 0, (1 << bit_depth) - 1);
1221 u1_pos_wd_0_tmp_u = pu1_src[wd - 2];
1225 edge_idx = 2 + SIGN(pu1_src[wd - 1] - pu1_src_top_right[1]) +
1226 SIGN(pu1_src[wd - 1] - pu1_src[wd - 1 - 2 + src_strd]);
1232 u1_pos_wd_0_tmp_v = CLIP3(pu1_src[wd - 1] + pi1_sao_offset_v[edge_idx], 0, (1 << bit_depth) - 1);
1236 u1_pos_wd_0_tmp_v = pu1_src[wd - 1];
1241 u1_pos_wd_0_tmp_u = pu1_src[wd - 2];
1242 u1_pos_wd_0_tmp_v = pu1_src[wd - 1];
1251 edge_idx = 2 + SIGN(pu1_src[(ht - 1) * src_strd] - pu1_src[(ht - 1) * src_strd + 2 - src_strd]) +
1252 SIGN(pu1_src[(ht - 1) * src_strd] - pu1_src_bot_left[0]);
1258 u1_pos_0_ht_tmp_u = CLIP3(pu1_src[(ht - 1) * src_strd] + pi1_sao_offset_u[edge_idx], 0, (1 << bit_depth) - 1);
1262 u1_pos_0_ht_tmp_u = pu1_src[(ht - 1) * src_strd];
1266 edge_idx = 2 + SIGN(pu1_src[(ht - 1) * src_strd + 1] - pu1_src[(ht - 1) * src_strd + 1 + 2 - src_strd]) +
1267 SIGN(pu1_src[(ht - 1) * src_strd + 1] - pu1_src_bot_left[1]);
1273 u1_pos_0_ht_tmp_v = CLIP3(pu1_src[(ht - 1) * src_strd + 1] + pi1_sao_offset_v[edge_idx], 0, (1 << bit_depth) - 1);
1277 u1_pos_0_ht_tmp_v = pu1_src[(ht - 1) * src_strd + 1];
1282 u1_pos_0_ht_tmp_u = pu1_src[(ht - 1) * src_strd];
1283 u1_pos_0_ht_tmp_v = pu1_src[(ht - 1) * src_strd + 1];
1295 pu1_src += src_strd;
1300 au1_sign_up[col] = SIGN(pu1_src[col] - pu1_src[col + 2 - src_strd]);
1307 au1_sign_up[col] = SIGN(pu1_src[col] - pu1_src_top[col + 2]);
1327 au1_sign_up[wd - 2] = SIGN(pu1_src[wd - 2] - pu1_src[wd - 2 + 2 - src_strd]);
1328 au1_sign_up[wd - 1] = SIGN(pu1_src[wd - 1] - pu1_src[wd - 1 + 2 - src_strd]);
1336 u1_sign_down = SIGN(pu1_src[col] - ((col < 2) ? pu1_src_left_cpy[2 * (row + 1) + col] :
1337 pu1_src[col - 2 + src_strd]));
1346 pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1);
1350 pu1_src += src_strd;
1353 pu1_src[-(pu1_avail[2] ? ht : ht + 1) * src_strd + wd - 2] = u1_pos_wd_0_tmp_u;
1354 pu1_src[-(pu1_avail[2] ? ht : ht + 1) * src_strd + wd - 1] = u1_pos_wd_0_tmp_v;
1355 pu1_src[(pu1_avail[3] ? (-src_strd) : 0)] = u1_pos_0_ht_tmp_u;
1356 pu1_src[(pu1_avail[3] ? (-src_strd) : 0) + 1] = u1_pos_0_ht_tmp_v;