static int ipvideo_decode_block_opcode_0xC(IpvideoContext *s)

{

    int x, y;



    /* 16-color block encoding: each 2x2 block is a different color */

    CHECK_STREAM_PTR(16);



    for (y = 0; y < 8; y += 2) {

        for (x = 0; x < 8; x += 2) {

            s->pixel_ptr[x                ] =

            s->pixel_ptr[x + 1            ] =

            s->pixel_ptr[x +     s->stride] =

            s->pixel_ptr[x + 1 + s->stride] = *s->stream_ptr++;

        }

        s->pixel_ptr += s->stride * 2;

    }



    /* report success */

    return 0;

}

static int ipvideo_decode_block_opcode_0xC(IpvideoContext *s)

{

    int x, y;



    

    CHECK_STREAM_PTR(16);



    for (y = 0; y < 8; y += 2) {

        for (x = 0; x < 8; x += 2) {

            s->pixel_ptr[x                ] =

            s->pixel_ptr[x + 1            ] =

            s->pixel_ptr[x +     s->stride] =

            s->pixel_ptr[x + 1 + s->stride] = *s->stream_ptr++;

        }

        s->pixel_ptr += s->stride * 2;

    }



    

    return 0;

}

static int FUNC_0(IpvideoContext *VAR_0)

{

    int VAR_1, VAR_2;



    

    CHECK_STREAM_PTR(16);



    for (VAR_2 = 0; VAR_2 < 8; VAR_2 += 2) {

        for (VAR_1 = 0; VAR_1 < 8; VAR_1 += 2) {

            VAR_0->pixel_ptr[VAR_1                ] =

            VAR_0->pixel_ptr[VAR_1 + 1            ] =

            VAR_0->pixel_ptr[VAR_1 +     VAR_0->stride] =

            VAR_0->pixel_ptr[VAR_1 + 1 + VAR_0->stride] = *VAR_0->stream_ptr++;

        }

        VAR_0->pixel_ptr += VAR_0->stride * 2;

    }



    

    return 0;

}

static int FUNC_0(IpvideoContext *VAR_0)
{ int VAR_1, VAR_2; CHECK_STREAM_PTR(16); for (VAR_2 = 0; VAR_2 < 8; VAR_2 += 2) { for (VAR_1 = 0; VAR_1 < 8; VAR_1 += 2) { VAR_0->pixel_ptr[VAR_1                ] =
VAR_0->pixel_ptr[VAR_1 + 1            ] =
VAR_0->pixel_ptr[VAR_1 +     VAR_0->stride] =
VAR_0->pixel_ptr[VAR_1 + 1 + VAR_0->stride] = *VAR_0->stream_ptr++; } VAR_0->pixel_ptr += VAR_0->stride * 2; } return 0; }