summaryrefslogtreecommitdiff
path: root/libavcodec/cfhd.h
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-08-03 09:33:36 +0200
committerPaul B Mahol <onemda@gmail.com>2020-08-03 22:22:07 +0200
commit05e58ce4e29ea47b2e06888c64055aa2f8d3e76c (patch)
tree696f7fcc55c795ba8f189c3b2eb40462971ddf86 /libavcodec/cfhd.h
parentb4ae780693a058486f84fd07d79739dba6f742d5 (diff)
avcodec/cfhd: use LUT for 9 and 18 codebook decompanding
Also fix codebook 9 decompanding, fixing artifact with codebook 9 samples. Reused Gagandeep Singh patch.
Diffstat (limited to 'libavcodec/cfhd.h')
-rw-r--r--libavcodec/cfhd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/cfhd.h b/libavcodec/cfhd.h
index 0e3155be23..7f35ac45f3 100644
--- a/libavcodec/cfhd.h
+++ b/libavcodec/cfhd.h
@@ -136,6 +136,8 @@ typedef struct CFHDContext {
CFHD_RL_VLC_ELEM table_18_rl_vlc[4572];
VLC vlc_18;
+ int lut[2][256];
+
GetBitContext gb;
int coded_width;