diff options
author | lorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-11 20:28:44 +0000 |
---|---|---|
committer | lorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-11 20:28:44 +0000 |
commit | a5de25b252e5c3aea10417d6454f55af1b6d9a0c (patch) | |
tree | 3508ad41b091d0d18e834c02f58cb58d480c383c /libmpcodecs/ve_raw.c | |
parent | ca77b99b5785eba0ba30c997f7ef14f227635986 (diff) | |
download | mpv-a5de25b252e5c3aea10417d6454f55af1b6d9a0c.tar.bz2 mpv-a5de25b252e5c3aea10417d6454f55af1b6d9a0c.tar.xz |
support format=y8 with -ovc raw
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22976 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/ve_raw.c')
-rw-r--r-- | libmpcodecs/ve_raw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmpcodecs/ve_raw.c b/libmpcodecs/ve_raw.c index ef44155b59..691d1c11d5 100644 --- a/libmpcodecs/ve_raw.c +++ b/libmpcodecs/ve_raw.c @@ -69,6 +69,9 @@ static int set_format(struct vf_instance_s *vf, unsigned int fmt) { case IMGFMT_YUY2: mux_v->bih->biBitCount = 16; break; + case IMGFMT_Y8: + mux_v->bih->biBitCount = 8; + break; default: mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_MPCODECS_OutputWithFourccNotSupported, fmt); mux_v->bih->biCompression = 0; @@ -111,6 +114,7 @@ static int query_format(struct vf_instance_s *vf, unsigned int fmt) { case IMGFMT_YUY2: case IMGFMT_YVU9: case IMGFMT_IF09: + case IMGFMT_Y8: return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW; } |