void ff_rv10_encode_picture_header(MpegEncContext *s, int picture_number)

{

    int full_frame= 0;



    avpriv_align_put_bits(&s->pb);



    put_bits(&s->pb, 1, 1);     /* marker */



    put_bits(&s->pb, 1, (s->pict_type == AV_PICTURE_TYPE_P));



    put_bits(&s->pb, 1, 0);     /* not PB frame */



    put_bits(&s->pb, 5, s->qscale);



    if (s->pict_type == AV_PICTURE_TYPE_I) {

        /* specific MPEG like DC coding not used */

    }

    /* if multiple packets per frame are sent, the position at which

       to display the macroblocks is coded here */

    if(!full_frame){

        put_bits(&s->pb, 6, 0); /* mb_x */

        put_bits(&s->pb, 6, 0); /* mb_y */

        put_bits(&s->pb, 12, s->mb_width * s->mb_height);

    }



    put_bits(&s->pb, 3, 0);     /* ignored */

}

void ff_rv10_encode_picture_header(MpegEncContext *s, int picture_number)

{

    int full_frame= 0;



    avpriv_align_put_bits(&s->pb);



    put_bits(&s->pb, 1, 1);     



    put_bits(&s->pb, 1, (s->pict_type == AV_PICTURE_TYPE_P));



    put_bits(&s->pb, 1, 0);     



    put_bits(&s->pb, 5, s->qscale);



    if (s->pict_type == AV_PICTURE_TYPE_I) {

        

    }

    



    if(!full_frame){

        put_bits(&s->pb, 6, 0); 

        put_bits(&s->pb, 6, 0); 

        put_bits(&s->pb, 12, s->mb_width * s->mb_height);

    }



    put_bits(&s->pb, 3, 0);     

}

void FUNC_0(MpegEncContext *VAR_0, int VAR_1)

{

    int VAR_2= 0;



    avpriv_align_put_bits(&VAR_0->pb);



    put_bits(&VAR_0->pb, 1, 1);     



    put_bits(&VAR_0->pb, 1, (VAR_0->pict_type == AV_PICTURE_TYPE_P));



    put_bits(&VAR_0->pb, 1, 0);     



    put_bits(&VAR_0->pb, 5, VAR_0->qscale);



    if (VAR_0->pict_type == AV_PICTURE_TYPE_I) {

        

    }

    



    if(!VAR_2){

        put_bits(&VAR_0->pb, 6, 0); 

        put_bits(&VAR_0->pb, 6, 0); 

        put_bits(&VAR_0->pb, 12, VAR_0->mb_width * VAR_0->mb_height);

    }



    put_bits(&VAR_0->pb, 3, 0);     

}

void FUNC_0(MpegEncContext *VAR_0, int VAR_1)
{ int VAR_2= 0; avpriv_align_put_bits(&VAR_0->pb); put_bits(&VAR_0->pb, 1, 1); put_bits(&VAR_0->pb, 1, (VAR_0->pict_type == AV_PICTURE_TYPE_P)); put_bits(&VAR_0->pb, 1, 0); put_bits(&VAR_0->pb, 5, VAR_0->qscale); if (VAR_0->pict_type == AV_PICTURE_TYPE_I) { } if(!VAR_2){ put_bits(&VAR_0->pb, 6, 0); put_bits(&VAR_0->pb, 6, 0); put_bits(&VAR_0->pb, 12, VAR_0->mb_width * VAR_0->mb_height); } put_bits(&VAR_0->pb, 3, 0); }