summaryrefslogtreecommitdiff
path: root/libavcodec/mss12.h
diff options
context:
space:
mode:
authorAlberto Delmás <adelmas@gmail.com>2012-09-02 12:44:21 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2012-09-03 14:39:37 +0200
commit626c1a33ed43c943b142f3357aaf369239cfe54a (patch)
treee75b36dda3b7d41042122f092d4eb70df2662ef3 /libavcodec/mss12.h
parenta97ee41bee60b2075c84e2ce6bb441304698744c (diff)
mss12: reduce SliceContext size from 1067 to 164 KB
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Diffstat (limited to 'libavcodec/mss12.h')
-rw-r--r--libavcodec/mss12.h9
1 files changed, 4 insertions, 5 deletions
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;