diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-22 04:28:11 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-25 02:32:47 +0300 |
commit | efbfee4c1a61705dc5a4067ac8e70d7db618a7e9 (patch) | |
tree | eda7089aac6c3afc2148aee970f129881662820a /libavcodec/kmvc.c | |
parent | fb6a8847ad60cd5d6f50d459743b46c23900d542 (diff) |
avcodec/kmvc: Move commonly used variables to the front of the context
Reduces codesize because the offset in pointer+offset addressing
requires less bytes to encode. Reduces the size of .text from 8871B
to 8146B (GCC 10, -O3, x64).
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/kmvc.c')
-rw-r--r-- | libavcodec/kmvc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/kmvc.c b/libavcodec/kmvc.c index 8d9f0a9693..dd1ae05f2d 100644 --- a/libavcodec/kmvc.c +++ b/libavcodec/kmvc.c @@ -44,12 +44,12 @@ typedef struct KmvcContext { AVCodecContext *avctx; + GetByteContext g; + uint8_t *cur, *prev; int setpal; int palsize; uint32_t pal[MAX_PALSIZE]; - uint8_t *cur, *prev; uint8_t frm0[320 * 200], frm1[320 * 200]; - GetByteContext g; } KmvcContext; typedef struct BitBuf { |