How to implement you own custom DirectShow renderer that could work a-la or instead of SampleGrabber?
http://www.gdcl.co.uk/AppFilter.zip