Android: fix camera preview
authorDenis Kormalev <kormalev.denis@gmail.com>
Thu, 5 Dec 2013 13:09:07 +0000 (17:09 +0400)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 11 Dec 2013 17:25:57 +0000 (18:25 +0100)
commitecce937a054e4a96597cb13c40d216bddbd45891
tree7d6702cc83ae3558e9be374bf740ff6a42353323
parent29ded57cef22d0a6d92f813d0a77637623d7b670
Android: fix camera preview

At some(?) devices we can't rely on one shot preview callback because
it receives data only after we start new previewing session. And this
cause situation when imageCaptured signal is never emitted.
This fix applies preview callback with already allocated buffers and
collects all preview images in these buffers. When we capture image -
we can simply fetch last preview image (if there was any) from c++ part.

Task-number: QTBUG-34993
Change-Id: I608750c344ca3c089f4673df4907e0f47e57e2ba
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/android/jar/src/org/qtproject/qt5/android/multimedia/QtCamera.java
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