static int ipvideo_decode_block_opcode_0xD(IpvideoContext *s, AVFrame *frame)
{
    int y;
    unsigned char P[2];
    /* 4-color block encoding: each 4x4 block is a different color */
    for (y = 0; y < 8; y++) {
        if (!(y & 3)) {
            P[0] = bytestream2_get_byte(&s->stream_ptr);
            P[1] = bytestream2_get_byte(&s->stream_ptr);
        memset(s->pixel_ptr,     P[0], 4);
        memset(s->pixel_ptr + 4, P[1], 4);
        s->pixel_ptr += s->stride;
    /* report success */
    return 0;
static int ipvideo_decode_block_opcode_0xD(IpvideoContext *s, AVFrame *frame)
{
    int y;
    unsigned char P[2];
    
    for (y = 0; y < 8; y++) {
        if (!(y & 3)) {
            P[0] = bytestream2_get_byte(&s->stream_ptr);
            P[1] = bytestream2_get_byte(&s->stream_ptr);
        memset(s->pixel_ptr,     P[0], 4);
        memset(s->pixel_ptr + 4, P[1], 4);
        s->pixel_ptr += s->stride;
    
    return 0;
static int FUNC_0(IpvideoContext *VAR_0, AVFrame *VAR_1)
{
    int VAR_2;
    unsigned char VAR_3[2];
    
    for (VAR_2 = 0; VAR_2 < 8; VAR_2++) {
        if (!(VAR_2 & 3)) {
            VAR_3[0] = bytestream2_get_byte(&VAR_0->stream_ptr);
            VAR_3[1] = bytestream2_get_byte(&VAR_0->stream_ptr);
        memset(VAR_0->pixel_ptr,     VAR_3[0], 4);
        memset(VAR_0->pixel_ptr + 4, VAR_3[1], 4);
        VAR_0->pixel_ptr += VAR_0->stride;
    
    return 0;
static int FUNC_0(IpvideoContext *VAR_0, AVFrame *VAR_1)
{ int VAR_2; unsigned char VAR_3[2]; for (VAR_2 = 0; VAR_2 < 8; VAR_2++) { if (!(VAR_2 & 3)) { VAR_3[0] = bytestream2_get_byte(&VAR_0->stream_ptr); VAR_3[1] = bytestream2_get_byte(&VAR_0->stream_ptr); memset(VAR_0->pixel_ptr,     VAR_3[0], 4); memset(VAR_0->pixel_ptr + 4, VAR_3[1], 4); VAR_0->pixel_ptr += VAR_0->stride; return 0;