static int check_image_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt,

                                const int linesizes[4])

{

    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);

    int i;



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

        int plane = desc->comp[i].plane;

        if (!data[plane] || !linesizes[plane])

            return 0;

    }



    return 1;

}

static int check_image_pointers(uint8_t *data[4], enum AVPixelFormat pix_fmt,

                                const int linesizes[4])

{

    const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);

    int i;



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

        int plane = desc->comp[i].plane;

        if (!data[plane] || !linesizes[plane])

            return 0;

    }



    return 1;

}

static int FUNC_0(uint8_t *VAR_0[4], enum AVPixelFormat VAR_1,

                                const int VAR_2[4])

{

    const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1);

    int VAR_4;



    for (VAR_4 = 0; VAR_4 < 4; VAR_4++) {

        int VAR_5 = VAR_3->comp[VAR_4].VAR_5;

        if (!VAR_0[VAR_5] || !VAR_2[VAR_5])

            return 0;

    }



    return 1;

}

static int FUNC_0(uint8_t *VAR_0[4], enum AVPixelFormat VAR_1,
const int VAR_2[4])
{ const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1); int VAR_4; for (VAR_4 = 0; VAR_4 < 4; VAR_4++) { int VAR_5 = VAR_3->comp[VAR_4].VAR_5; if (!VAR_0[VAR_5] || !VAR_2[VAR_5])
return 0; } return 1; }