X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/blobdiff_plain/6c0318c4ba8e749911324d96e7c04fcc04661c97..6cdde20beb9801ab83f142b56449e0a3f69b4019:/libavcodec/dirac_dwt.c diff --git a/libavcodec/dirac_dwt.c b/libavcodec/dirac_dwt.c index 732615c..7ccb310 100644 --- a/libavcodec/dirac_dwt.c +++ b/libavcodec/dirac_dwt.c @@ -39,12 +39,19 @@ int ff_spatial_idwt_init2(DWTContext *d, uint8_t *buffer, int width, int height, { int ret = 0; + d->buffer = buffer; + d->width = width; + d->height = height; + d->stride = stride; + d->decomposition_count = decomposition_count; + d->temp = temp; + if (bit_depth == 8) - ret = ff_spatial_idwt_init2_8bit(d, buffer, width, height, stride, type, decomposition_count, temp); + ret = ff_spatial_idwt_init2_8bit(d, type); else if (bit_depth == 10) - ret = ff_spatial_idwt_init2_10bit(d, buffer, width, height, stride, type, decomposition_count, temp); + ret = ff_spatial_idwt_init2_10bit(d, type); else if (bit_depth == 12) - ret = ff_spatial_idwt_init2_12bit(d, buffer, width, height, stride, type, decomposition_count, temp); + ret = ff_spatial_idwt_init2_12bit(d, type); else av_log(NULL, AV_LOG_WARNING, "Unsupported bit depth = %i\n", bit_depth);