mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
YUV 444 411 410 support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10294 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
87c45cd16c
commit
10b139cffb
@ -420,6 +420,12 @@ static int config(struct vf_instance_s* vf,
|
||||
lavc_venc_context->pix_fmt= PIX_FMT_YUV420P;
|
||||
else if(!strcasecmp(lavc_param_format, "422P"))
|
||||
lavc_venc_context->pix_fmt= PIX_FMT_YUV422P;
|
||||
else if(!strcasecmp(lavc_param_format, "444P"))
|
||||
lavc_venc_context->pix_fmt= PIX_FMT_YUV444P;
|
||||
else if(!strcasecmp(lavc_param_format, "411P"))
|
||||
lavc_venc_context->pix_fmt= PIX_FMT_YUV411P;
|
||||
else if(!strcasecmp(lavc_param_format, "YVU9"))
|
||||
lavc_venc_context->pix_fmt= PIX_FMT_YUV410P;
|
||||
else{
|
||||
mp_msg(MSGT_MENCODER,MSGL_ERR,"%s is not a supported format\n", lavc_param_format);
|
||||
return 0;
|
||||
@ -504,10 +510,22 @@ static int query_format(struct vf_instance_s* vf, unsigned int fmt){
|
||||
if(!strcasecmp(lavc_param_format, "YV12"))
|
||||
return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
|
||||
break;
|
||||
case IMGFMT_411P:
|
||||
if(!strcasecmp(lavc_param_format, "411P"))
|
||||
return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
|
||||
break;
|
||||
case IMGFMT_422P:
|
||||
if(!strcasecmp(lavc_param_format, "422P"))
|
||||
return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
|
||||
break;
|
||||
case IMGFMT_444P:
|
||||
if(!strcasecmp(lavc_param_format, "444P"))
|
||||
return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
|
||||
break;
|
||||
case IMGFMT_YVU9:
|
||||
if(!strcasecmp(lavc_param_format, "YVU9"))
|
||||
return VFCAP_CSP_SUPPORTED | VFCAP_ACCEPT_STRIDE;
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user