mpv/DOCS
wm4 8751a0e261 video: decouple internal pixel formats from FourCCs
mplayer's video chain traditionally used FourCCs for pixel formats. For
example, it used IMGFMT_YV12 for 4:2:0 YUV, which was defined to the
string 'YV12' interpreted as unsigned int. Additionally, it used to
encode information into the numeric values of some formats. The RGB
formats had their bit depth and endian encoded into the least
significant byte. Extended planar formats (420P10 etc.) had chroma
shift, endian, and component bit depth encoded. (This has been removed
in recent commits.)

Replace the FourCC mess with a simple enum. Remove all the redundant
formats like YV12/I420/IYUV. Replace some image format names by
something more intuitive, most importantly IMGFMT_YV12 -> IMGFMT_420P.

Add img_fourcc.h, which contains the old IDs for code that actually uses
FourCCs. Change the way demuxers, that output raw video, identify the
video format: they set either MP_FOURCC_RAWVIDEO or MP_FOURCC_IMGFMT to
request the rawvideo decoder, and sh_video->imgfmt specifies the pixel
format. Like the previous hack, this is supposed to avoid the need for
a complete codecs.cfg entry per format, or other lookup tables. (Note
that the RGB raw video FourCCs mostly rely on ffmpeg's mappings for NUT
raw video, but this is still considered better than adding a raw video
decoder - even if trivial, it would be full of annoying lookup tables.)

The TV code has not been tested.

Some corrective changes regarding endian and other image format flags
creep in.
2013-01-13 20:04:11 +01:00
..
OUTDATED-tech vf_rectangle: remove as it is very dirty and we have a replacement now 2012-09-18 21:08:20 +02:00
man/en video: decouple internal pixel formats from FourCCs 2013-01-13 20:04:11 +01:00
crosscompile-mingw.txt DOCS: add some basic MinGW cross compilation instructions 2013-01-08 17:21:04 +01:00
edl.rst DOCS: document EDL format 2012-12-28 13:43:59 +01:00
encoding.rst ao_pcm: fix references to -novideo 2012-12-03 21:08:48 +01:00
tech-overview.txt Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00