void avcodec_pix_fmt_string (char *buf, int buf_size, int pix_fmt)
{
    PixFmtInfo info= pix_fmt_info[pix_fmt];
    char is_alpha_char= info.is_alpha ? 'y' : 'n';
    if (pix_fmt < 0)
        snprintf (buf, buf_size,
                  "name      " " nb_channels" " depth" " is_alpha"
            );
    else
        snprintf (buf, buf_size,
                  "%-10s" "      %1d     " "   %2d " "     %c   ",
                  info.name,
                  info.nb_channels,
                  info.depth,
                  is_alpha_char
            );
}
['void list_pix_fmts(void)\n{\n    int i;\n    char pix_fmt_str[128];\n    for (i=-1; i < PIX_FMT_NB; i++) {\n        avcodec_pix_fmt_string (pix_fmt_str, sizeof(pix_fmt_str), i);\n        fprintf(stdout, "%s\\n", pix_fmt_str);\n    }\n}', 'void avcodec_pix_fmt_string (char *buf, int buf_size, int pix_fmt)\n{\n    PixFmtInfo info= pix_fmt_info[pix_fmt];\n    char is_alpha_char= info.is_alpha ? \'y\' : \'n\';\n    if (pix_fmt < 0)\n        snprintf (buf, buf_size,\n                  "name      " " nb_channels" " depth" " is_alpha"\n            );\n    else\n        snprintf (buf, buf_size,\n                  "%-10s" "      %1d     " "   %2d " "     %c   ",\n                  info.name,\n                  info.nb_channels,\n                  info.depth,\n                  is_alpha_char\n            );\n}']