summaryrefslogtreecommitdiffstats
path: root/libavcodec/dirac_dwt.c
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2016-02-03 00:53:28 +0000
committerTimothy Gu <timothygu99@gmail.com>2016-02-07 09:09:13 -0800
commit6cdde20beb9801ab83f142b56449e0a3f69b4019 (patch)
treed28d47d47e233ef6985b9d8891ba1516e3e111ec /libavcodec/dirac_dwt.c
parent6c0318c4ba8e749911324d96e7c04fcc04661c97 (diff)
downloadffmpeg-streaming-6cdde20beb9801ab83f142b56449e0a3f69b4019.zip
ffmpeg-streaming-6cdde20beb9801ab83f142b56449e0a3f69b4019.tar.gz
dirac_dwt: Don't pass information in context as arguments
Diffstat (limited to 'libavcodec/dirac_dwt.c')
-rw-r--r--libavcodec/dirac_dwt.c13
1 files changed, 10 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud