c# - IVMRMixerControl9 not implemented on Video Mixing Renderer 9 -
i trying extract ivmrmixercontrol9
video mixing renderer 9, com based direct show filter doesn't list interface implemented, , can't queryinterface
it. trying set enable "yuv mixing mode", presumably using ivmrmixercontrol9::setmixingprefs
method.
why msdn documentation list vmr9 implementing ivmrmixercontrol9
, can't extract interface? have checked on windows xp , windows 7, no luck.
var vmr9 = new videomixingrenderer9() ibasefilter; // null. c# equivalent of queryinterface var mixercontrol = vmr9 ivmrmixercontrol9;
here image of setting trying enable.
too early, mixer loaded on demand. or, can force explicit setnumberofstreams
call.
ibasefilter basefilter = new videomixingrenderer9() ibasefilter; ivmrfilterconfig9 vmrfilterconfig = basefilter ivmrfilterconfig9; vmrfilterconfig.setnumberofstreams(1); ivmrmixercontrol9 vmrmixercontrol = basefilter ivmrmixercontrol9; debug.assert(vmrmixercontrol != null);
Comments
Post a Comment