PDA

View Full Version : [LINUX/MAC/WINDOWS] Adjustable luma/chroma scaling in GL shader?


tomtom
2009-06-17, 16:18
Hello,

Would it be possible to add adjustable luma/chroma scaling in the GL shader? I mean something like option "-vo gl:yuv=2:lscale=5:cscale=5:filter-strength=<value>" in mplayer. I am using this in mplayer as a simple "sharpening postprocessing" and since it is done by the driver/GPU it has low performance impact. In my case the typical scenario is when viewing low res video but could be used to soften as well.

Also it seems that since the shaders are already used in XBMC the code change might be just minor (just my guess).

It may also satisfy some of the users asking for any postprocessing. Alternatively expose the option to load custom fragment programs (like the option customprog in mplayer)?