img_format: do not mark hwaccel formats as planar yuv formats
video: print filter chain in verbose mode

Somewhat useful to see where filters are auto-inserted and which formats
they take.
vo_corevideo: make compile with recent changes

Width and height were removed from mp_image. Use w and h instead.
vo_sdl: request "desktop" fullscreen mode if -vm is not used

This is a lot cleaner than our current workaround that first queries the
desktop resolution.
vo_sdl: I think the XVidmode hack is no longer needed

I can no longer reproduce the XVidmode related hang.
vo_opengl_old: add missing include statement

<ctype.h> is needed at least for isalnum(). Most time this worked,
because some ffmpeg or Libav versions recursively include this header
from libavutil/common.h. Fix it so it always works.
Silence two compiler warnings

Both should be harmless.
osxbundle: add header padding to the binary

This avoids install_name_tool to run out of header space when changing the
paths to the dylibs.
input: enqueue commands to the end of the queue

`mp_input_queue_cmd` erroneusly added commands to the head of the queue
resulting in LIFO behaviour instead of the intended FIFO.
osxbundle: cocoa_common: change playlist on fileopen events

When opening new files in Finder when `mpv` is running from an application
bundle, the new files will now replace the current playlist.

Fixes #14
manpage: fix places that still treat FourCCs and pixel formats equal

The video filter chain traditionally used FourCCs for pixel formats.
This was recently changed, but some parts of the manpage were not
updated properly. Now there are two rypes of options: some which take
a FourCC (as used with raw video formats), and some which take a
symbolic format identifier (as used in the video filter chain).

I realize that it's harder to specify FourCC for RGB formats now (TV
stuff may need RGB). They use non-printable characters as part of the
FourCC, and have to be specified as hexadecimal numbers (instead of
a symbolic identifier). Because I can't be bothered to find out what
these numbers are for the respective formats, just remove the old
pseudo-FourCCs from the documentation.
options: also accept ffmpeg pixel format names

Options that take pixel format names now also accept ffmpeg names.
mpv internal names are preferred. We leave this undocumented
intentionally, and may be removed once libswscale stops printing
ffmpeg pixel format names to the terminal (or if we stop passing the
SWS_PRINT_INFO flag to it, which makes it print these).

(We insist on keeping the mpv specific names instead of dropping them
in favor of ffmpeg's name due to NIH, and also because ffmpeg always
appends the endian suffixes "le" and "be".)
vf_format: fix forcing output format

This failed with an assert, because the format of the format of the
output image was not set correctly.
encoding-example-profiles: typo fixes

The iPhone profiles recursively included themselves. Wonder why it even
worked somewhat...
core: make gapless-audio also apply to format changes within a file

Format changes within a file can e.g. happen in MPEG-TS streams. This
fix also fixes encoding of such files, because ao_lavc is not capable of
reconfiguring the audio stream.
video: reset filters on seek

Drop queued frames on seek. Reset the internal state of some filters
that seem to need it as well: at least vf_divtc still produced some
frames using the previous PTS.

This fixes weird behavior with some filters on seeking. In particular,
this could lead to A/V desync or apparent lockups due to the PTS of
filtered frames being too far away from audio PTS.

This commit does only the minimally required work to fix these PTS
related issues. Some filters have state dependent on previously filtered
frames, and these are not automatically reset with this commit (even
vf_divtc and vf_softpulldown reset the PTS info only). Filters that
actually require a full reset can implement VFCTRL_SEEK_RESET.
ao_coreaudio: use 0 as timeout for CFRunLoopRunInMode

Handle all pending events and exit instead of waiting. When there are lots of
input events (for example, scrolling with trackpad), timeout can add up
to make a huge frame delay. In my tests, if I scroll fast enough, that loop
would never exit.
cocoa_common: handle all pending events instead of just one
cocoa_common: improved trackpad scrolling
video: move handling of -x/-y/-xy options to VO

Now the calculations of the final display size are done after the filter
chain. This makes the difference between display aspect ratio and window
size a bit more clear, especially in the -xy case.

With an empty filter chain, the behavior of the options should be the
same, except that they don't affect vo_image and vo_lavc anymore.