Lines Matching refs:c_idx
50 static int chroma_tc(HEVCContext *s, int qp_y, int c_idx, int tc_offset)
58 if (c_idx == 1)
156 static void restore_tqb_pixels(HEVCContext *s, int x0, int y0, int width, int height, int c_idx)
161 ptrdiff_t stride = s->frame->linesize[c_idx];
163 int hshift = s->sps->hshift[c_idx];
164 int vshift = s->sps->vshift[c_idx];
174 uint8_t *src = &s->frame->data[c_idx][ ((y << s->sps->log2_min_pu_size) >> vshift) * stride + (((x << s->sps->log2_min_pu_size) >> hshift) << s->sps->pixel_shift)];
175 uint8_t *dst = &s->sao_frame->data[c_idx][((y << s->sps->log2_min_pu_size) >> vshift) * stride + (((x << s->sps->log2_min_pu_size) >> hshift) << s->sps->pixel_shift)];
191 int c_idx;
247 for (c_idx = 0; c_idx < 3; c_idx++) {
248 int x0 = x >> s->sps->hshift[c_idx];
249 int y0 = y >> s->sps->vshift[c_idx];
250 int stride = s->frame->linesize[c_idx];
251 int ctb_size_h = (1 << (s->sps->log2_ctb_size)) >> s->sps->hshift[c_idx];
252 int ctb_size_v = (1 << (s->sps->log2_ctb_size)) >> s->sps->vshift[c_idx];
254 (s->sps->width >> s->sps->hshift[c_idx]) - x0);
256 (s->sps->height >> s->sps->vshift[c_idx]) - y0);
258 uint8_t *src = &s->frame->data[c_idx][y0 * stride + (x0 << s->sps->pixel_shift)];
259 uint8_t *dst = &s->sao_frame->data[c_idx][y0 * stride + (x0 << s->sps->pixel_shift)];
261 switch (sao->type_idx[c_idx]) {
267 height, c_idx);
268 restore_tqb_pixels(s, x, y, width, height, c_idx);
275 height, c_idx,
279 restore_tqb_pixels(s, x, y, width, height, c_idx);