i build two camera modules for an android app (old and new api's).
With the old api get 2MP (1080P) and with the new api's 8MP both in 30FPS, but when compressing the YUV Images to JPEG i only get about 1 FPS with new api's and about 3 FPS with the old apis...
I looked in the YuvImage sources and compression is implemented natively. Saving the Jpeg-Array as File is done in Java, but Method Tracing shows, that this isn't really slowing the code, 98% of the time is needed to compress the YuvImage as Jpeg...
Compressing and Saving the JPEG are done in seperate Threads...
How can i speed it up? i need at least a stable Frame Rate of 10-15 FPS.
I cant save it as Video, because i always just need the last 30 secs... If i switch the Video-File during the record, about 3 secs are getting lost...
Aucun commentaire:
Enregistrer un commentaire