From d3e39813d4771d1b3d9bd27692d412a04d5dfd8c Mon Sep 17 00:00:00 2001 From: stefano Date: Sun, 22 Mar 2009 21:01:08 +0000 Subject: [PATCH] Export to pixdesc.h the av_pix_fmt_descriptors array. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18152 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/pixdesc.c | 2 +- libavcodec/pixdesc.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/pixdesc.c b/libavcodec/pixdesc.c index 5851ab086..7cfc007ca 100644 --- a/libavcodec/pixdesc.c +++ b/libavcodec/pixdesc.c @@ -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, diff --git a/libavcodec/pixdesc.h b/libavcodec/pixdesc.h index edb962fbf..f21d6f075 100644 --- a/libavcodec/pixdesc.h +++ b/libavcodec/pixdesc.h @@ -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) { -- 2.39.2