static int ipvideo_decode_block_opcode_0xF(IpvideoContext *s)

{

    int x, y;

    unsigned char sample[2];



    /* dithered encoding */

    CHECK_STREAM_PTR(2);

    sample[0] = *s->stream_ptr++;

    sample[1] = *s->stream_ptr++;



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

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

            *s->pixel_ptr++ = sample[  y & 1 ];

            *s->pixel_ptr++ = sample[!(y & 1)];

        }

        s->pixel_ptr += s->line_inc;

    }



    /* report success */

    return 0;

}

static int ipvideo_decode_block_opcode_0xF(IpvideoContext *s)

{

    int x, y;

    unsigned char sample[2];



    

    CHECK_STREAM_PTR(2);

    sample[0] = *s->stream_ptr++;

    sample[1] = *s->stream_ptr++;



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

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

            *s->pixel_ptr++ = sample[  y & 1 ];

            *s->pixel_ptr++ = sample[!(y & 1)];

        }

        s->pixel_ptr += s->line_inc;

    }



    

    return 0;

}

static int FUNC_0(IpvideoContext *VAR_0)

{

    int VAR_1, VAR_2;

    unsigned char VAR_3[2];



    

    CHECK_STREAM_PTR(2);

    VAR_3[0] = *VAR_0->stream_ptr++;

    VAR_3[1] = *VAR_0->stream_ptr++;



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

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

            *VAR_0->pixel_ptr++ = VAR_3[  VAR_2 & 1 ];

            *VAR_0->pixel_ptr++ = VAR_3[!(VAR_2 & 1)];

        }

        VAR_0->pixel_ptr += VAR_0->line_inc;

    }



    

    return 0;

}

static int FUNC_0(IpvideoContext *VAR_0)
{ int VAR_1, VAR_2; unsigned char VAR_3[2]; CHECK_STREAM_PTR(2); VAR_3[0] = *VAR_0->stream_ptr++; VAR_3[1] = *VAR_0->stream_ptr++; for (VAR_2 = 0; VAR_2 < 8; VAR_2++) { for (VAR_1 = 0; VAR_1 < 8; VAR_1 += 2) { *VAR_0->pixel_ptr++ = VAR_3[  VAR_2 & 1 ]; *VAR_0->pixel_ptr++ = VAR_3[!(VAR_2 & 1)]; } VAR_0->pixel_ptr += VAR_0->line_inc; } return 0; }