|
-
Sep 13th, 2016, 03:23 AM
#41
Fanatic Member
Re: [VB6] AVICap32 Cam Streaming w/o Clipboard

Cam can not set bitcount =24.and change the size 640*480!
callback size=320*240*(16/8) not= 640*480*(24/3)
-
Sep 15th, 2016, 02:46 AM
#42
Fanatic Member
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 .
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|