int av_image_fill_arrays(uint8_t *dst_data[4], int dst_linesize[4],

                         const uint8_t *src,

                         enum AVPixelFormat pix_fmt, int width, int height, int align)

{

    int ret, i;



    if ((ret = av_image_check_size(width, height, 0, NULL)) < 0)

        return ret;



    if ((ret = av_image_fill_linesizes(dst_linesize, pix_fmt, width)) < 0)

        return ret;



    for (i = 0; i < 4; i++)

        dst_linesize[i] = FFALIGN(dst_linesize[i], align);



    if ((ret = av_image_fill_pointers(dst_data, pix_fmt, width, NULL, dst_linesize)) < 0)

        return ret;



    return av_image_fill_pointers(dst_data, pix_fmt, height, (uint8_t *)src, dst_linesize);

}

int av_image_fill_arrays(uint8_t *dst_data[4], int dst_linesize[4],

                         const uint8_t *src,

                         enum AVPixelFormat pix_fmt, int width, int height, int align)

{

    int ret, i;



    if ((ret = av_image_check_size(width, height, 0, NULL)) < 0)

        return ret;



    if ((ret = av_image_fill_linesizes(dst_linesize, pix_fmt, width)) < 0)

        return ret;



    for (i = 0; i < 4; i++)

        dst_linesize[i] = FFALIGN(dst_linesize[i], align);



    if ((ret = av_image_fill_pointers(dst_data, pix_fmt, width, NULL, dst_linesize)) < 0)

        return ret;



    return av_image_fill_pointers(dst_data, pix_fmt, height, (uint8_t *)src, dst_linesize);

}

int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4],

                         const uint8_t *VAR_2,

                         enum AVPixelFormat VAR_3, int VAR_4, int VAR_5, int VAR_6)

{

    int VAR_7, VAR_8;



    if ((VAR_7 = av_image_check_size(VAR_4, VAR_5, 0, NULL)) < 0)

        return VAR_7;



    if ((VAR_7 = av_image_fill_linesizes(VAR_1, VAR_3, VAR_4)) < 0)

        return VAR_7;



    for (VAR_8 = 0; VAR_8 < 4; VAR_8++)

        VAR_1[VAR_8] = FFALIGN(VAR_1[VAR_8], VAR_6);



    if ((VAR_7 = av_image_fill_pointers(VAR_0, VAR_3, VAR_4, NULL, VAR_1)) < 0)

        return VAR_7;



    return av_image_fill_pointers(VAR_0, VAR_3, VAR_5, (uint8_t *)VAR_2, VAR_1);

}

int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4],
const uint8_t *VAR_2,
enum AVPixelFormat VAR_3, int VAR_4, int VAR_5, int VAR_6)
{ int VAR_7, VAR_8; if ((VAR_7 = av_image_check_size(VAR_4, VAR_5, 0, NULL)) < 0)
return VAR_7; if ((VAR_7 = av_image_fill_linesizes(VAR_1, VAR_3, VAR_4)) < 0)
return VAR_7; for (VAR_8 = 0; VAR_8 < 4; VAR_8++) VAR_1[VAR_8] = FFALIGN(VAR_1[VAR_8], VAR_6); if ((VAR_7 = av_image_fill_pointers(VAR_0, VAR_3, VAR_4, NULL, VAR_1)) < 0)
return VAR_7; return av_image_fill_pointers(VAR_0, VAR_3, VAR_5, (uint8_t *)VAR_2, VAR_1); }