View Single Post
Old 8th August 2010, 18:26   #19  |  Link
madshi
Registered Developer
 
Join Date: Sep 2006
Posts: 9,140
Quote:
Originally Posted by nevcairiel View Post
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?
madshi is offline   Reply With Quote