summaryrefslogtreecommitdiffstats
path: root/libavcodec/dirac_dwt.c
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2016-02-03 01:30:55 +0000
committerTimothy Gu <timothygu99@gmail.com>2016-02-07 09:09:13 -0800
commit671761d71367f792d6f0c2cf8973cc183d189188 (patch)
tree8166c116f356c63c17ca59575b6b624a68ce4d91 /libavcodec/dirac_dwt.c
parente04912c0b673f4b8be06c5ccf99acf0f6338e659 (diff)
downloadffmpeg-streaming-671761d71367f792d6f0c2cf8973cc183d189188.zip
ffmpeg-streaming-671761d71367f792d6f0c2cf8973cc183d189188.tar.gz
diracdec: Pass DWTPlane to dwt init
Diffstat (limited to 'libavcodec/dirac_dwt.c')
-rw-r--r--libavcodec/dirac_dwt.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/libavcodec/dirac_dwt.c b/libavcodec/dirac_dwt.c
index 4f04112..cc08f88 100644
--- a/libavcodec/dirac_dwt.c
+++ b/libavcodec/dirac_dwt.c
@@ -33,18 +33,17 @@
#define TEMPLATE_12bit
#include "dirac_dwt_template.c"
-int ff_spatial_idwt_init(DWTContext *d, uint8_t *buffer, int width, int height,
- int stride, enum dwt_type type, int decomposition_count,
- uint8_t *temp, int bit_depth)
+int ff_spatial_idwt_init(DWTContext *d, DWTPlane *p, enum dwt_type type,
+ int decomposition_count, int bit_depth)
{
int ret = 0;
- d->buffer = buffer;
- d->width = width;
- d->height = height;
- d->stride = stride;
+ d->buffer = p->buf;
+ d->width = p->width;
+ d->height = p->height;
+ d->stride = p->stride;
+ d->temp = p->tmp;
d->decomposition_count = decomposition_count;
- d->temp = temp;
if (bit_depth == 8)
ret = ff_spatial_idwt_init_8bit(d, type);
OpenPOWER on IntegriCloud