Page 2 of 2 FirstFirst 12
Results 41 to 42 of 42

Thread: [VB6] AVICap32 Cam Streaming w/o Clipboard

  1. #41
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    733

    Re: [VB6] AVICap32 Cam Streaming w/o Clipboard

    Name:  4.png
Views: 677
Size:  11.9 KB

    Cam can not set bitcount =24.and change the size 640*480!

    callback size=320*240*(16/8) not= 640*480*(24/3)

  2. #42
    Fanatic Member
    Join Date
    Aug 2016
    Posts
    733

    Re: [VB6] AVICap32 Cam Streaming w/o Clipboard

    i find this code
    [CODE
    If SendMessage(hCapWindow, WM_CAP_SET_VIDEOFORMAT, Size, VarPtr(bytCaptureHdr(0))) Then
    'Format accepted. Set up buffers, buffer pointer, initialize
    'and begin decompression if needed.
    ReDim ImageBytes(CaptureBytesExpected - 1)
    DecompressionNeeded = .biCompression <> BI_RGB Or .biBitCount <> 24

    If DecompressionNeeded Then

    With DesiredHdr
    .biSize = Len(DesiredHdr)
    .biWidth = CaptureWidth
    .biHeight = CaptureHeight
    .biPlanes = 1
    .biBitCount = 24
    .biCompression = BI_RGB
    .biSizeImage = CaptureWidth * (.biBitCount \ 8&) * CaptureHeight
    .biXPelsPerMeter = Header.biXPelsPerMeter
    .biYPelsPerMeter = Header.biYPelsPerMeter
    .biClrUsed = 0
    .biClrImportant = 0][/CODE]
    my cam is .biBitCount=16 not 24 ,so is must DecompressionNeeded ! haha.i have find~~ but i don't konw why.good .

Page 2 of 2 FirstFirst 12

Tags for this Thread

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