/third_party/ffmpeg/libavcodec/ |
D | h264_mb.c | 214 int pixel_shift, int chroma_idc) in mc_dir_part() argument 219 ptrdiff_t offset = (mx >> 2) * (1 << pixel_shift) + (my >> 2) * sl->mb_linesize; in mc_dir_part() 241 src_y - (2 << pixel_shift) - 2 * sl->mb_linesize, in mc_dir_part() 245 src_y = sl->edge_emu_buffer + (2 << pixel_shift) + 2 * sl->mb_linesize; in mc_dir_part() 260 src_cb - (2 << pixel_shift) - 2 * sl->mb_linesize, in mc_dir_part() 265 src_cb = sl->edge_emu_buffer + (2 << pixel_shift) + 2 * sl->mb_linesize; in mc_dir_part() 274 src_cr - (2 << pixel_shift) - 2 * sl->mb_linesize, in mc_dir_part() 279 src_cr = sl->edge_emu_buffer + (2 << pixel_shift) + 2 * sl->mb_linesize; in mc_dir_part() 294 src_cb = pic->data[1] + ((mx >> 3) * (1 << pixel_shift)) + in mc_dir_part() 296 src_cr = pic->data[2] + ((mx >> 3) * (1 << pixel_shift)) + in mc_dir_part() [all …]
|
D | h264_loopfilter.c | 245 int pixel_shift) in h264_filter_mb_fast_internal() argument 276 filter_mb_edgev( &img_y[4*0<<pixel_shift], linesize, bS4, qp0, a, b, h, 1); in h264_filter_mb_fast_internal() 278 filter_mb_edgev( &img_y[4*2<<pixel_shift], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal() 284 filter_mb_edgev( &img_y[4*1<<pixel_shift], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal() 285 filter_mb_edgev( &img_y[4*2<<pixel_shift], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal() 286 filter_mb_edgev( &img_y[4*3<<pixel_shift], linesize, bS3, qp, a, b, h, 0); in h264_filter_mb_fast_internal() 297 filter_mb_edgev( &img_cb[4*0<<pixel_shift], linesize, bS4, qpc0, a, b, h, 1); in h264_filter_mb_fast_internal() 298 filter_mb_edgev( &img_cr[4*0<<pixel_shift], linesize, bS4, qpc0, a, b, h, 1); in h264_filter_mb_fast_internal() 301 filter_mb_edgev( &img_cb[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); in h264_filter_mb_fast_internal() 302 filter_mb_edgev( &img_cr[4*2<<pixel_shift], linesize, bS3, qpc, a, b, h, 0); in h264_filter_mb_fast_internal() [all …]
|
D | h264_cavlc.c | 612 if (h->pixel_shift) { in decode_residual() 629 const uint8_t *scan8x8, int pixel_shift, in decode_luma_residual() argument 649 if( decode_residual(h, sl, gb, sl->mb + (16*index << pixel_shift), in decode_luma_residual() 667 int16_t *buf = &sl->mb[64*i8x8+256*p << pixel_shift]; in decode_luma_residual() 681 if( decode_residual(h, sl, gb, sl->mb + (16*index << pixel_shift), index, in decode_luma_residual() 704 const int pixel_shift = h->pixel_shift; in ff_h264_decode_mb_cavlc() local 1131 … if ((ret = decode_luma_residual(h, sl, gb, scan, scan8x8, pixel_shift, mb_type, cbp, 0)) < 0 ) { in ff_h264_decode_mb_cavlc() 1136 if (decode_luma_residual(h, sl, gb, scan, scan8x8, pixel_shift, mb_type, cbp, 1) < 0 ) { in ff_h264_decode_mb_cavlc() 1139 if (decode_luma_residual(h, sl, gb, scan, scan8x8, pixel_shift, mb_type, cbp, 2) < 0 ) { in ff_h264_decode_mb_cavlc() 1147 … if (decode_residual(h, sl, gb, sl->mb + ((256 + 16*16*chroma_idx) << pixel_shift), in ff_h264_decode_mb_cavlc() [all …]
|
D | hevc_filter.c | 163 static void copy_pixel(uint8_t *dst, const uint8_t *src, int pixel_shift) in copy_pixel() argument 165 if (pixel_shift) in copy_pixel() 172 int pixel_shift, int height, in copy_vert() argument 176 if (pixel_shift == 0) { in copy_vert() 195 int sh = s->ps.sps->pixel_shift; in copy_CTB_to_hv() 226 int len = (min_pu_size >> hshift) << s->ps.sps->pixel_shift; in restore_tqb_pixels() 231 …) * stride_src + ((((x << s->ps.sps->log2_min_pu_size) - x0) >> hshift) << s->ps.sps->pixel_shift); in restore_tqb_pixels() 232 …) * stride_dst + ((((x << s->ps.sps->log2_min_pu_size) - x0) >> hshift) << s->ps.sps->pixel_shift); in restore_tqb_pixels() 315 uint8_t *src = &s->frame->data[c_idx][y0 * stride_src + (x0 << s->ps.sps->pixel_shift)]; in sao_filter_CTB() 327 copy_CTB(dst, src, width << s->ps.sps->pixel_shift, height, stride_dst, stride_src); in sao_filter_CTB() [all …]
|
D | h264_cabac.c | 1756 if (h->pixel_shift) { in decode_cabac_residual_internal() 1863 … int pixel_shift, int mb_type, int cbp, int p) in decode_cabac_luma_residual() argument 1880 …decode_cabac_residual_nondc(h, sl, sl->mb + (16*index << pixel_shift), ctx_cat[1][p], index, scan … in decode_cabac_luma_residual() 1891 … decode_cabac_residual_nondc(h, sl, sl->mb + (16*index << pixel_shift), ctx_cat[3][p], index, in decode_cabac_luma_residual() 1897 …decode_cabac_residual_nondc(h, sl, sl->mb + (16*index << pixel_shift), ctx_cat[2][p], index, scan,… in decode_cabac_luma_residual() 1918 const int pixel_shift = h->pixel_shift; in ff_h264_decode_mb_cabac() local 2427 decode_cabac_luma_residual(h, sl, scan, scan8x8, pixel_shift, mb_type, cbp, 0); in ff_h264_decode_mb_cabac() 2429 decode_cabac_luma_residual(h, sl, scan, scan8x8, pixel_shift, mb_type, cbp, 1); in ff_h264_decode_mb_cabac() 2430 decode_cabac_luma_residual(h, sl, scan, scan8x8, pixel_shift, mb_type, cbp, 2); in ff_h264_decode_mb_cabac() 2435 … decode_cabac_residual_dc_422(h, sl, sl->mb + ((256 + 16*16*c) << pixel_shift), 3, in ff_h264_decode_mb_cabac() [all …]
|
D | hevcdec.c | 514 sps->pixel_shift); in set_sps() 517 sps->pixel_shift); in set_sps() 1193 … ((x0 >> hshift) << s->ps.sps->pixel_shift)]; in hls_transform_unit() 1222 … ((x0 >> hshift) << s->ps.sps->pixel_shift)]; in hls_transform_unit() 1431 uint8_t *dst0 = &s->frame->data[0][y0 * stride0 + (x0 << s->ps.sps->pixel_shift)]; in hls_pcm_sample() 1432 …(y0 >> s->ps.sps->vshift[1]) * stride1 + ((x0 >> s->ps.sps->hshift[1]) << s->ps.sps->pixel_shift)]; in hls_pcm_sample() 1433 …(y0 >> s->ps.sps->vshift[2]) * stride2 + ((x0 >> s->ps.sps->hshift[2]) << s->ps.sps->pixel_shift)]; in hls_pcm_sample() 1497 src += y_off * srcstride + (x_off * (1 << s->ps.sps->pixel_shift)); in luma_mc_uni() 1502 const ptrdiff_t edge_emu_stride = EDGE_EMU_BUFFER_STRIDE << s->ps.sps->pixel_shift; in luma_mc_uni() 1503 …t offset = QPEL_EXTRA_BEFORE * srcstride + (QPEL_EXTRA_BEFORE << s->ps.sps->pixel_shift); in luma_mc_uni() [all …]
|
D | h264_slice.c | 471 const int pixel_shift = h->pixel_shift; in h264_frame_start() local 534 …h->block_offset[i] = (4 * ((scan8[i] - scan8[0]) & 7) << pixel_shift) + 4 * pic->f->line… in h264_frame_start() 535 …h->block_offset[48 + i] = (4 * ((scan8[i] - scan8[0]) & 7) << pixel_shift) + 8 * pic->f->line… in h264_frame_start() 539 …h->block_offset[32 + i] = (4 * ((scan8[i] - scan8[0]) & 7) << pixel_shift) + 4 * pic->f->line… in h264_frame_start() 541 …h->block_offset[48 + 32 + i] = (4 * ((scan8[i] - scan8[0]) & 7) << pixel_shift) + 8 * pic->f->line… in h264_frame_start() 574 const int pixel_shift = h->pixel_shift; in backup_mb_border() local 587 if (pixel_shift) in backup_mb_border() 591 if (pixel_shift) { in backup_mb_border() 601 if (pixel_shift) { in backup_mb_border() 609 if (pixel_shift) { in backup_mb_border() [all …]
|
D | hevc_ps.h | 164 int pixel_shift; member
|
D | h264_mb_template.c | 30 # define PIXEL_SHIFT h->pixel_shift
|
D | h264dec.h | 363 int pixel_shift; ///< 0 for 8-bit H.264, 1 for high-bit-depth H.264 member
|
D | hevc_refs.c | 396 if (!s->ps.sps->pixel_shift) { in generate_missing_ref()
|
D | hevc_cabac.c | 1058 ((x0 >> hshift) << s->ps.sps->pixel_shift)]; in ff_hevc_hls_residual_coding()
|
D | hevc_ps.c | 903 sps->pixel_shift = sps->bit_depth > 8; in map_pixel_format()
|