Fix out of bounds writes in vdp_generate_csc_matrix.

Wrong operator order would result in writing to incorrect
locations.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Update README for support for uncompressed data.

This means MPlayer command-line should be changed to
automatically fall back to software decoding.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Add limited support for 4k h264 decoding

This allows decoding up to 3840x2160 frames, but it is too slow
to be useful for watching most 4k videos.
Further disp isn't able to scale down such big pictures properly
at the moment. It could even be a hardware limitation. The Video
Engine can do prescaling while decoding, but VDPAU doesn't provide
mechanisms to properly handle that, as they strictly isolate
decoding and display functions.
Do not abuse stropts.h to get ioctl

stropts.h isn't really used here, but is (ab)used to get the ioctl function.
Correct zooming
Add mpv comandline arguments to README

Also add a note about permissions on /dev/{disp,cedar_dev}
Add hackish support for brightness, contrast and saturation.

Support for hue is there in principle, but would need tweaking,
Due to the very limited range supported by the driver I didn't
manage to do that.
The hardware actually has full support for arbitrary CSC matrices,
but since it is not exposed some hack like this is the best I could
think of.
Patch also fixes vdp_generate_csc_matrix to write the data to
the correct location, previously it would actually write outside
the matrix.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Unify interface to different decoders (now more object-oriented)

This should make it easier to further clean up some of the mess in h264
decoder and add more formats.
Add very basic mp4 decoder

First test version, don't expect it to work with all files. It needs
a lot more testing.
Fix clipping of output_surfaces

If clip_{width,height} are null the whole output_surface has to be shown.
Merge branch 'master' into osd

Conflicts:
	presentation_queue.c
	vdpau_private.h
	video_mixer.c