Mercurial > libavcodec.hg
comparison avcodec.h @ 5084:9930b7031cb2 libavcodec
Add support for listing the supported pixel formats using the option
-pix_fmt list
patch by Stefano Sabatini stefano sabatini minus lala chez poste it
original thread: [FFmpeg-devel] [PATCH] List supported pixel formats
date: 05/25/2007 05:46 PM
author | benoit |
---|---|
date | Wed, 30 May 2007 14:20:55 +0000 |
parents | 01a165280429 |
children | 160536e80ee6 |
comparison
equal
deleted
inserted
replaced
5083:ce36118abbbb | 5084:9930b7031cb2 |
---|---|
2613 * @return The best pixel format to convert to or -1 if none was found. | 2613 * @return The best pixel format to convert to or -1 if none was found. |
2614 */ | 2614 */ |
2615 int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt, | 2615 int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt, |
2616 int has_alpha, int *loss_ptr); | 2616 int has_alpha, int *loss_ptr); |
2617 | 2617 |
2618 | |
2619 /** | |
2620 * Print in buf the string corresponding to the pixel format with | |
2621 * number pix_fmt, or an header if pix_fmt is negative. | |
2622 * | |
2623 * @param buf[in] the buffer where to write the string | |
2624 * @param buf_size[in] the size of buf | |
2625 * @param pix_fmt[in] the number of the pixel format to print the corresponding info string, or | |
2626 * a negative value to print the corresponding header. | |
2627 * Meaningful values for obtaining a pixel format info vary from 0 to PIX_FMT_NB -1. | |
2628 */ | |
2629 void avcodec_pix_fmt_string (char *buf, int buf_size, int pix_fmt); | |
2630 | |
2618 #define FF_ALPHA_TRANSP 0x0001 /* image has some totally transparent pixels */ | 2631 #define FF_ALPHA_TRANSP 0x0001 /* image has some totally transparent pixels */ |
2619 #define FF_ALPHA_SEMI_TRANSP 0x0002 /* image has some transparent pixels */ | 2632 #define FF_ALPHA_SEMI_TRANSP 0x0002 /* image has some transparent pixels */ |
2620 | 2633 |
2621 /** | 2634 /** |
2622 * Tell if an image really has transparent alpha values. | 2635 * Tell if an image really has transparent alpha values. |