diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-22 18:00:18 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-22 18:00:18 +0000 |
commit | 0b56314f50a164ea2625ba8b49328e138a4b2c4e (patch) | |
tree | 0325ff52b4457555a3f2c09d37b81434fbb3e1a4 /dec_video.c | |
parent | e19dbe0bcf8fbf69cec2f7e830eb9567e500d102 (diff) | |
download | mpv-0b56314f50a164ea2625ba8b49328e138a4b2c4e.tar.bz2 mpv-0b56314f50a164ea2625ba8b49328e138a4b2c4e.tar.xz |
hacked support for postprocessing to rawyv12
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3074 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_video.c')
-rw-r--r-- | dec_video.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dec_video.c b/dec_video.c index 4374f8807c..378eb252cc 100644 --- a/dec_video.c +++ b/dec_video.c @@ -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) |