diff options
author | Mans Rullgard <mans@mansr.com> | 2011-07-23 00:05:54 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-07-24 22:29:22 +0100 |
commit | 9dfd89b831f7c5a11b6406164e0d6d65c0392d24 (patch) | |
tree | 767df43d2f2439ac574ad43b265395a6a1d40fe7 /libavcodec/dnxhdenc.c | |
parent | 185a2c08c5f5a97b5d36f040651a31d52b6c1e79 (diff) | |
download | ffmpeg-9dfd89b831f7c5a11b6406164e0d6d65c0392d24.tar.gz |
dnxhddec: merge ac_{index,run}_flags
These tables contain only a 1-bit flag each. Combining them reduces
the data size and saves some instructions in the block decode loop.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dnxhdenc.c')
-rw-r--r-- | libavcodec/dnxhdenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index c86116fa89..3208499d1e 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -122,8 +122,8 @@ static int dnxhd_init_vlc(DNXHDEncContext *ctx) } for (j = 0; j < 257; j++) { if (ctx->cid_table->ac_level[j] >> 1 == alevel && - (!offset || (ctx->cid_table->ac_index_flag[j] && offset)) && - (!run || (ctx->cid_table->ac_run_flag [j] && run))) { + (!offset || (ctx->cid_table->ac_flags[j] & 1) && offset) && + (!run || (ctx->cid_table->ac_flags[j] & 2) && run)) { assert(!ctx->vlc_codes[index]); if (alevel) { ctx->vlc_codes[index] = (ctx->cid_table->ac_codes[j]<<1)|(sign&1); |