mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Export to pixdesc.h the av_pix_fmt_descriptors array.
Originally committed as revision 18152 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
02b26d2d5c
commit
d2863e72ab
@ -22,7 +22,7 @@
|
|||||||
#include "libavutil/pixfmt.h"
|
#include "libavutil/pixfmt.h"
|
||||||
#include "pixdesc.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] = {
|
[PIX_FMT_YUV422P] = {
|
||||||
.name = "yuv422p",
|
.name = "yuv422p",
|
||||||
.nb_channels = 3,
|
.nb_channels = 3,
|
||||||
|
@ -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_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.
|
#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)
|
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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user