static void ir2_decode_plane_inter(Ir2Context *ctx, int width, int height, uint8_t *dst, int stride,

                             const uint8_t *table)

{

    int j;

    int out = 0;

    int c;

    int t;

    

    for (j = 0; j < height; j++){

        out = 0;

        while (out < width){

            c = ir2_get_code(&ctx->gb);

            if(c > 0x80) { /* we have a skip */

                c -= 0x80;

                out += c * 2;

            } else { /* add two deltas from table */

                t = dst[out] + (table[c * 2] - 128);

                CLAMP_TO_BYTE(t);

                dst[out] = t;

                out++;

                t = dst[out] + (table[(c * 2) + 1] - 128);

                CLAMP_TO_BYTE(t);

                dst[out] = t;

                out++;

            }

        }

        dst += stride;

    }

}

static void ir2_decode_plane_inter(Ir2Context *ctx, int width, int height, uint8_t *dst, int stride,

                             const uint8_t *table)

{

    int j;

    int out = 0;

    int c;

    int t;

    

    for (j = 0; j < height; j++){

        out = 0;

        while (out < width){

            c = ir2_get_code(&ctx->gb);

            if(c > 0x80) { 

                c -= 0x80;

                out += c * 2;

            } else { 

                t = dst[out] + (table[c * 2] - 128);

                CLAMP_TO_BYTE(t);

                dst[out] = t;

                out++;

                t = dst[out] + (table[(c * 2) + 1] - 128);

                CLAMP_TO_BYTE(t);

                dst[out] = t;

                out++;

            }

        }

        dst += stride;

    }

}

static void ir2_decode_plane_inter(Ir2Context *ctx, int width, int height, uint8_t *dst, int stride,
static void FUNC_0(Ir2Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, int VAR_4,

                             const uint8_t *VAR_5)

{

    int VAR_6;

    int VAR_7 = 0;

    int VAR_8;

    int VAR_9;

    

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

        VAR_7 = 0;

        while (VAR_7 < VAR_1){

            VAR_8 = ir2_get_code(&VAR_0->gb);

            if(VAR_8 > 0x80) { 

                VAR_8 -= 0x80;

                VAR_7 += VAR_8 * 2;

            } else { 

                VAR_9 = VAR_3[VAR_7] + (VAR_5[VAR_8 * 2] - 128);

                CLAMP_TO_BYTE(VAR_9);

                VAR_3[VAR_7] = VAR_9;

                VAR_7++;

                VAR_9 = VAR_3[VAR_7] + (VAR_5[(VAR_8 * 2) + 1] - 128);

                CLAMP_TO_BYTE(VAR_9);

                VAR_3[VAR_7] = VAR_9;

                VAR_7++;

            }

        }

        VAR_3 += VAR_4;

    }

}

static void FUNC_0(Ir2Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, int VAR_4,
const uint8_t *VAR_5)
{ int VAR_6; int VAR_7 = 0; int VAR_8; int VAR_9; for (VAR_6 = 0; VAR_6 < VAR_2; VAR_6++){ VAR_7 = 0; while (VAR_7 < VAR_1){ VAR_8 = ir2_get_code(&VAR_0->gb); if(VAR_8 > 0x80) { VAR_8 -= 0x80; VAR_7 += VAR_8 * 2; } else { VAR_9 = VAR_3[VAR_7] + (VAR_5[VAR_8 * 2] - 128); CLAMP_TO_BYTE(VAR_9); VAR_3[VAR_7] = VAR_9; VAR_7++; VAR_9 = VAR_3[VAR_7] + (VAR_5[(VAR_8 * 2) + 1] - 128); CLAMP_TO_BYTE(VAR_9); VAR_3[VAR_7] = VAR_9; VAR_7++; } } VAR_3 += VAR_4; } }