m = 0;
n = 0;
for (i = 0; i < 272; i++)
{
memcpy(&vram[n],&framebuffer[m],1920);
m += 480;
n += 512;
}
leads to the said 80243905 error code from sceUsbCamSetupStill(&stillparam); when trying to take a still (r-button press).
Anyway...i was taking a look at pspusbcam.h; the functions exported by usbcam module resemble those of any mobile phone's camera. I argue that this is not an application library, but something exported directly by camera hardware. So the question is: is it possible to obtain raw (uncompressed) data from go!cam?
...as i said the example is exactly the same you can find here(http://forums.ps2dev.org/viewtopic.php?t=7074&start=0) except for the changes i pointed out. Doesn't seem to be a simple param formatting issue....maybe i'm an idiot and i caused memory corruption with my frame copy code, but i can't see any problem in that simple snippet; and video goes nicely until i try to stop it and take a still....
Which is the size of the image you try to get? Maybe if it is too high, you should decrease the video frame rate (or the size of the image to keep the frame rate)
this works for video until i stop it to take a still...i was wandering if it's a timing issue (i.e. when i'm stopping video there's still data to get before getting done) and then i'm trying inserting pauses...too bad, i would like to acquire as much data as possible as fast as i can...
Which is the size of the image you try to get? Maybe if it is too high, you should decrease the video frame rate (or the size of the image to keep the frame rate)
...uhm...ok, but i thought the two things were unconnected... i mean: i have to stop video to take a still; does one thing influence the other?
I looked at the usbcam.prx and it seems that the still resolution and video are linked. That is if you set a still image resolution higher than 1024x768, you have to decrease the video framerate to 15 FPS. Ask Sony why, but it seems like they're have been taking some design shortcuts recently :)
As for the RAW, well, we would need to get a camera firmware first...