Mercurial > libavcodec.hg
comparison roqvideo.h @ 8643:1fa3e8a72ca5 libavcodec
Do not allocate RoqTempData on the stack
author | vitor |
---|---|
date | Sat, 24 Jan 2009 08:15:43 +0000 |
parents | c4a4495715dd |
children | aa459306ee59 |
comparison
equal
deleted
inserted
replaced
8642:178d5dfccad4 | 8643:1fa3e8a72ca5 |
---|---|
37 | 37 |
38 typedef struct { | 38 typedef struct { |
39 int d[2]; | 39 int d[2]; |
40 } motion_vect; | 40 } motion_vect; |
41 | 41 |
42 struct RoqTempData; | |
43 | |
42 typedef struct RoqContext { | 44 typedef struct RoqContext { |
43 | 45 |
44 AVCodecContext *avctx; | 46 AVCodecContext *avctx; |
45 DSPContext dsp; | 47 DSPContext dsp; |
46 AVFrame frames[2]; | 48 AVFrame frames[2]; |
67 | 69 |
68 unsigned int framesSinceKeyframe; | 70 unsigned int framesSinceKeyframe; |
69 | 71 |
70 AVFrame *frame_to_enc; | 72 AVFrame *frame_to_enc; |
71 uint8_t *out_buf; | 73 uint8_t *out_buf; |
74 struct RoqTempData *tmpData; | |
72 } RoqContext; | 75 } RoqContext; |
73 | 76 |
74 #define RoQ_INFO 0x1001 | 77 #define RoQ_INFO 0x1001 |
75 #define RoQ_QUAD_CODEBOOK 0x1002 | 78 #define RoQ_QUAD_CODEBOOK 0x1002 |
76 #define RoQ_QUAD_VQ 0x1011 | 79 #define RoQ_QUAD_VQ 0x1011 |