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

                                  int pitch, const uint8_t *table)

{

    int j;

    int out = 0;

    int c;

    int t;



    if (width & 1)




    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   -= 0x7F;

                out += c * 2;

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

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

                t        = av_clip_uint8(t);

                dst[out] = t;

                out++;

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

                t        = av_clip_uint8(t);

                dst[out] = t;

                out++;

            }

        }

        dst += pitch;

    }

    return 0;

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

                                  int pitch, const uint8_t *table)

{

    int j;

    int out = 0;

    int c;

    int t;



    if (width & 1)




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

        out = 0;



        while (out < width) {

            c = ir2_get_code(&ctx->gb);

            if (c >= 0x80) { 

                c   -= 0x7F;

                out += c * 2;

            } else { 

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

                t        = av_clip_uint8(t);

                dst[out] = t;

                out++;

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

                t        = av_clip_uint8(t);

                dst[out] = t;

                out++;

            }

        }

        dst += pitch;

    }

    return 0;

}
static int 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;



    if (VAR_1 & 1)




    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   -= 0x7F;

                VAR_7 += VAR_8 * 2;

            } else { 

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

                VAR_9        = av_clip_uint8(VAR_9);

                VAR_3[VAR_7] = VAR_9;

                VAR_7++;

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

                VAR_9        = av_clip_uint8(VAR_9);

                VAR_3[VAR_7] = VAR_9;

                VAR_7++;

            }

        }

        VAR_3 += VAR_4;

    }

    return 0;

}
static int 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; if (VAR_1 & 1)
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   -= 0x7F; VAR_7 += VAR_8 * 2; } else { VAR_9        = VAR_3[VAR_7] + (((VAR_5[VAR_8 * 2] - 128)*3) >> 2); VAR_9        = av_clip_uint8(VAR_9); VAR_3[VAR_7] = VAR_9; VAR_7++; VAR_9        = VAR_3[VAR_7] + (((VAR_5[(VAR_8 * 2) + 1] - 128)*3) >> 2); VAR_9        = av_clip_uint8(VAR_9); VAR_3[VAR_7] = VAR_9; VAR_7++; } } VAR_3 += VAR_4; } return 0; }