Ah... Look
here . Search for "Applications and Libraries."
You probably would want to use DirectFB, which is a simple way to access the Frame Buffer *hits self on head and says duh* and is suppose to be similar to directx (hence me referring you to sdl, with it being cross platform). It's linux specific and uses v4l which is what I was looking for in the first place.
It also shows Xawtv which may also have some good tools/api's to access your webcam? Dunno if you can program with it, but I've used xawtv for tv-tuner card as well as webcams. Maybe an api for accessing it exists?
Unfortunately the data doesn't come in streams, but rather an area in memory where the pixels are refreshed according to the camera's refresh rate. You may be able to open that part of memory like a file, but who knows what format it will be in, or if the memory is even linear (meaning the camera only uses a part of the whole memory and determining the size is almost impossible, scewing your video line by line across the screen).
That's where SDL, DirectX, DirectFB, and such come in. They do the conversion to what you want for you. Just takes a bit to set them up.
Alter an example and ignore the setup part of the code. Just know you can access that array of bytes in the format you need it.
Yay. DirectFB for the win! Simple way to access the FB of your webcam? Now only if it worked in
lolcode :P
Post back if this helps and if you have any success with it.