Lines Matching defs:x_ctb
193 int x_ctb = x >> s->sps->log2_ctb_size;
195 int ctb_addr_rs = y_ctb * s->sps->ctb_width + x_ctb;
197 SAOParams *sao = &CTB(s->sao, x_ctb, y_ctb);
202 uint8_t lfase = CTB(s->filter_slice_edges, x_ctb, y_ctb);
211 edges[0] = x_ctb == 0;
213 edges[2] = x_ctb == s->sps->ctb_width - 1;
219 vert_edge[0] = (!lfase && CTB(s->tab_slice_address, x_ctb, y_ctb) != CTB(s->tab_slice_address, x_ctb - 1, y_ctb)) || left_tile_edge;
223 vert_edge[1] = (!lfase && CTB(s->tab_slice_address, x_ctb, y_ctb) != CTB(s->tab_slice_address, x_ctb + 1, y_ctb)) || right_tile_edge;
227 horiz_edge[0] = (!lfase && CTB(s->tab_slice_address, x_ctb, y_ctb) != CTB(s->tab_slice_address, x_ctb, y_ctb - 1)) || up_tile_edge;
231 horiz_edge[1] = (!lfase && CTB(s->tab_slice_address, x_ctb, y_ctb) != CTB(s->tab_slice_address, x_ctb, y_ctb + 1)) || bottom_tile_edge;
234 diag_edge[0] = (!lfase && CTB(s->tab_slice_address, x_ctb, y_ctb) != CTB(s->tab_slice_address, x_ctb - 1, y_ctb - 1)) || left_tile_edge || up_tile_edge;
237 diag_edge[1] = (!lfase && CTB(s->tab_slice_address, x_ctb, y_ctb) != CTB(s->tab_slice_address, x_ctb + 1, y_ctb - 1)) || right_tile_edge || up_tile_edge;
240 diag_edge[2] = (!lfase && CTB(s->tab_slice_address, x_ctb, y_ctb) != CTB(s->tab_slice_address, x_ctb + 1, y_ctb + 1)) || right_tile_edge || bottom_tile_edge;
243 diag_edge[3] = (!lfase && CTB(s->tab_slice_address, x_ctb, y_ctb) != CTB(s->tab_slice_address, x_ctb - 1, y_ctb + 1)) || left_tile_edge || bottom_tile_edge;
704 void ff_hevc_hls_filters(HEVCContext *s, int x_ctb, int y_ctb, int ctb_size)
706 int x_end = x_ctb >= s->sps->width - ctb_size;
708 if (y_ctb && x_ctb)
709 ff_hevc_hls_filter(s, x_ctb - ctb_size, y_ctb - ctb_size, ctb_size);
711 ff_hevc_hls_filter(s, x_ctb, y_ctb - ctb_size, ctb_size);
712 if (x_ctb && y_end)
713 ff_hevc_hls_filter(s, x_ctb - ctb_size, y_ctb, ctb_size);