1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-28 19:30:44 +00:00

hacked support for postprocessing to rawyv12

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3074 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-11-22 18:00:18 +00:00
parent e19dbe0bcf
commit 0b56314f50

View File

@ -831,6 +831,33 @@ case 3:
else
planes[1]=NULL;
}
//#define VFM_RAW_POSTPROC
#ifdef VFM_RAW_POSTPROC
if (sh_video->codec->driver == VFM_RAW)
{
mp_dbg(MSGT_DECVIDEO, MSGL_V, "Postprocessing raw %s!\n",
vo_format_name(out_fmt));
switch(out_fmt)
{
case IMGFMT_YV12:
postprocess(planes, stride[0], planes, stride[0],
sh_video->disp_w, sh_video->disp_h, planes[0],
0, /*0x20000*/divx_quality);
break;
// case IMGFMT_UYVY:
// uyvytoyv12(start, planes[0], planes[1], planes[2],
// sh_video->disp_w, sh_video->disp_h, stride[0], stride[1],
// sh_video->disp_w*2);
// postprocess(planes, stride[0], planes, stride[0],
// sh_video->disp_w, sh_video->disp_h, planes[0],
// 0, /*0x20000*/divx_quality);
// break;
default:
mp_dbg(MSGT_DECVIDEO, MSGL_DBG2, "Unsuitable outformat (%s) for raw pp!\n",
vo_format_name(out_fmt));
}
}
#endif
case 2:
#ifdef USE_LIBVO2
if(planar)