summaryrefslogtreecommitdiff
path: root/libavcodec/imgconvert.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-12-04 12:56:21 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-12-04 12:56:21 +0000
commitbb4afa13dd3264832bc379bbfefe1db8cf4f0e40 (patch)
tree9ec62bfd5a328dda35f0d6c935aad05da3b924d2 /libavcodec/imgconvert.c
parent4da12e3b13d362e0218956a78dd2b8f7a1260265 (diff)
downloadffmpeg-bb4afa13dd3264832bc379bbfefe1db8cf4f0e40.tar.gz
Deprecate avcodec_pix_fmt_string() in favor of
av_get_pix_fmt_string(), added to libavutil/pixdesc.h. Originally committed as revision 25879 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r--libavcodec/imgconvert.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 879532d8b6..790ce80ac0 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -431,25 +431,12 @@ enum PixelFormat avcodec_get_pix_fmt(const char *name)
{
return av_get_pix_fmt(name);
}
-#endif
void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)
{
- /* print header */
- if (pix_fmt < 0)
- snprintf (buf, buf_size,
- "name " " nb_components" " nb_bits"
- );
- else{
- const AVPixFmtDescriptor *pixdesc = &av_pix_fmt_descriptors[pix_fmt];
- snprintf (buf, buf_size,
- "%-11s %7d %10d",
- pixdesc->name,
- pixdesc->nb_components,
- av_get_bits_per_pixel(pixdesc)
- );
- }
+ av_get_pix_fmt_string(buf, buf_size, pix_fmt);
}
+#endif
int ff_is_hwaccel_pix_fmt(enum PixelFormat pix_fmt)
{