Active Topics

 



Notices


Reply
Thread Tools
Posts: 5 | Thanked: 1 time | Joined on Jan 2010 @ Paris, France
#1
A couple of weeks ago, I started investigating how to capture RAW data from the image sensor. I was nicely pointed to the gst-camera.c example (thanks Abbra).

After being diverted by other activities, I came back to that. The above example actually kind of works now (though I had to change the video source from v4l2src to v4l2camsrc).

So now I believe I can take a RAW picture however when I get to the point of writing the data to a file, I get a "Bad address" error and nothing gets saved. I would even get a seg fault if I tried to access the data. Anyone has an idea about why the pointer would be unreadable/unaccessible ?

For details, the faulty line is around line 303:
written = fwrite (data, size, 1, f);

Besides, the picture size is 864x656 which seems like a weird resolution. Is that something I can change or there's no other resolution available currently in RAW data ?

Thanks,
Chakishante
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:57.