diff avcodec.h @ 11059:e1bc53867092 libavcodec

Implement av_get_pix_fmt(), and deprecate avcodec_get_pix_fmt().
author stefano
date Sat, 30 Jan 2010 18:50:00 +0000
parents dcb38ea8dad0
children 91b1e4327340
line wrap: on
line diff
--- a/avcodec.h	Sat Jan 30 14:33:25 2010 +0000
+++ b/avcodec.h	Sat Jan 30 18:50:00 2010 +0000
@@ -2995,6 +2995,7 @@
 const char *avcodec_get_pix_fmt_name(enum PixelFormat pix_fmt);
 void avcodec_set_dimensions(AVCodecContext *s, int width, int height);
 
+#if LIBAVCODEC_VERSION_MAJOR < 53
 /**
  * Returns the pixel format corresponding to the name name.
  *
@@ -3005,8 +3006,11 @@
  * then for "gray16le".
  *
  * Finally if no pixel format has been found, returns PIX_FMT_NONE.
+ *
+ * @deprecated Deprecated in favor of av_get_pix_fmt().
  */
-enum PixelFormat avcodec_get_pix_fmt(const char* name);
+attribute_deprecated enum PixelFormat avcodec_get_pix_fmt(const char* name);
+#endif
 
 /**
  * Returns a value representing the fourCC code associated to the