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;
AVCodecContext*avctx;
DSPContextdsp;
DSPContextdsp;
AVFramepicture;
AVFramepicture;
...
@@ -50,7 +50,9 @@ typedef struct SVQ1Context {
...
@@ -50,7 +50,9 @@ typedef struct SVQ1Context {
PutBitContextpb;
PutBitContextpb;
GetBitContextgb;
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_width;
intframe_height;
intframe_height;
...
@@ -87,19 +89,17 @@ static void svq1_write_header(SVQ1Context *s, int frame_type)
...
@@ -87,19 +89,17 @@ static void svq1_write_header(SVQ1Context *s, int frame_type)
put_bits(&s->pb,2,frame_type-1);
put_bits(&s->pb,2,frame_type-1);
if(frame_type==AV_PICTURE_TYPE_I){
if(frame_type==AV_PICTURE_TYPE_I){
/* no checksum since frame code is 0x20 */
/* no checksum since frame code is 0x20 */
/* no embedded string either */
/* no embedded string either */
/* output 5 unknown bits (2 + 2 + 1) */
/* output 5 unknown bits (2 + 2 + 1) */
put_bits(&s->pb,5,2);/* 2 needed by quicktime decoder */
put_bits(&s->pb,5,2);/* 2 needed by quicktime decoder */