vo_gl: don't accept 9/10-bit formats as input
commit57f48fc1bf96504d169d82d2a27c1f1ad82ca2d1
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 10 May 2011 17:51:39 +0000 (10 17:51 +0000)
committerUoti Urpala <uau@mplayer2.org>
Wed, 29 Jun 2011 07:49:41 +0000 (29 10:49 +0300)
treef3c2359ed018d8f37de6953c42375b16609fc214
parentf293935d39cc3bf5141e3b12c980e6918e78886a
vo_gl: don't accept 9/10-bit formats as input

Make mp_get_chroma_shift() simpler/more generic and add an argument
to get the per-component bit depth.
Use this to check more properly for supported formats in
gl and gl2 vos (only 8 and 16 bit are supported, 9 and 10 are not).

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33452 b3059339-0415-0410-9bf9-f77b7e298cf2
libmpcodecs/img_format.c
libmpcodecs/img_format.h
libmpcodecs/mp_image.c
libmpcodecs/vf_sab.c
libmpcodecs/vf_smartblur.c
libvo/gl_common.c
libvo/vo_gl.c
libvo/vo_gl2.c