c# - How to set IAMStreamConfig file in DirectShowLib -


i using directshowlib in c# xna project show webcam video. have downloaded complete code following link.

https://github.com/iridio/xnadirectshowwebcam

i using logitech 1080p webcam, in program output not getting hd result. google , found various results. many experts saying edit iamstreamconfig method set resolution , frame rate. unable understand how edit it.

kindly guide me.

thanks

aftab

your webcam represented filter in directshow graph, , filter has output pin data flows. output pin represented object ipin interface supports iamstreamconfig interface. in code should enumerate pins of webcam filter, find proper 1 (usually called "capture") , cast interface (c# work of querying com interface you). using interface can enumerate media types camera can provide , after you've found 1 need call setformat select it. more details , code samples in post here.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -