int sws_isSupportedInput(enum AVPixelFormat pix_fmt)
{
    return (unsigned)pix_fmt < AV_PIX_FMT_NB ?
           format_entries[pix_fmt].is_supported_in : 0;
}
['int show_pix_fmts(void *optctx, const char *opt, const char *arg)\n{\n    const AVPixFmtDescriptor *pix_desc = NULL;\n    printf("Pixel formats:\\n"\n           "I.... = Supported Input  format for conversion\\n"\n           ".O... = Supported Output format for conversion\\n"\n           "..H.. = Hardware accelerated format\\n"\n           "...P. = Paletted format\\n"\n           "....B = Bitstream format\\n"\n           "FLAGS NAME            NB_COMPONENTS BITS_PER_PIXEL\\n"\n           "-----\\n");\n#if !CONFIG_SWSCALE\n#   define sws_isSupportedInput(x)  0\n#   define sws_isSupportedOutput(x) 0\n#endif\n    while ((pix_desc = av_pix_fmt_desc_next(pix_desc))) {\n        enum AVPixelFormat pix_fmt = av_pix_fmt_desc_get_id(pix_desc);\n        printf("%c%c%c%c%c %-16s       %d            %2d\\n",\n               sws_isSupportedInput (pix_fmt)              ? \'I\' : \'.\',\n               sws_isSupportedOutput(pix_fmt)              ? \'O\' : \'.\',\n               pix_desc->flags & AV_PIX_FMT_FLAG_HWACCEL   ? \'H\' : \'.\',\n               pix_desc->flags & AV_PIX_FMT_FLAG_PAL       ? \'P\' : \'.\',\n               pix_desc->flags & AV_PIX_FMT_FLAG_BITSTREAM ? \'B\' : \'.\',\n               pix_desc->name,\n               pix_desc->nb_components,\n               av_get_bits_per_pixel(pix_desc));\n    }\n    return 0;\n}', 'enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc)\n{\n    if (desc < av_pix_fmt_descriptors ||\n        desc >= av_pix_fmt_descriptors + FF_ARRAY_ELEMS(av_pix_fmt_descriptors))\n        return AV_PIX_FMT_NONE;\n    return desc - av_pix_fmt_descriptors;\n}', 'int sws_isSupportedInput(enum AVPixelFormat pix_fmt)\n{\n    return (unsigned)pix_fmt < AV_PIX_FMT_NB ?\n           format_entries[pix_fmt].is_supported_in : 0;\n}']