CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    11

    ICM VideoCompressionManager and BITMAIFOHEADER



    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.

  2. #2
    Join Date
    May 1999
    Location
    France
    Posts
    61

    Re: ICM VideoCompressionManager and BITMAIFOHEADER

    Hello,

    For you probleme go to GDI or Bitmap / Palette section on www.codeguru.com you must found.

    I try to write a codec that can be used by mplayer or video programme using MCI ( Video / audio ).

    To you know some think on this.

    A++

    Arnaud Chainard
    At : [email protected]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured