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:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-09-24 01:36:43 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-10-01 14:12:28 +0400
commit9a3653c9ecc4bbbbb502513a70bccd4090ed12b0 (patch)
treeed91a449ea700211ef35076f23d0e1e0e02aeb17 /libavcodec/hevc.c
parent79551d2c7a772ea971e94f0b8dc03d1e897e8d86 (diff)
hevc: reuse edge emu buffer for coefficients
Kind of hackish but... Reviewed-by: Mickael Raulet <Mickael.Raulet@insa-rennes.fr> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 467c36a7b5..adeb66d6bd 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -972,8 +972,8 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
ptrdiff_t stride = s->frame->linesize[1];
int hshift = s->sps->hshift[1];
int vshift = s->sps->vshift[1];
- int16_t *coeffs_y = lc->tu.coeffs[0];
- int16_t *coeffs = lc->tu.coeffs[1];
+ int16_t *coeffs_y = (int16_t*)lc->edge_emu_buffer;
+ int16_t *coeffs = (int16_t*)lc->edge_emu_buffer2;
int size = 1 << log2_trafo_size_c;
uint8_t *dst = &s->frame->data[1][(y0 >> vshift) * stride +
@@ -1001,8 +1001,8 @@ static int hls_transform_unit(HEVCContext *s, int x0, int y0,
ptrdiff_t stride = s->frame->linesize[2];
int hshift = s->sps->hshift[2];
int vshift = s->sps->vshift[2];
- int16_t *coeffs_y = lc->tu.coeffs[0];
- int16_t *coeffs = lc->tu.coeffs[1];
+ int16_t *coeffs_y = (int16_t*)lc->edge_emu_buffer;
+ int16_t *coeffs = (int16_t*)lc->edge_emu_buffer2;
int size = 1 << log2_trafo_size_c;
uint8_t *dst = &s->frame->data[2][(y0 >> vshift) * stride +