Hello,

Trying to access the Video Compression Manager in Video For Windows

and take advantage of the provided codec drivers msh261.drv and msh263.drv

Unfortunatelly I cannot find a bitmap that they would support.

Can anyone fill the provided BITMAPINFOHEADER so that these two fellows will

tolerate. The other codecs i.e MPEG4 are glad to compress the following bitmap, but h261 and h263 are not(!).

COMPVARS cmp;

memset((void*)&cmp, 0, sizeof(cmp));

cmp.cbSize = sizeof(cmp);

BITMAPINFOHEADER bih;

bih.biSize = sizeof(BITMAPINFOHEADER);

bih.biPlanes = 1;

bih.biBitCount = 24;

bih.biClrImportant = 0;

bih.biClrUsed = 0;

bih.biCompression = BI_RGB;

bih.biHeight = 64;

bih.biWidth = 64;

bih.biSizeImage = 0; //bih.biWidth * bih.biHeight * bih.biBitCount / 8;

bih.biXPelsPerMeter = 80;

bih.biYPelsPerMeter = 80;

BOOL res = ICCompressorChoose( this->m_hWnd,

ICMF_CHOOSE_DATARATE | ICMF_CHOOSE_KEYFRAME,

(LPVOID)&bih, NULL, (PCOMPVARS)&cmp, "Choose" );

best regards, thank you in advance

Remek Zajac

Final(5th) year ComputerScience Tech Uni Wroclaw/Poland.