MpegEncContextm;// needed for motion estimation, should not be used for anything else, the idea is to make the motion estimation eventually independent of MpegEncContext, so this will be removed then (FIXME/XXX)
/* FIXME: Needed for motion estimation, should not be used for anything
* else, the idea is to make the motion estimation eventually independent
* of MpegEncContext, so this will be removed then. */
MpegEncContextm;
AVCodecContext*avctx;
DSPContextdsp;
AVFramepicture;
...
...
@@ -50,7 +50,9 @@ typedef struct SVQ1Context {
PutBitContextpb;
GetBitContextgb;
PutBitContextreorder_pb[6];//why ooh why this sick breadth first order, everything is slower and more complex
/* why ooh why this sick breadth first order,
* everything is slower and more complex */
PutBitContextreorder_pb[6];
intframe_width;
intframe_height;
...
...
@@ -87,21 +89,19 @@ static void svq1_write_header(SVQ1Context *s, int frame_type)
put_bits(&s->pb,2,frame_type-1);
if(frame_type==AV_PICTURE_TYPE_I){
/* no checksum since frame code is 0x20 */
/* no embedded string either */
/* output 5 unknown bits (2 + 2 + 1) */
put_bits(&s->pb,5,2);/* 2 needed by quicktime decoder */