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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user