colors - converting a stream media type while using IMFSourceReader -


i writing application above camera driver, using imfsourcereader in synchronized way extract imfsamples driver. able config sourcereader media types of each stream , generate sample in 2 video formats camera driver supports, nv12 , yuy2. want video format can display rgb, looking mft can convert these media types, not sure can connect sourcereader, understood media foundation documentation see imfsourcereader can load decoder decoder not converter…

i wondering best way convert video source output media type different media type rgb (beside doing conversion myself), while still using imfsourcereader?

on windows 8 can set mf_source_reader_enable_advanced_video_processing attribute gpu accelerated yuv rgb conversion.

on earlier versions of windows can use dxva2 d3d9 , use idirect3ddevice9::stretchrect() copy between yuv surface rgb surface. conversion during copy, if graphics driver supports this. should call id3d9::checkdeviceformatconversion() check the driver supports color conversion you're doing before relying on though.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -