OSDN Git Service

Adds a new pix fmt function that selects the best dest fmt from among 2 formats to...
authorMatthew Einhorn <moiein2000@gmail.com>
Fri, 26 Aug 2011 17:03:50 +0000 (13:03 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 26 Aug 2011 22:57:46 +0000 (00:57 +0200)
commitadfe59407e46258cec6d082752427e8ae63cf977
tree9ccdab5d544015c77fcbc77615937344d8b42e5f
parent094a4968188b0129d674c1369bad45a86cd0d46d
Adds a new pix fmt function that selects the best dest fmt from among 2 formats to convert to, given a certain src format.

Similar to avcodec_find_best_pix_fmt(), but instead only compares two destination
pix fmts and selects one of these fmts as the best dest format when converting from
a given source format. Also, as opposed to avcodec_find_best_pix_fmt() which supports
only the first 64 defined pixel formats, this supports as input any of the defined
pixel formats.

Also replaces the old function to rely on the new function.

Signed-off-by: Matthew Einhorn <moiein2000@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/avcodec.h
libavcodec/imgconvert.c