Lines Matching refs:edge_idx

238                 WORD32 edge_idx;  in ihevc_sao_edge_offset_class0()  local
241 edge_idx = 2 + u1_sign_left + u1_sign_right; in ihevc_sao_edge_offset_class0()
244 edge_idx = gi4_ihevc_table_edge_idx[edge_idx] & au1_mask[col]; in ihevc_sao_edge_offset_class0()
246 if(0 != edge_idx) in ihevc_sao_edge_offset_class0()
248 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class0()
325 WORD32 edge_idx; in ihevc_sao_edge_offset_class0_chroma() local
332 edge_idx = 2 + u1_sign_left_u + u1_sign_right_u; in ihevc_sao_edge_offset_class0_chroma()
339 edge_idx = 2 + u1_sign_left_v + u1_sign_right_v; in ihevc_sao_edge_offset_class0_chroma()
343 edge_idx = gi4_ihevc_table_edge_idx[edge_idx] & au1_mask[col >> 1]; in ihevc_sao_edge_offset_class0_chroma()
345 if(0 != edge_idx) in ihevc_sao_edge_offset_class0_chroma()
347 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class0_chroma()
430 WORD32 edge_idx; in ihevc_sao_edge_offset_class1() local
433 edge_idx = 2 + au1_sign_up[col] + u1_sign_down; in ihevc_sao_edge_offset_class1()
436 edge_idx = gi4_ihevc_table_edge_idx[edge_idx] & au1_mask[col]; in ihevc_sao_edge_offset_class1()
438 if(0 != edge_idx) in ihevc_sao_edge_offset_class1()
440 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class1()
526 WORD32 edge_idx; in ihevc_sao_edge_offset_class1_chroma() local
532 edge_idx = 2 + au1_sign_up[col] + u1_sign_down; in ihevc_sao_edge_offset_class1_chroma()
535 edge_idx = gi4_ihevc_table_edge_idx[edge_idx] & au1_mask[col >> 1]; in ihevc_sao_edge_offset_class1_chroma()
537 if(0 != edge_idx) in ihevc_sao_edge_offset_class1_chroma()
539 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class1_chroma()
608 WORD32 edge_idx; in ihevc_sao_edge_offset_class2() local
610 edge_idx = 2 + SIGN(pu1_src[0] - pu1_src_top_left[0]) + in ihevc_sao_edge_offset_class2()
613 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class2()
615 if(0 != edge_idx) in ihevc_sao_edge_offset_class2()
617 u1_pos_0_0_tmp = CLIP3(pu1_src[0] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class2()
632 WORD32 edge_idx; in ihevc_sao_edge_offset_class2() local
634edge_idx = 2 + SIGN(pu1_src[wd - 1 + (ht - 1) * src_strd] - pu1_src[wd - 1 + (ht - 1) * src_strd -… in ihevc_sao_edge_offset_class2()
637 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class2()
639 if(0 != edge_idx) in ihevc_sao_edge_offset_class2()
641 …d_ht_tmp = CLIP3(pu1_src[wd - 1 + (ht - 1) * src_strd] + pi1_sao_offset[edge_idx], 0, (1 << bit_de… in ihevc_sao_edge_offset_class2()
697 WORD32 edge_idx; in ihevc_sao_edge_offset_class2() local
700 edge_idx = 2 + pu1_sign_up[col] + u1_sign_down; in ihevc_sao_edge_offset_class2()
703 edge_idx = gi4_ihevc_table_edge_idx[edge_idx] & au1_mask[col]; in ihevc_sao_edge_offset_class2()
705 if(0 != edge_idx) in ihevc_sao_edge_offset_class2()
707 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class2()
803 WORD32 edge_idx; in ihevc_sao_edge_offset_class2_chroma() local
806 edge_idx = 2 + SIGN(pu1_src[0] - pu1_src_top_left[0]) + in ihevc_sao_edge_offset_class2_chroma()
809 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class2_chroma()
811 if(0 != edge_idx) in ihevc_sao_edge_offset_class2_chroma()
813 … u1_pos_0_0_tmp_u = CLIP3(pu1_src[0] + pi1_sao_offset_u[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class2_chroma()
821 edge_idx = 2 + SIGN(pu1_src[1] - pu1_src_top_left[1]) + in ihevc_sao_edge_offset_class2_chroma()
824 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class2_chroma()
826 if(0 != edge_idx) in ihevc_sao_edge_offset_class2_chroma()
828 … u1_pos_0_0_tmp_v = CLIP3(pu1_src[1] + pi1_sao_offset_v[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class2_chroma()
844 WORD32 edge_idx; in ihevc_sao_edge_offset_class2_chroma() local
847edge_idx = 2 + SIGN(pu1_src[wd - 2 + (ht - 1) * src_strd] - pu1_src[wd - 2 + (ht - 1) * src_strd -… in ihevc_sao_edge_offset_class2_chroma()
850 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class2_chroma()
852 if(0 != edge_idx) in ihevc_sao_edge_offset_class2_chroma()
854 …_tmp_u = CLIP3(pu1_src[wd - 2 + (ht - 1) * src_strd] + pi1_sao_offset_u[edge_idx], 0, (1 << bit_de… in ihevc_sao_edge_offset_class2_chroma()
862edge_idx = 2 + SIGN(pu1_src[wd - 1 + (ht - 1) * src_strd] - pu1_src[wd - 1 + (ht - 1) * src_strd -… in ihevc_sao_edge_offset_class2_chroma()
865 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class2_chroma()
867 if(0 != edge_idx) in ihevc_sao_edge_offset_class2_chroma()
869 …_tmp_v = CLIP3(pu1_src[wd - 1 + (ht - 1) * src_strd] + pi1_sao_offset_v[edge_idx], 0, (1 << bit_de… in ihevc_sao_edge_offset_class2_chroma()
927 WORD32 edge_idx; in ihevc_sao_edge_offset_class2_chroma() local
933 edge_idx = 2 + pu1_sign_up[col] + u1_sign_down; in ihevc_sao_edge_offset_class2_chroma()
936 edge_idx = gi4_ihevc_table_edge_idx[edge_idx] & au1_mask[col >> 1]; in ihevc_sao_edge_offset_class2_chroma()
938 if(0 != edge_idx) in ihevc_sao_edge_offset_class2_chroma()
940 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class2_chroma()
1026 WORD32 edge_idx; in ihevc_sao_edge_offset_class3() local
1028 edge_idx = 2 + SIGN(pu1_src[wd - 1] - pu1_src_top_right[0]) + in ihevc_sao_edge_offset_class3()
1031 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class3()
1033 if(0 != edge_idx) in ihevc_sao_edge_offset_class3()
1035 … u1_pos_wd_0_tmp = CLIP3(pu1_src[wd - 1] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class3()
1050 WORD32 edge_idx; in ihevc_sao_edge_offset_class3() local
1052edge_idx = 2 + SIGN(pu1_src[(ht - 1) * src_strd] - pu1_src[(ht - 1) * src_strd + 1 - src_strd]) + in ihevc_sao_edge_offset_class3()
1055 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class3()
1057 if(0 != edge_idx) in ihevc_sao_edge_offset_class3()
1059 …u1_pos_0_ht_tmp = CLIP3(pu1_src[(ht - 1) * src_strd] + pi1_sao_offset[edge_idx], 0, (1 << bit_dept… in ihevc_sao_edge_offset_class3()
1115 WORD32 edge_idx; in ihevc_sao_edge_offset_class3() local
1119 edge_idx = 2 + au1_sign_up[col] + u1_sign_down; in ihevc_sao_edge_offset_class3()
1123 edge_idx = gi4_ihevc_table_edge_idx[edge_idx] & au1_mask[col]; in ihevc_sao_edge_offset_class3()
1125 if(0 != edge_idx) in ihevc_sao_edge_offset_class3()
1127 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class3()
1207 WORD32 edge_idx; in ihevc_sao_edge_offset_class3_chroma() local
1210 edge_idx = 2 + SIGN(pu1_src[wd - 2] - pu1_src_top_right[0]) + in ihevc_sao_edge_offset_class3_chroma()
1213 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class3_chroma()
1215 if(0 != edge_idx) in ihevc_sao_edge_offset_class3_chroma()
1217 … u1_pos_wd_0_tmp_u = CLIP3(pu1_src[wd - 2] + pi1_sao_offset_u[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class3_chroma()
1225 edge_idx = 2 + SIGN(pu1_src[wd - 1] - pu1_src_top_right[1]) + in ihevc_sao_edge_offset_class3_chroma()
1228 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class3_chroma()
1230 if(0 != edge_idx) in ihevc_sao_edge_offset_class3_chroma()
1232 … u1_pos_wd_0_tmp_v = CLIP3(pu1_src[wd - 1] + pi1_sao_offset_v[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class3_chroma()
1248 WORD32 edge_idx; in ihevc_sao_edge_offset_class3_chroma() local
1251edge_idx = 2 + SIGN(pu1_src[(ht - 1) * src_strd] - pu1_src[(ht - 1) * src_strd + 2 - src_strd]) + in ihevc_sao_edge_offset_class3_chroma()
1254 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class3_chroma()
1256 if(0 != edge_idx) in ihevc_sao_edge_offset_class3_chroma()
1258 …u1_pos_0_ht_tmp_u = CLIP3(pu1_src[(ht - 1) * src_strd] + pi1_sao_offset_u[edge_idx], 0, (1 << bit_… in ihevc_sao_edge_offset_class3_chroma()
1266edge_idx = 2 + SIGN(pu1_src[(ht - 1) * src_strd + 1] - pu1_src[(ht - 1) * src_strd + 1 + 2 - src_s… in ihevc_sao_edge_offset_class3_chroma()
1269 edge_idx = gi4_ihevc_table_edge_idx[edge_idx]; in ihevc_sao_edge_offset_class3_chroma()
1271 if(0 != edge_idx) in ihevc_sao_edge_offset_class3_chroma()
1273 …u1_pos_0_ht_tmp_v = CLIP3(pu1_src[(ht - 1) * src_strd + 1] + pi1_sao_offset_v[edge_idx], 0, (1 << … in ihevc_sao_edge_offset_class3_chroma()
1331 WORD32 edge_idx; in ihevc_sao_edge_offset_class3_chroma() local
1338 edge_idx = 2 + au1_sign_up[col] + u1_sign_down; in ihevc_sao_edge_offset_class3_chroma()
1342 edge_idx = gi4_ihevc_table_edge_idx[edge_idx] & au1_mask[col >> 1]; in ihevc_sao_edge_offset_class3_chroma()
1344 if(0 != edge_idx) in ihevc_sao_edge_offset_class3_chroma()
1346 … pu1_src[col] = CLIP3(pu1_src[col] + pi1_sao_offset[edge_idx], 0, (1 << bit_depth) - 1); in ihevc_sao_edge_offset_class3_chroma()