Commit 3bb6ce1a authored by Kieran Kunhya's avatar Kieran Kunhya Committed by Rostislav Pehlivanov

diracdec: Rename lowdelay_subband to decode_subband because it is shared with HQ profile

parent 3f07f12f
...@@ -719,9 +719,7 @@ static void decode_component(DiracContext *s, int comp) ...@@ -719,9 +719,7 @@ static void decode_component(DiracContext *s, int comp)
return; \ return; \
} \ } \
/* [DIRAC_STD] 13.5.5.2 Luma slice subband data. luma_slice_band(level,orient,sx,sy) --> if b2 == NULL */ static void decode_subband(DiracContext *s, GetBitContext *gb, int quant,
/* [DIRAC_STD] 13.5.5.3 Chroma slice subband data. chroma_slice_band(level,orient,sx,sy) --> if b2 != NULL */
static void lowdelay_subband(DiracContext *s, GetBitContext *gb, int quant,
int slice_x, int slice_y, int bits_end, int slice_x, int slice_y, int bits_end,
SubBand *b1, SubBand *b2) SubBand *b1, SubBand *b2)
{ {
...@@ -792,7 +790,7 @@ static int decode_lowdelay_slice(AVCodecContext *avctx, void *arg) ...@@ -792,7 +790,7 @@ static int decode_lowdelay_slice(AVCodecContext *avctx, void *arg)
for (level = 0; level < s->wavelet_depth; level++) for (level = 0; level < s->wavelet_depth; level++)
for (orientation = !!level; orientation < 4; orientation++) { for (orientation = !!level; orientation < 4; orientation++) {
quant = FFMAX(quant_base - s->lowdelay.quant[level][orientation], 0); quant = FFMAX(quant_base - s->lowdelay.quant[level][orientation], 0);
lowdelay_subband(s, gb, quant, slice->slice_x, slice->slice_y, luma_end, decode_subband(s, gb, quant, slice->slice_x, slice->slice_y, luma_end,
&s->plane[0].band[level][orientation], NULL); &s->plane[0].band[level][orientation], NULL);
} }
...@@ -805,7 +803,7 @@ static int decode_lowdelay_slice(AVCodecContext *avctx, void *arg) ...@@ -805,7 +803,7 @@ static int decode_lowdelay_slice(AVCodecContext *avctx, void *arg)
for (level = 0; level < s->wavelet_depth; level++) for (level = 0; level < s->wavelet_depth; level++)
for (orientation = !!level; orientation < 4; orientation++) { for (orientation = !!level; orientation < 4; orientation++) {
quant = FFMAX(quant_base - s->lowdelay.quant[level][orientation], 0); quant = FFMAX(quant_base - s->lowdelay.quant[level][orientation], 0);
lowdelay_subband(s, gb, quant, slice->slice_x, slice->slice_y, chroma_end, decode_subband(s, gb, quant, slice->slice_x, slice->slice_y, chroma_end,
&s->plane[1].band[level][orientation], &s->plane[1].band[level][orientation],
&s->plane[2].band[level][orientation]); &s->plane[2].band[level][orientation]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment