static int delta_decode(uint8_t *dst, const uint8_t *src, int src_size,

                         unsigned val, const int8_t *table)

{

    uint8_t *dst0 = dst;



    while (src_size--) {

        uint8_t d = *src++;

        val = av_clip_uint8(val + table[d & 0xF]);

        *dst++ = val;

        val = av_clip_uint8(val + table[d >> 4]);

        *dst++ = val;

    }



    return dst-dst0;

}

static int delta_decode(uint8_t *dst, const uint8_t *src, int src_size,

                         unsigned val, const int8_t *table)

{

    uint8_t *dst0 = dst;



    while (src_size--) {

        uint8_t d = *src++;

        val = av_clip_uint8(val + table[d & 0xF]);

        *dst++ = val;

        val = av_clip_uint8(val + table[d >> 4]);

        *dst++ = val;

    }



    return dst-dst0;

}

static int FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2,

                         unsigned VAR_3, const int8_t *VAR_4)

{

    uint8_t *dst0 = VAR_0;



    while (VAR_2--) {

        uint8_t d = *VAR_1++;

        VAR_3 = av_clip_uint8(VAR_3 + VAR_4[d & 0xF]);

        *VAR_0++ = VAR_3;

        VAR_3 = av_clip_uint8(VAR_3 + VAR_4[d >> 4]);

        *VAR_0++ = VAR_3;

    }



    return VAR_0-dst0;

}

static int FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2,
unsigned VAR_3, const int8_t *VAR_4)
{ uint8_t *dst0 = VAR_0; while (VAR_2--) { uint8_t d = *VAR_1++; VAR_3 = av_clip_uint8(VAR_3 + VAR_4[d & 0xF]); *VAR_0++ = VAR_3; VAR_3 = av_clip_uint8(VAR_3 + VAR_4[d >> 4]); *VAR_0++ = VAR_3; } return VAR_0-dst0; }