Mercurial > libavcodec.hg
comparison 8svx.c @ 7977:ccd351dd827b libavcodec
Use "static const" instead of "const static"
author | reimar |
---|---|
date | Thu, 02 Oct 2008 15:51:44 +0000 |
parents | 85ab7655ad4d |
children | fcc940b7952e |
comparison
equal
deleted
inserted
replaced
7976:f9d950b15bbb | 7977:ccd351dd827b |
---|---|
33 typedef struct EightSvxContext { | 33 typedef struct EightSvxContext { |
34 int16_t fib_acc; | 34 int16_t fib_acc; |
35 int16_t *table; | 35 int16_t *table; |
36 } EightSvxContext; | 36 } EightSvxContext; |
37 | 37 |
38 const static int16_t fibonacci[16] = { -34<<8, -21<<8, -13<<8, -8<<8, -5<<8, -3<<8, -2<<8, -1<<8, | 38 static const int16_t fibonacci[16] = { -34<<8, -21<<8, -13<<8, -8<<8, -5<<8, -3<<8, -2<<8, -1<<8, |
39 0, 1<<8, 2<<8, 3<<8, 5<<8, 8<<8, 13<<8, 21<<8 }; | 39 0, 1<<8, 2<<8, 3<<8, 5<<8, 8<<8, 13<<8, 21<<8 }; |
40 const static int16_t exponential[16] = { -128<<8, -64<<8, -32<<8, -16<<8, -8<<8, -4<<8, -2<<8, -1<<8, | 40 static const int16_t exponential[16] = { -128<<8, -64<<8, -32<<8, -16<<8, -8<<8, -4<<8, -2<<8, -1<<8, |
41 0, 1<<8, 2<<8, 4<<8, 8<<8, 16<<8, 32<<8, 64<<8 }; | 41 0, 1<<8, 2<<8, 4<<8, 8<<8, 16<<8, 32<<8, 64<<8 }; |
42 | 42 |
43 /** decode a frame */ | 43 /** decode a frame */ |
44 static int eightsvx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, | 44 static int eightsvx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, |
45 const uint8_t *buf, int buf_size) | 45 const uint8_t *buf, int buf_size) |