comparison a64multienc.c @ 12428:06453ad84991 libavcodec

enable a flexible lifetime
author bindhammer
date Thu, 26 Aug 2010 10:03:03 +0000
parents 1b8f44e2754e
children 305987348a98
comparison
equal deleted inserted replaced
12427:1b8f44e2754e 12428:06453ad84991
31 #include "libavutil/intreadwrite.h" 31 #include "libavutil/intreadwrite.h"
32 32
33 #define DITHERSTEPS 8 33 #define DITHERSTEPS 8
34 #define CHARSET_CHARS 256 34 #define CHARSET_CHARS 256
35 #define INTERLACED 1 35 #define INTERLACED 1
36 #define LIFETIME 4
37 36
38 /* gray gradient */ 37 /* gray gradient */
39 static const int mc_colors[5]={0x0,0xb,0xc,0xf,0x1}; 38 static const int mc_colors[5]={0x0,0xb,0xc,0xf,0x1};
40 39
41 /* other possible gradients - to be tested */ 40 /* other possible gradients - to be tested */
239 238
240 int frame; 239 int frame;
241 int a; 240 int a;
242 241
243 int req_size; 242 int req_size;
244 int num_frames = LIFETIME; 243 int num_frames = c->mc_lifetime;
245 244
246 int *charmap = c->mc_charmap; 245 int *charmap = c->mc_charmap;
247 uint8_t *colram = c->mc_colram; 246 uint8_t *colram = c->mc_colram;
248 uint8_t *charset = c->mc_charset; 247 uint8_t *charset = c->mc_charset;
249 int *meta = c->mc_meta_charset; 248 int *meta = c->mc_meta_charset;