Mercurial > libavutil.hg
comparison avutil.h @ 708:2cd525e90b45 libavutil
Make the pixel formats which were defined as macros:
PIX_FMT_ARGB
PIX_FMT_RGBA
PIX_FMT_ABGR
PIX_FMT_BGRA
defined as enum PixelFormat values, and viceversa make:
PIX_FMT_RGB32
PIX_FMT_RGB32_1
PIX_FMT_BGR32
PIX_FMT_BGR32_1
defined as macros, also resort accordingly the enum PixelFormat
list.
Also make avcodec_get_pix_fmt() recognize the "rgb32" and "bgr32"
aliases, in order to make ffmpeg pass regressions test.
This change breaks ABI backward compatibility.
author | stefano |
---|---|
date | Sun, 22 Mar 2009 22:50:19 +0000 |
parents | 3138bb2c6780 |
children | 2f890bb12bbc |
comparison
equal
deleted
inserted
replaced
707:3138bb2c6780 | 708:2cd525e90b45 |
---|---|
33 #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c) | 33 #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c) |
34 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c | 34 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c |
35 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) | 35 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) |
36 | 36 |
37 #define LIBAVUTIL_VERSION_MAJOR 50 | 37 #define LIBAVUTIL_VERSION_MAJOR 50 |
38 #define LIBAVUTIL_VERSION_MINOR 1 | 38 #define LIBAVUTIL_VERSION_MINOR 2 |
39 #define LIBAVUTIL_VERSION_MICRO 0 | 39 #define LIBAVUTIL_VERSION_MICRO 0 |
40 | 40 |
41 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ | 41 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ |
42 LIBAVUTIL_VERSION_MINOR, \ | 42 LIBAVUTIL_VERSION_MINOR, \ |
43 LIBAVUTIL_VERSION_MICRO) | 43 LIBAVUTIL_VERSION_MICRO) |