]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commit
Make the pixel formats which were defined as macros:
authorstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 22 Mar 2009 22:50:19 +0000 (22:50 +0000)
committerstefano <stefano@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 22 Mar 2009 22:50:19 +0000 (22:50 +0000)
commit77de018fef1abb77e59942bc1e8dc47a2ed78129
treec5065d64397a8dfb9813f781887dd78caaa5fb20
parentf8dcc6932550194ce2d9e1fddd5f129774ae037e
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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18163 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavcodec/avcodec.h
libavcodec/imgconvert.c
libavutil/avutil.h
libavutil/pixfmt.h