dsputil: Separate h264 qpel
The sh4 optimizations are removed, because the code is 100% identical to the C code, so it is unlikely to provide any real practical benefit. Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
committed by
Luca Barbato
parent
7a95afe433
commit
e9d817351b
@@ -967,6 +967,7 @@ static av_cold void common_init(H264Context *h)
|
||||
s->codec_id = s->avctx->codec->id;
|
||||
|
||||
ff_h264dsp_init(&h->h264dsp, 8, 1);
|
||||
ff_h264qpel_init(&h->h264qpel, 8);
|
||||
ff_h264_pred_init(&h->hpc, s->codec_id, 8, 1);
|
||||
|
||||
h->dequant_coeff_pps = -1;
|
||||
@@ -2436,6 +2437,7 @@ static int h264_set_parameter_from_sps(H264Context *h)
|
||||
|
||||
ff_h264dsp_init(&h->h264dsp, h->sps.bit_depth_luma,
|
||||
h->sps.chroma_format_idc);
|
||||
ff_h264qpel_init(&h->h264qpel, h->sps.bit_depth_luma);
|
||||
ff_h264_pred_init(&h->hpc, s->codec_id, h->sps.bit_depth_luma,
|
||||
h->sps.chroma_format_idc);
|
||||
s->dsp.dct_bits = h->sps.bit_depth_luma > 8 ? 32 : 16;
|
||||
@@ -2593,8 +2595,8 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
|
||||
int last_pic_structure, last_pic_droppable;
|
||||
int needs_reinit = 0;
|
||||
|
||||
s->me.qpel_put = s->dsp.put_h264_qpel_pixels_tab;
|
||||
s->me.qpel_avg = s->dsp.avg_h264_qpel_pixels_tab;
|
||||
s->me.qpel_put = h->h264qpel.put_h264_qpel_pixels_tab;
|
||||
s->me.qpel_avg = h->h264qpel.avg_h264_qpel_pixels_tab;
|
||||
|
||||
first_mb_in_slice = get_ue_golomb(&s->gb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user