Android: fixed image capture preview.
authorYoann Lopes <yoann.lopes@digia.com>
Fri, 27 Sep 2013 16:20:15 +0000 (18:20 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 1 Oct 2013 15:26:31 +0000 (17:26 +0200)
commit28df116570a1359585a314df17223a7b0e6b04c0
treeb59c62b7ef35d6a7219210cda0e94871b75a04da
parentbe7a6241e77f67e4a19c63ac5683dd7fa566e9d2
Android: fixed image capture preview.

We used to generate the capture preview from the video output, grabbing
the pixels of the last frame (in a FBO). This is not possible anymore,
we instead query the camera for a preview frame, which is in the NV21
format and needs to be converted to RGB.

Change-Id: I1c728b3a708a6f052a83aebf9f15f511eab7a02f
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/android/jar/src/org/qtproject/qt5/android/multimedia/QtCamera.java
src/plugins/android/src/common/qandroidmultimediautils.cpp
src/plugins/android/src/common/qandroidmultimediautils.h
src/plugins/android/src/common/qandroidvideooutput.h
src/plugins/android/src/common/qandroidvideorendercontrol.cpp
src/plugins/android/src/common/qandroidvideorendercontrol.h
src/plugins/android/src/mediacapture/qandroidcamerasession.cpp
src/plugins/android/src/mediacapture/qandroidcamerasession.h
src/plugins/android/src/wrappers/jcamera.cpp
src/plugins/android/src/wrappers/jcamera.h