mirror of
https://github.com/mpv-player/mpv
synced 2025-03-01 20:00:37 +00:00
i420 support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3704 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b764f8e751
commit
cd6136dfeb
@ -109,6 +109,8 @@ int stream_open_tv(stream_t *stream, tvi_handle_t *tvh)
|
||||
|
||||
if (!strcasecmp(tv_param_outfmt, "yv12"))
|
||||
picture_format = IMGFMT_YV12;
|
||||
else if (!strcasecmp(tv_param_outfmt, "i420"))
|
||||
picture_format = IMGFMT_I420;
|
||||
else if (!strcasecmp(tv_param_outfmt, "uyvy"))
|
||||
picture_format = IMGFMT_UYVY;
|
||||
else if (!strcasecmp(tv_param_outfmt, "rgb32"))
|
||||
|
@ -128,6 +128,7 @@ static int format2palette(int format)
|
||||
case IMGFMT_RGB32:
|
||||
return(VIDEO_PALETTE_RGB32);
|
||||
case IMGFMT_YV12:
|
||||
case IMGFMT_I420:
|
||||
return(VIDEO_PALETTE_YUV420P);
|
||||
case IMGFMT_UYVY:
|
||||
return(VIDEO_PALETTE_YUV422);
|
||||
|
Loading…
Reference in New Issue
Block a user