static void decode_v1_vector(CinepakEncContext *s, AVPicture *sub_pict, mb_info *mb, strip_info *info)

{

    int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;



    sub_pict->data[0][0] =

            sub_pict->data[0][1] =

            sub_pict->data[0][    sub_pict->linesize[0]] =

            sub_pict->data[0][1+  sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size];



    sub_pict->data[0][2] =

            sub_pict->data[0][3] =

            sub_pict->data[0][2+  sub_pict->linesize[0]] =

            sub_pict->data[0][3+  sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size+1];



    sub_pict->data[0][2*sub_pict->linesize[0]] =

            sub_pict->data[0][1+2*sub_pict->linesize[0]] =

            sub_pict->data[0][  3*sub_pict->linesize[0]] =

            sub_pict->data[0][1+3*sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size+2];



    sub_pict->data[0][2+2*sub_pict->linesize[0]] =

            sub_pict->data[0][3+2*sub_pict->linesize[0]] =

            sub_pict->data[0][2+3*sub_pict->linesize[0]] =

            sub_pict->data[0][3+3*sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size+3];



    if(s->pix_fmt == AV_PIX_FMT_YUV420P) {

        sub_pict->data[1][0] =

            sub_pict->data[1][1] =

            sub_pict->data[1][    sub_pict->linesize[1]] =

            sub_pict->data[1][1+  sub_pict->linesize[1]] = info->v1_codebook[mb->v1_vector*entry_size+4];



        sub_pict->data[2][0] =

            sub_pict->data[2][1] =

            sub_pict->data[2][    sub_pict->linesize[2]] =

            sub_pict->data[2][1+  sub_pict->linesize[2]] = info->v1_codebook[mb->v1_vector*entry_size+5];

    }

}

static void decode_v1_vector(CinepakEncContext *s, AVPicture *sub_pict, mb_info *mb, strip_info *info)

{

    int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;



    sub_pict->data[0][0] =

            sub_pict->data[0][1] =

            sub_pict->data[0][    sub_pict->linesize[0]] =

            sub_pict->data[0][1+  sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size];



    sub_pict->data[0][2] =

            sub_pict->data[0][3] =

            sub_pict->data[0][2+  sub_pict->linesize[0]] =

            sub_pict->data[0][3+  sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size+1];



    sub_pict->data[0][2*sub_pict->linesize[0]] =

            sub_pict->data[0][1+2*sub_pict->linesize[0]] =

            sub_pict->data[0][  3*sub_pict->linesize[0]] =

            sub_pict->data[0][1+3*sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size+2];



    sub_pict->data[0][2+2*sub_pict->linesize[0]] =

            sub_pict->data[0][3+2*sub_pict->linesize[0]] =

            sub_pict->data[0][2+3*sub_pict->linesize[0]] =

            sub_pict->data[0][3+3*sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size+3];



    if(s->pix_fmt == AV_PIX_FMT_YUV420P) {

        sub_pict->data[1][0] =

            sub_pict->data[1][1] =

            sub_pict->data[1][    sub_pict->linesize[1]] =

            sub_pict->data[1][1+  sub_pict->linesize[1]] = info->v1_codebook[mb->v1_vector*entry_size+4];



        sub_pict->data[2][0] =

            sub_pict->data[2][1] =

            sub_pict->data[2][    sub_pict->linesize[2]] =

            sub_pict->data[2][1+  sub_pict->linesize[2]] = info->v1_codebook[mb->v1_vector*entry_size+5];

    }

}

    if(s->pix_fmt == AV_PIX_FMT_YUV420P) {     int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;     if(s->pix_fmt == AV_PIX_FMT_YUV420P) { static void decode_v1_vector(CinepakEncContext *s, AVPicture *sub_pict, mb_info *mb, strip_info *info)     int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;             sub_pict->data[0][1+  sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size];             sub_pict->data[0][3+  sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size+1];             sub_pict->data[0][1+3*sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size+2];             sub_pict->data[0][3+3*sub_pict->linesize[0]] = info->v1_codebook[mb->v1_vector*entry_size+3];     if(s->pix_fmt == AV_PIX_FMT_YUV420P) {             sub_pict->data[1][1+  sub_pict->linesize[1]] = info->v1_codebook[mb->v1_vector*entry_size+4];             sub_pict->data[2][1+  sub_pict->linesize[2]] = info->v1_codebook[mb->v1_vector*entry_size+5];     if(s->pix_fmt == AV_PIX_FMT_YUV420P) {     int entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;
static void FUNC_0(CinepakEncContext *VAR_0, AVPicture *VAR_1, mb_info *VAR_2, strip_info *VAR_3)

{

    int VAR_4 = VAR_0->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;



    VAR_1->data[0][0] =

            VAR_1->data[0][1] =

            VAR_1->data[0][    VAR_1->linesize[0]] =

            VAR_1->data[0][1+  VAR_1->linesize[0]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4];



    VAR_1->data[0][2] =

            VAR_1->data[0][3] =

            VAR_1->data[0][2+  VAR_1->linesize[0]] =

            VAR_1->data[0][3+  VAR_1->linesize[0]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+1];



    VAR_1->data[0][2*VAR_1->linesize[0]] =

            VAR_1->data[0][1+2*VAR_1->linesize[0]] =

            VAR_1->data[0][  3*VAR_1->linesize[0]] =

            VAR_1->data[0][1+3*VAR_1->linesize[0]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+2];



    VAR_1->data[0][2+2*VAR_1->linesize[0]] =

            VAR_1->data[0][3+2*VAR_1->linesize[0]] =

            VAR_1->data[0][2+3*VAR_1->linesize[0]] =

            VAR_1->data[0][3+3*VAR_1->linesize[0]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+3];



    if(VAR_0->pix_fmt == AV_PIX_FMT_YUV420P) {

        VAR_1->data[1][0] =

            VAR_1->data[1][1] =

            VAR_1->data[1][    VAR_1->linesize[1]] =

            VAR_1->data[1][1+  VAR_1->linesize[1]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+4];



        VAR_1->data[2][0] =

            VAR_1->data[2][1] =

            VAR_1->data[2][    VAR_1->linesize[2]] =

            VAR_1->data[2][1+  VAR_1->linesize[2]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+5];

    }

}

static void FUNC_0(CinepakEncContext *VAR_0, AVPicture *VAR_1, mb_info *VAR_2, strip_info *VAR_3)
{ int VAR_4 = VAR_0->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4; VAR_1->data[0][0] =
VAR_1->data[0][1] =
VAR_1->data[0][    VAR_1->linesize[0]] =
VAR_1->data[0][1+  VAR_1->linesize[0]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4]; VAR_1->data[0][2] =
VAR_1->data[0][3] =
VAR_1->data[0][2+  VAR_1->linesize[0]] =
VAR_1->data[0][3+  VAR_1->linesize[0]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+1]; VAR_1->data[0][2*VAR_1->linesize[0]] =
VAR_1->data[0][1+2*VAR_1->linesize[0]] =
VAR_1->data[0][  3*VAR_1->linesize[0]] =
VAR_1->data[0][1+3*VAR_1->linesize[0]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+2]; VAR_1->data[0][2+2*VAR_1->linesize[0]] =
VAR_1->data[0][3+2*VAR_1->linesize[0]] =
VAR_1->data[0][2+3*VAR_1->linesize[0]] =
VAR_1->data[0][3+3*VAR_1->linesize[0]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+3]; if(VAR_0->pix_fmt == AV_PIX_FMT_YUV420P) { VAR_1->data[1][0] =
VAR_1->data[1][1] =
VAR_1->data[1][    VAR_1->linesize[1]] =
VAR_1->data[1][1+  VAR_1->linesize[1]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+4]; VAR_1->data[2][0] =
VAR_1->data[2][1] =
VAR_1->data[2][    VAR_1->linesize[2]] =
VAR_1->data[2][1+  VAR_1->linesize[2]] = VAR_3->v1_codebook[VAR_2->v1_vector*VAR_4+5]; } }