News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

Webcam Access

Started by monkeybot, July 20, 2014, 12:12:22 PM

Previous topic - Next topic

monkeybot

I am messing around with the webcam through the windows API,i am getting the image pointer and transfering the buffer to another image.
The image is 32bit so i am using peekint and pokeint,it's all working fine but when i use an & mask of $00ff0000 or similar  i cant just pull a single RGB colour out.

Anyone have any ideas why this isn't working,surely it should?(or not)

kevin


Even if both buffer are 32bit, there's no guarantee the pixel formats (ARGB, RGBA, etc ) will be the same.   

some code to look at would be a little more useful.



monkeybot

ahha! i have cracked it,got the  processor running properly whacked it through PB2DLL and now it processes in real time,bloody ace!!

PB2DLL rocks!!
:)

kevin


Sounds like fun...  If the buffers are the same pixel format then copymemory is probably a faster option to the Peek/Poke loop. 

monkeybot

doing realtime processing using a DLL created with PB2DLL

kevin