static void get_sub_picture(CinepakEncContext *s, int x, int y, AVPicture *in, AVPicture *out)

{

    out->data[0] = in->data[0] + x + y * in->linesize[0];

    out->linesize[0] = in->linesize[0];



    if(s->pix_fmt == AV_PIX_FMT_YUV420P) {

        out->data[1] = in->data[1] + (x >> 1) + (y >> 1) * in->linesize[1];

        out->linesize[1] = in->linesize[1];



        out->data[2] = in->data[2] + (x >> 1) + (y >> 1) * in->linesize[2];

        out->linesize[2] = in->linesize[2];

    }

}

static void get_sub_picture(CinepakEncContext *s, int x, int y, AVPicture *in, AVPicture *out)

{

    out->data[0] = in->data[0] + x + y * in->linesize[0];

    out->linesize[0] = in->linesize[0];



    if(s->pix_fmt == AV_PIX_FMT_YUV420P) {

        out->data[1] = in->data[1] + (x >> 1) + (y >> 1) * in->linesize[1];

        out->linesize[1] = in->linesize[1];



        out->data[2] = in->data[2] + (x >> 1) + (y >> 1) * in->linesize[2];

        out->linesize[2] = in->linesize[2];

    }

}

    if(s->pix_fmt == AV_PIX_FMT_YUV420P) {     if(s->pix_fmt == AV_PIX_FMT_YUV420P) {     if(s->pix_fmt == AV_PIX_FMT_YUV420P) {     if(s->pix_fmt == AV_PIX_FMT_YUV420P) {
static void FUNC_0(CinepakEncContext *VAR_0, int VAR_1, int VAR_2, AVPicture *VAR_3, AVPicture *VAR_4)

{

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

    VAR_4->linesize[0] = VAR_3->linesize[0];



    if(VAR_0->pix_fmt == AV_PIX_FMT_YUV420P) {

        VAR_4->data[1] = VAR_3->data[1] + (VAR_1 >> 1) + (VAR_2 >> 1) * VAR_3->linesize[1];

        VAR_4->linesize[1] = VAR_3->linesize[1];



        VAR_4->data[2] = VAR_3->data[2] + (VAR_1 >> 1) + (VAR_2 >> 1) * VAR_3->linesize[2];

        VAR_4->linesize[2] = VAR_3->linesize[2];

    }

}

static void FUNC_0(CinepakEncContext *VAR_0, int VAR_1, int VAR_2, AVPicture *VAR_3, AVPicture *VAR_4)
{ VAR_4->data[0] = VAR_3->data[0] + VAR_1 + VAR_2 * VAR_3->linesize[0]; VAR_4->linesize[0] = VAR_3->linesize[0]; if(VAR_0->pix_fmt == AV_PIX_FMT_YUV420P) { VAR_4->data[1] = VAR_3->data[1] + (VAR_1 >> 1) + (VAR_2 >> 1) * VAR_3->linesize[1]; VAR_4->linesize[1] = VAR_3->linesize[1]; VAR_4->data[2] = VAR_3->data[2] + (VAR_1 >> 1) + (VAR_2 >> 1) * VAR_3->linesize[2]; VAR_4->linesize[2] = VAR_3->linesize[2]; } }