comparison 8svx.c @ 6554:a8a3c0be40c7 libavcodec

cosmetics: Write some Doxygen comments in a more compact fashion.
author diego
date Mon, 31 Mar 2008 17:30:50 +0000
parents ed204467a154
children 77bb7984b15e
comparison
equal deleted inserted replaced
6553:ca55b7b133c7 6554:a8a3c0be40c7
27 * : exponential encoding 27 * : exponential encoding
28 */ 28 */
29 29
30 #include "avcodec.h" 30 #include "avcodec.h"
31 31
32 /** 32 /** decoder context */
33 * decoder context
34 */
35 typedef struct EightSvxContext { 33 typedef struct EightSvxContext {
36 int16_t fib_acc; 34 int16_t fib_acc;
37 int16_t *table; 35 int16_t *table;
38 } EightSvxContext; 36 } EightSvxContext;
39 37
40 const static int16_t fibonacci[16] = { -34<<8, -21<<8, -13<<8, -8<<8, -5<<8, -3<<8, -2<<8, -1<<8, 38 const static int16_t fibonacci[16] = { -34<<8, -21<<8, -13<<8, -8<<8, -5<<8, -3<<8, -2<<8, -1<<8,
41 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 };
42 const static int16_t exponential[16] = { -128<<8, -64<<8, -32<<8, -16<<8, -8<<8, -4<<8, -2<<8, -1<<8, 40 const static int16_t exponential[16] = { -128<<8, -64<<8, -32<<8, -16<<8, -8<<8, -4<<8, -2<<8, -1<<8,
43 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 };
44 42
45 /** 43 /** decode a frame */
46 * decode a frame
47 */
48 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,
49 const uint8_t *buf, int buf_size) 45 const uint8_t *buf, int buf_size)
50 { 46 {
51 EightSvxContext *esc = avctx->priv_data; 47 EightSvxContext *esc = avctx->priv_data;
52 int16_t *out_data = data; 48 int16_t *out_data = data;
73 } 69 }
74 70
75 return consumed; 71 return consumed;
76 } 72 }
77 73
78 /** 74 /** initialize 8svx decoder */
79 * initialize 8svx decoder
80 */
81 static av_cold int eightsvx_decode_init(AVCodecContext *avctx) 75 static av_cold int eightsvx_decode_init(AVCodecContext *avctx)
82 { 76 {
83 EightSvxContext *esc = avctx->priv_data; 77 EightSvxContext *esc = avctx->priv_data;
84 78
85 switch(avctx->codec->id) { 79 switch(avctx->codec->id) {