aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp9.h
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2013-11-23 12:10:12 -0500
committerAnton Khirnov <anton@khirnov.net>2016-08-11 10:54:20 +0200
commit5b995452a63ed754545a0ac90be79fac63b3390d (patch)
tree05824dd434f49a4330c30f14932b66d1108ec693 /libavcodec/vp9.h
parentbc6e0b64a9100652c1ce52292408d8fd79930d53 (diff)
downloadffmpeg-5b995452a63ed754545a0ac90be79fac63b3390d.tar.gz
vp9: allocate 'b', 'block/uvblock' and 'eob/uveob' dynamically.
This will be needed for frame threading. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/vp9.h')
-rw-r--r--libavcodec/vp9.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/vp9.h b/libavcodec/vp9.h
index 8711987b8c..e59129818c 100644
--- a/libavcodec/vp9.h
+++ b/libavcodec/vp9.h
@@ -280,7 +280,8 @@ typedef struct VP9Context {
VP56RangeCoder c;
VP56RangeCoder *c_b;
unsigned c_b_size;
- VP9Block b;
+ VP9Block *b;
+ VP9Block *b_base;
// bitstream header
uint8_t profile;
@@ -412,10 +413,8 @@ typedef struct VP9Context {
DECLARE_ALIGNED(32, uint8_t, edge_emu_buffer)[71 * 80];
// block reconstruction intermediates
- DECLARE_ALIGNED(32, int16_t, block)[4096];
- DECLARE_ALIGNED(32, int16_t, uvblock)[2][1024];
- uint8_t eob[256];
- uint8_t uveob[2][64];
+ int16_t *block_base, *block, *uvblock_base[2], *uvblock[2];
+ uint8_t *eob_base, *uveob_base[2], *eob, *uveob[2];
struct { int x, y; } min_mv, max_mv;
DECLARE_ALIGNED(32, uint8_t, tmp_y)[64 * 64];
DECLARE_ALIGNED(32, uint8_t, tmp_uv)[2][32 * 32];