Quote:
Originally Posted by nevcairiel
Having a VIH2 at the top is rather confusing, because the BMI in the VIH2 can actually grow with extradata. How would you handle this?
|
How big can it grow? As far as I can see, the max size would be "RGBQUAD bmiColors[256]", right? So the problem could be solved like this:
Code:
typedef struct tagOPENVIDEOINFOHEADER {
VIDEOINFOHEADER2 videoInfo2;
RGBQUAD bmiColors[256];
VIDEOPROPS nativeVideoProps;
VIDEOPROPS currentVideoProps;
STEREOLAYOUTPROPS stereoLayoutProps;
UINT reserved[8]; // Set to zero when writing and ignore when reading
} OPENVIDEOINFOHEADER;
Violà, perfect compatability with VIDEOINFOHEADER2. Or am I missing something?