Mercurial > libavcodec.hg
diff roqvideo.h @ 5184:f3873cd7f473 libavcodec
RoQ video encoder
patch by Vitor: \vitor1001 gmail com/
original thread: [FFmpeg-devel] RoQ video encoder (take 3)
date: 06/08/2007 10:34 PM
author | benoit |
---|---|
date | Mon, 25 Jun 2007 12:09:23 +0000 |
parents | 3fd46e281bd8 |
children | ab669ac706dc |
line wrap: on
line diff
--- a/roqvideo.h Mon Jun 25 07:29:45 2007 +0000 +++ b/roqvideo.h Mon Jun 25 12:09:23 2007 +0000 @@ -24,6 +24,7 @@ #include "avcodec.h" #include "dsputil.h" +#include "random.h" typedef struct { unsigned char y[4]; @@ -34,6 +35,10 @@ int idx[4]; } roq_qcell; +typedef struct { + int d[2]; +} motion_vect; + typedef struct RoqContext { AVCodecContext *avctx; @@ -41,6 +46,7 @@ AVFrame frames[2]; AVFrame *last_frame; AVFrame *current_frame; + int first_frame; int y_stride; int c_stride; @@ -49,7 +55,22 @@ unsigned char *buf; int size; + int width, height; + /* Encoder only data */ + AVRandomState randctx; + uint64_t lambda; + + motion_vect *this_motion4; + motion_vect *last_motion4; + + motion_vect *this_motion8; + motion_vect *last_motion8; + + unsigned int framesSinceKeyframe; + + AVFrame *frame_to_enc; + uint8_t *out_buf; } RoqContext; #define RoQ_INFO 0x1001