# HG changeset patch # User alex # Date 1006452018 0 # Node ID c5cc7f11302a533b4a9c2deffafb1ca1fcf73d64 # Parent 8dbc1954e49b807acad14df6ab2abfc079dc1492 hacked support for postprocessing to rawyv12 diff -r 8dbc1954e49b -r c5cc7f11302a dec_video.c --- a/dec_video.c Thu Nov 22 17:14:26 2001 +0000 +++ b/dec_video.c Thu Nov 22 18:00:18 2001 +0000 @@ -831,6 +831,33 @@ 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)