Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

Output Format of a Video Device

$
0
0

Hello,

I am an absolute beginner in Media Foundation so I have a basic question. I am trying to find out the output format of a video device(my webcam) and print it out on screen. I want to figure out the major type and the subtype. So I want something like{ MFMediaType_Video, MFVideoFormat_RGB32 }.

This is what I have:

BYTE* my_name=NULL;
UINT32 size=0;

//m_ppDevices is a valid video capture device(webcam)	
m_ppDevices->GetBlobSize(MF_DEVSOURCE_ATTRIBUTE_MEDIA_TYPE, &size);	
my_name = new BYTE[size];

m_ppDevices->GetBlob(MF_DEVSOURCE_ATTRIBUTE_MEDIA_TYPE,my_name, size,NULL);

std::cout<<my_name<<std::endl;

This prints out "vids". Which is fine for my "Major Type". I just can't get the subtype. Any help would be appreciated.


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>