winapi - Controlling the aspect ratio in DirectShow (full screen mode) -
i'm using directshow simple approach (igraphbuilder renderfile) , try control else querying supplemental interfaces.
the option in question aspect ratio. thought maintained default, same program behaves differently on different machines (maybe versions of directx). not huge problem video in window, because can maintain aspect ratio of window myself (based on video size), full-screen mode can not understand how can control.
i found there @ least 2 complex options: vmr video , adding overlay mixer, there known way doing igraphbuilder' renderfile video?
when igraphbuilder::renderfile, internally adds video renderer filter graph. typically vmr-7 video renderer filter:
in windows xp , later, video mixing renderer 7 (vmr-7) default video renderer. called vmr-7 because internally uses directdraw 7.
at point can enumerate graph's filters, locate vmr-7 , use interfaces such ivmraspectratiocontrol specify mode of interest.
Comments
Post a Comment