I am having problem with my C1+ jpeg encoder.
I have followed the Luis's tutorial http://blog.luisdearquer.net/index.php/ ... roid-c1c1/
and encoding single image works fine. The problem is when I try to encode multiple images in loop, after 3 or 4 images in resolution 960x600 the encoder stops (The stage newer becomes ENCODER_DONE).
I have tried to use:
Code: Select all
ioctl(fd, JPEGENC_IOC_FLUSH_CACHE, addrInfo)
ioctl(fd, JPEGENC_IOC_FLUSH_DMA, addrInfo)
Ehen I try to again init the device, the program frezes the odroid.
At the moment i am closing file descriptor and reopen it every image. It works, however re-opening fd takes too much time to get framerate > 20 fps.
I am working under Arch linux, on Ubyntu have same problem.
I am not interested with h264 encoding, only mjpeg.