1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00
mpv/etc
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
..
codecs.conf video: decouple internal pixel formats from FourCCs 2013-01-13 20:04:11 +01:00
encoding-example-profiles.conf encoding-example-profiles: restructure iPhone profiles 2013-01-10 11:56:04 +01:00
example.conf video: different way to enable hardware decoding, add software fallback 2013-01-13 17:39:32 +01:00
input.conf Merge branch 'osd_changes' into master 2012-11-01 02:12:47 +01:00
mplayer.ico mplayer 64x64 256color icon 2003-04-20 11:51:04 +00:00
mplayer.xpm Add 32x32 XPM icon as mandated by Debian policy. 2006-04-04 06:48:14 +00:00
mpv-icon-source.svg TOOLS: add script for osx bundle generation 2012-10-16 07:15:12 +02:00