void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch)
{
    int             x, y;
    const int16_t   *src  = plane->bands[0].buf;
    uint32_t        pitch = plane->bands[0].pitch;
    for (y = 0; y < plane->height; y++) {
        for (x = 0; x < plane->width; x++)
            dst[x] = av_clip_uint8(src[x] + 128);
        src += pitch;
        dst += dst_pitch;
    }
}
void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch)
{
    int             x, y;
    const int16_t   *src  = plane->bands[0].buf;
    uint32_t        pitch = plane->bands[0].pitch;
    for (y = 0; y < plane->height; y++) {
        for (x = 0; x < plane->width; x++)
            dst[x] = av_clip_uint8(src[x] + 128);
        src += pitch;
        dst += dst_pitch;
    }
}
void FUNC_0(IVIPlaneDesc *VAR_0, uint8_t *VAR_1, int VAR_2)
{
    int             VAR_3, VAR_4;
    const int16_t   *VAR_5  = VAR_0->bands[0].buf;
    uint32_t        pitch = VAR_0->bands[0].pitch;
    for (VAR_4 = 0; VAR_4 < VAR_0->height; VAR_4++) {
        for (VAR_3 = 0; VAR_3 < VAR_0->width; VAR_3++)
            VAR_1[VAR_3] = av_clip_uint8(VAR_5[VAR_3] + 128);
        VAR_5 += pitch;
        VAR_1 += VAR_2;
    }
}
void FUNC_0(IVIPlaneDesc *VAR_0, uint8_t *VAR_1, int VAR_2)
{ int             VAR_3, VAR_4; const int16_t   *VAR_5  = VAR_0->bands[0].buf; uint32_t        pitch = VAR_0->bands[0].pitch; for (VAR_4 = 0; VAR_4 < VAR_0->height; VAR_4++) { for (VAR_3 = 0; VAR_3 < VAR_0->width; VAR_3++) VAR_1[VAR_3] = av_clip_uint8(VAR_5[VAR_3] + 128); VAR_5 += pitch; VAR_1 += VAR_2; } }