From 626c1a33ed43c943b142f3357aaf369239cfe54a Mon Sep 17 00:00:00 2001 From: Alberto Delmás Date: Sun, 2 Sep 2012 12:44:21 +0200 Subject: mss12: reduce SliceContext size from 1067 to 164 KB Signed-off-by: Kostya Shishkov --- libavcodec/mss12.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libavcodec/mss12.h') diff --git a/libavcodec/mss12.h b/libavcodec/mss12.h index 97cd25fdf2..678a0c0dfb 100644 --- a/libavcodec/mss12.h +++ b/libavcodec/mss12.h @@ -38,10 +38,9 @@ #define THRESH_HIGH 50 typedef struct Model { - int cum_prob[MODEL_MAX_SYMS + 1]; - int weights[MODEL_MAX_SYMS + 1]; - int idx2sym[MODEL_MAX_SYMS + 1]; - int sym2idx[MODEL_MAX_SYMS + 1]; + int16_t cum_prob[MODEL_MAX_SYMS + 1]; + int16_t weights[MODEL_MAX_SYMS + 1]; + uint8_t idx2sym[MODEL_MAX_SYMS + 1]; int num_syms; int thr_weight, threshold; } Model; @@ -60,7 +59,7 @@ typedef struct PixContext { int cache_size, num_syms; uint8_t cache[12]; Model cache_model, full_model; - Model sec_models[4][8][4]; + Model sec_models[15][4]; int special_initial_cache; } PixContext; -- cgit v1.2.3