hevcdsp: remove more instances of compile-time-fixed parameters
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:

committed by
Michael Niedermayer

parent
d4f44b66d3
commit
dad7f15567
@@ -1390,10 +1390,10 @@ static void luma_mc_uni(HEVCContext *s, uint8_t *dst, ptrdiff_t dststride,
|
||||
s->hevcdsp.put_hevc_qpel[idx][!!my0][!!mx0](tmp, src0, src0stride,
|
||||
block_h, mx0, my0, block_w);
|
||||
if (!weight_flag)
|
||||
s->hevcdsp.put_hevc_qpel_bi[idx][!!my1][!!mx1](dst, dststride, src1, src1stride, tmp, MAX_PB_SIZE,
|
||||
s->hevcdsp.put_hevc_qpel_bi[idx][!!my1][!!mx1](dst, dststride, src1, src1stride, tmp,
|
||||
block_h, mx1, my1, block_w);
|
||||
else
|
||||
s->hevcdsp.put_hevc_qpel_bi_w[idx][!!my1][!!mx1](dst, dststride, src1, src1stride, tmp, MAX_PB_SIZE,
|
||||
s->hevcdsp.put_hevc_qpel_bi_w[idx][!!my1][!!mx1](dst, dststride, src1, src1stride, tmp,
|
||||
block_h, s->sh.luma_log2_weight_denom,
|
||||
s->sh.luma_weight_l0[current_mv->ref_idx[0]],
|
||||
s->sh.luma_weight_l1[current_mv->ref_idx[1]],
|
||||
@@ -1489,7 +1489,6 @@ static void chroma_mc_bi(HEVCContext *s, uint8_t *dst0, ptrdiff_t dststride, AVF
|
||||
int x_off, int y_off, int block_w, int block_h, struct MvField *current_mv, int cidx)
|
||||
{
|
||||
DECLARE_ALIGNED(16, int16_t, tmp [MAX_PB_SIZE * MAX_PB_SIZE]);
|
||||
int tmpstride = MAX_PB_SIZE;
|
||||
HEVCLocalContext *lc = s->HEVClc;
|
||||
uint8_t *src1 = ref0->data[cidx+1];
|
||||
uint8_t *src2 = ref1->data[cidx+1];
|
||||
@@ -1563,11 +1562,11 @@ static void chroma_mc_bi(HEVCContext *s, uint8_t *dst0, ptrdiff_t dststride, AVF
|
||||
block_h, _mx0, _my0, block_w);
|
||||
if (!weight_flag)
|
||||
s->hevcdsp.put_hevc_epel_bi[idx][!!my1][!!mx1](dst0, s->frame->linesize[cidx+1],
|
||||
src2, src2stride, tmp, tmpstride,
|
||||
src2, src2stride, tmp,
|
||||
block_h, _mx1, _my1, block_w);
|
||||
else
|
||||
s->hevcdsp.put_hevc_epel_bi_w[idx][!!my1][!!mx1](dst0, s->frame->linesize[cidx+1],
|
||||
src2, src2stride, tmp, tmpstride,
|
||||
src2, src2stride, tmp,
|
||||
block_h,
|
||||
s->sh.chroma_log2_weight_denom,
|
||||
s->sh.chroma_weight_l0[current_mv->ref_idx[0]][cidx],
|
||||
|
Reference in New Issue
Block a user