Pass white balance and exposure compensation to webcam emulator

Using fake camera implementation for WB/exposure, implement the same functionality
on frames comming from webcam emulator. Note that due to heavy computations that
are involved in implementing this, we will do all that math in the emulator
application in order to provide a decent performance.

Change-Id: Id6c37b472860674c91e6ca37522fc61f497515a3
This commit is contained in:
Vladimir Chtchetkine
2011-11-23 11:26:11 -08:00
parent 629fb72e6f
commit 031b92f4c7
6 changed files with 52 additions and 43 deletions

View File

@@ -244,7 +244,11 @@ bool EmulatedQemuCameraDevice::inWorkerThread()
/* Query frames from the service. */
status_t query_res = mQemuClient.queryFrame(mCurrentFrame, mPreviewFrame,
mFrameBufferSize,
mTotalPixels * 4);
mTotalPixels * 4,
mWhiteBalanceScale[0],
mWhiteBalanceScale[1],
mWhiteBalanceScale[2],
mExposureCompensation);
if (query_res == NO_ERROR) {
/* Timestamp the current frame, and notify the camera HAL. */
mCurFrameTimestamp = systemTime(SYSTEM_TIME_MONOTONIC);