static void decode_v4_vector(CinepakEncContext *s, AVPicture *sub_pict, int *v4_vector, strip_info *info)

{

    int i, x, y, entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;



    for(i = y = 0; y < 4; y += 2) {

        for(x = 0; x < 4; x += 2, i++) {

            sub_pict->data[0][x   +     y*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size];

            sub_pict->data[0][x+1 +     y*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size+1];

            sub_pict->data[0][x   + (y+1)*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size+2];

            sub_pict->data[0][x+1 + (y+1)*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size+3];



            if(s->pix_fmt == AV_PIX_FMT_YUV420P) {

                sub_pict->data[1][(x>>1) + (y>>1)*sub_pict->linesize[1]] = info->v4_codebook[v4_vector[i]*entry_size+4];

                sub_pict->data[2][(x>>1) + (y>>1)*sub_pict->linesize[2]] = info->v4_codebook[v4_vector[i]*entry_size+5];

            }

        }

    }

}

static void decode_v4_vector(CinepakEncContext *s, AVPicture *sub_pict, int *v4_vector, strip_info *info)

{

    int i, x, y, entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;



    for(i = y = 0; y < 4; y += 2) {

        for(x = 0; x < 4; x += 2, i++) {

            sub_pict->data[0][x   +     y*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size];

            sub_pict->data[0][x+1 +     y*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size+1];

            sub_pict->data[0][x   + (y+1)*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size+2];

            sub_pict->data[0][x+1 + (y+1)*sub_pict->linesize[0]] = info->v4_codebook[v4_vector[i]*entry_size+3];



            if(s->pix_fmt == AV_PIX_FMT_YUV420P) {

                sub_pict->data[1][(x>>1) + (y>>1)*sub_pict->linesize[1]] = info->v4_codebook[v4_vector[i]*entry_size+4];

                sub_pict->data[2][(x>>1) + (y>>1)*sub_pict->linesize[2]] = info->v4_codebook[v4_vector[i]*entry_size+5];

            }

        }

    }

}

    int i, x, y, entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;             if(s->pix_fmt == AV_PIX_FMT_YUV420P) {
static void FUNC_0(CinepakEncContext *VAR_0, AVPicture *VAR_1, int *VAR_2, strip_info *VAR_3)

{

    int VAR_4, VAR_5, VAR_6, VAR_7 = VAR_0->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4;



    for(VAR_4 = VAR_6 = 0; VAR_6 < 4; VAR_6 += 2) {

        for(VAR_5 = 0; VAR_5 < 4; VAR_5 += 2, VAR_4++) {

            VAR_1->data[0][VAR_5   +     VAR_6*VAR_1->linesize[0]] = VAR_3->v4_codebook[VAR_2[VAR_4]*VAR_7];

            VAR_1->data[0][VAR_5+1 +     VAR_6*VAR_1->linesize[0]] = VAR_3->v4_codebook[VAR_2[VAR_4]*VAR_7+1];

            VAR_1->data[0][VAR_5   + (VAR_6+1)*VAR_1->linesize[0]] = VAR_3->v4_codebook[VAR_2[VAR_4]*VAR_7+2];

            VAR_1->data[0][VAR_5+1 + (VAR_6+1)*VAR_1->linesize[0]] = VAR_3->v4_codebook[VAR_2[VAR_4]*VAR_7+3];



            if(VAR_0->pix_fmt == AV_PIX_FMT_YUV420P) {

                VAR_1->data[1][(VAR_5>>1) + (VAR_6>>1)*VAR_1->linesize[1]] = VAR_3->v4_codebook[VAR_2[VAR_4]*VAR_7+4];

                VAR_1->data[2][(VAR_5>>1) + (VAR_6>>1)*VAR_1->linesize[2]] = VAR_3->v4_codebook[VAR_2[VAR_4]*VAR_7+5];

            }

        }

    }

}

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