Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Kunhya <kierank@ob-encoder.com>2015-12-09 11:24:36 +0300
committerRostislav Pehlivanov <atomnuker@gmail.com>2015-12-10 21:25:02 +0300
commit3f07f12f65e56d1cf96e5ac2cefc0ad9c7bfb6af (patch)
treecae42009ffbc267c02e97adc810ff97b26303dbf /libavcodec/diracdec.c
parent9553689854d61069ae3467f9b46dac43ee991d96 (diff)
diracdec: Template DSP functions adding 10-bit versions
Diffstat (limited to 'libavcodec/diracdec.c')
-rw-r--r--libavcodec/diracdec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c
index 4bb9ca3693..1d4601ed46 100644
--- a/libavcodec/diracdec.c
+++ b/libavcodec/diracdec.c
@@ -1687,16 +1687,16 @@ static int dirac_decode_frame_internal(DiracContext *s)
memset(p->idwt_buf, 0, p->idwt_stride * p->idwt_height);
decode_component(s, comp); /* [DIRAC_STD] 13.4.1 core_transform_data() */
}
- ret = ff_spatial_idwt_init2(&d, (int16_t*)p->idwt_buf, p->idwt_width, p->idwt_height, p->idwt_stride >> 1,
- s->wavelet_idx+2, s->wavelet_depth, (int16_t*)p->idwt_tmp);
+ ret = ff_spatial_idwt_init2(&d, p->idwt_buf, p->idwt_width, p->idwt_height, p->idwt_stride,
+ s->wavelet_idx+2, s->wavelet_depth, p->idwt_tmp, s->bit_depth);
if (ret < 0)
return ret;
if (!s->num_refs) { /* intra */
for (y = 0; y < p->height; y += 16) {
ff_spatial_idwt_slice2(&d, y+16); /* decode */
- s->diracdsp.put_signed_rect_clamped(frame + y*p->stride, p->stride,
- (int16_t*)(p->idwt_buf) + y*(p->idwt_stride >> 1), (p->idwt_stride >> 1), p->width, 16);
+ s->diracdsp.put_signed_rect_clamped[s->pshift](frame + y*p->stride, p->stride,
+ p->idwt_buf + y*p->idwt_stride, p->idwt_stride, p->width, 16);
}
} else { /* inter */
int rowheight = p->ybsep*p->stride;