m_afTriggerId(0),
m_afPendingTriggerId(0),
m_afModeWaitingCnt(0),
+ m_jpegEncodingCount(0),
m_scpForceSuspended(false),
m_halDevice(dev),
m_nightCaptureCnt(0),
int ExynosCameraHWInterface2::getInProgressCount()
{
int inProgressCount = m_requestManager->GetNumEntries();
- ALOGV("DEBUG(%s): # of dequeued req (%d)", __FUNCTION__, inProgressCount);
- return inProgressCount;
+ ALOGV("DEBUG(%s): # of dequeued req (%d) jpeg(%d) = (%d)", __FUNCTION__,
+ inProgressCount, m_jpegEncodingCount, (inProgressCount + m_jpegEncodingCount));
+ return (inProgressCount + m_jpegEncodingCount);
}
int ExynosCameraHWInterface2::flushCapturesInProgress()
}
int ExynosCameraHWInterface2::m_jpegCreator(StreamThread *selfThread, ExynosBuffer *srcImageBuf, nsecs_t frameTimeStamp)
{
+ Mutex::Autolock lock(m_jpegEncoderLock);
stream_parameters_t *selfStreamParms = &(selfThread->m_parameters);
substream_parameters_t *subParms = &m_subStreams[STREAM_ID_JPEG];
status_t res;
return 1;
}
+ m_jpegEncodingCount++;
+
m_getRatioSize(selfStreamParms->width, selfStreamParms->height,
m_streamThreads[0]->m_parameters.width, m_streamThreads[0]->m_parameters.height,
&srcCropX, &srcCropY,
subParms->svcBufIndex, subParms->svcBufStatus[subParms->svcBufIndex]);
}
}
+ m_jpegEncodingCount--;
return 0;
}