G
Guest
I have a C++ application which does the following:
AM_MEDIA_TYPE l_MediaType;
pGrabber->GetConnectedMediaType(&l_MediaType);
// Get a pointer to the video header.
VIDEOINFOHEADER *pVideoHeader = (VIDEOINFOHEADER*)l_MediaType.pbFormat;
I beleive that in C# l_MediaType.pbFormat corresponds to
l_media_type.formatPtr. How can I convert the IntPtr resulting from there to
a VideoInfoHeader class in C#?
AM_MEDIA_TYPE l_MediaType;
pGrabber->GetConnectedMediaType(&l_MediaType);
// Get a pointer to the video header.
VIDEOINFOHEADER *pVideoHeader = (VIDEOINFOHEADER*)l_MediaType.pbFormat;
I beleive that in C# l_MediaType.pbFormat corresponds to
l_media_type.formatPtr. How can I convert the IntPtr resulting from there to
a VideoInfoHeader class in C#?