[FFmpeg-cvslog] r18152 - in trunk/libavcodec: pixdesc.c pixdesc.h

stefano subversion
Sun Mar 22 22:01:08 CET 2009


Author: stefano
Date: Sun Mar 22 22:01:08 2009
New Revision: 18152

Log:
Export to pixdesc.h the av_pix_fmt_descriptors array.

Modified:
   trunk/libavcodec/pixdesc.c
   trunk/libavcodec/pixdesc.h

Modified: trunk/libavcodec/pixdesc.c
==============================================================================
--- trunk/libavcodec/pixdesc.c	Sun Mar 22 21:19:20 2009	(r18151)
+++ trunk/libavcodec/pixdesc.c	Sun Mar 22 22:01:08 2009	(r18152)
@@ -22,7 +22,7 @@
 #include "libavutil/pixfmt.h"
 #include "pixdesc.h"
 
-static const AVPixFmtDescriptor pix_fmt_desc[PIX_FMT_NB] = {
+const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {
     [PIX_FMT_YUV422P] = {
         .name = "yuv422p",
         .nb_channels  = 3,

Modified: trunk/libavcodec/pixdesc.h
==============================================================================
--- trunk/libavcodec/pixdesc.h	Sun Mar 22 21:19:20 2009	(r18151)
+++ trunk/libavcodec/pixdesc.h	Sun Mar 22 22:01:08 2009	(r18152)
@@ -67,6 +67,10 @@ typedef struct AVPixFmtDescriptor{
 #define PIX_FMT_PAL       2 ///< Pixel format has a palette in data[1], values are indexes in this palette.
 #define PIX_FMT_BITSTREAM 4 ///< All values of a component are bit-wise packed end to end.
 
+/**
+ * The array of all the pixel format descriptors.
+ */
+extern const AVPixFmtDescriptor av_pix_fmt_descriptors[];
 
 static inline void read_line(uint16_t *dst, const uint8_t *data[4], const int linesize[4], AVPixFmtDescriptor *desc, int x, int y, int c, int w)
 {



More information about the ffmpeg-cvslog mailing list