Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ISI + camera sensor with JPEG encoder
PostPosted: Mon Feb 20, 2012 3:01 pm 
Offline

Joined: Mon Feb 20, 2012 12:55 pm
Posts: 8
I am trying to grab data from the OV2640 using SAM9G20. When the sensor is configured to produce image in the YUV uncompressed format, ISI captures image correctly.
But this sensor has JPEG encoder and can output compressed data to ISI. The main question is: can ISI capture JPEG-compressed data in principle?

The datasheet of SAM9G20 is very poor in the ISI section, and I can't understand what event will produce "end of capture" interrupt: beginning of next frame (by VSYNC) or the number of pixels stored in memory? Seems to be second, and that's why several JPEG frames will be stored in one with the lost of data in last frame...


Top
 Profile  
 
 Post subject: Re: ISI + camera sensor with JPEG encoder
PostPosted: Fri Mar 23, 2012 1:16 pm 
Offline

Joined: Mon Feb 20, 2012 12:55 pm
Posts: 8
I'll try to put the question more broadly: did anyone try to connect the camera with JPEG output to any of the AT91 chip with ISI module?
Please share your experience


Top
 Profile  
 
 Post subject: Re: ISI + camera sensor with JPEG encoder
PostPosted: Wed Aug 15, 2012 11:59 am 
Offline

Joined: Thu Aug 27, 2009 4:15 pm
Posts: 18
Hi,

I am trying to get a picture ussing the ADV7180 chip with 9g20, but now I am stuck...

the ISI driver gets initialized

Linux video capture interface: v2.00
atmel_isi atmel_isi: Reading configuration
atmel_isi atmel_isi: video buffer: 155648 bytes at ffced000 (phys 21940000)
atmel_isi atmel_isi: video buffer: 155648 bytes at ffd13000 (phys 21980000)
atmel_isi atmel_isi: video buffer: 155648 bytes at ffd39000 (phys 219c0000)
atmel_isi atmel_isi: video buffer: 155648 bytes at ffd5f000 (phys 21b00000)
atmel_isi atmel_isi: capture buffer: 962560 bytes at ffc02000 (phys 0x21a00000)
atmel_isi atmel_isi: Atmel ISI V4L2 device at 0xfffc0000

But if I use the capture app on
http://mirror.egtvedt.no/avr32linux.org ... lIsiDriver

I get

Failed to open video device: Invalid argument
root@OpenWrt:/# Jan 1 00:02:14 OpenWrt user.debug kernel: atmel_isi_capture: unknown ioctl ' error -22

same with ffmpeg:

ffmpeg -s qcif -r 30 -t 20 -pix_fmt yuyv422 -f video4linux2 -i /de
v/video0 temp_vid.avi
[video4linux2 @ 0x2a430]Cannot open video device /dev/video0 : Invalid argument
/dev/video0: I/O error occurred
Usually that means that input file is truncated and/or corrupted.


Can you share your experiance on getting a picture When the sensor is configured to produce image in the YUV uncompressed format?

Thanks,
lhrossouw


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: