mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 20:03:10 +02:00
support format=y8 with -ovc raw
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22976 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ca77b99b57
commit
a5de25b252
@ -69,6 +69,9 @@ static int set_format(struct vf_instance_s *vf, unsigned int fmt) {
|
|||||||
case IMGFMT_YUY2:
|
case IMGFMT_YUY2:
|
||||||
mux_v->bih->biBitCount = 16;
|
mux_v->bih->biBitCount = 16;
|
||||||
break;
|
break;
|
||||||
|
case IMGFMT_Y8:
|
||||||
|
mux_v->bih->biBitCount = 8;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_MPCODECS_OutputWithFourccNotSupported, fmt);
|
mp_msg(MSGT_MENCODER, MSGL_INFO, MSGTR_MPCODECS_OutputWithFourccNotSupported, fmt);
|
||||||
mux_v->bih->biCompression = 0;
|
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_YUY2:
|
||||||
case IMGFMT_YVU9:
|
case IMGFMT_YVU9:
|
||||||
case IMGFMT_IF09:
|
case IMGFMT_IF09:
|
||||||
|
case IMGFMT_Y8:
|
||||||
return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW;
|
return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user