mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
svq1enc: reduce stack usage of recursively-called function.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
458aadf862
commit
d0682b5eb0
@ -96,7 +96,7 @@ static int encode_block(SVQ1EncContext *s, uint8_t *src, uint8_t *ref,
|
|||||||
int w = 2 << (level + 2 >> 1);
|
int w = 2 << (level + 2 >> 1);
|
||||||
int h = 2 << (level + 1 >> 1);
|
int h = 2 << (level + 1 >> 1);
|
||||||
int size = w * h;
|
int size = w * h;
|
||||||
DECLARE_ALIGNED(16, int16_t, block)[7][256];
|
int16_t (*block)[256] = s->encoded_block_levels[level];
|
||||||
const int8_t *codebook_sum, *codebook;
|
const int8_t *codebook_sum, *codebook;
|
||||||
const uint16_t(*mean_vlc)[2];
|
const uint16_t(*mean_vlc)[2];
|
||||||
const uint8_t(*multistage_vlc)[2];
|
const uint8_t(*multistage_vlc)[2];
|
||||||
|
@ -59,6 +59,8 @@ typedef struct SVQ1EncContext {
|
|||||||
int c_block_width;
|
int c_block_width;
|
||||||
int c_block_height;
|
int c_block_height;
|
||||||
|
|
||||||
|
DECLARE_ALIGNED(16, int16_t, encoded_block_levels)[6][7][256];
|
||||||
|
|
||||||
uint16_t *mb_type;
|
uint16_t *mb_type;
|
||||||
uint32_t *dummy;
|
uint32_t *dummy;
|
||||||
int16_t (*motion_val8[3])[2];
|
int16_t (*motion_val8[3])[2];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user