Lines Matching refs:object

152     CameraPreviewWindow* object = static_cast<CameraPreviewWindow*>(w);  in sDequeueBuffer()  local
153 if (object->mPreviewCallback == nullptr) { in sDequeueBuffer()
164 object->mPreviewCallback->dequeueBuffer( in sDequeueBuffer()
168 Mutex::Autolock _l(object->mLock); in sDequeueBuffer()
169 if (object->mCirculatingBuffers.count(bufferId) == 0) { in sDequeueBuffer()
177 object->mCirculatingBuffers[bufferId] = importedBuf; in sDequeueBuffer()
178 object->mBufferIdMap[&(object->mCirculatingBuffers[bufferId])] = bufferId; in sDequeueBuffer()
181 *buffer = &(object->mCirculatingBuffers[bufferId]); in sDequeueBuffer()
193 CameraPreviewWindow* object = static_cast<CameraPreviewWindow*>(w); in sEnqueueBuffer() local
194 if (object->mPreviewCallback == nullptr) { in sEnqueueBuffer()
198 uint64_t bufferId = object->mBufferIdMap.at(buffer); in sEnqueueBuffer()
199 return getStatusT(object->mPreviewCallback->enqueueBuffer(bufferId)); in sEnqueueBuffer()
203 CameraPreviewWindow* object = static_cast<CameraPreviewWindow*>(w); in sCancelBuffer() local
204 if (object->mPreviewCallback == nullptr) { in sCancelBuffer()
208 uint64_t bufferId = object->mBufferIdMap.at(buffer); in sCancelBuffer()
209 return getStatusT(object->mPreviewCallback->cancelBuffer(bufferId)); in sCancelBuffer()
213 CameraPreviewWindow* object = static_cast<CameraPreviewWindow*>(w); in sSetBufferCount() local
214 if (object->mPreviewCallback == nullptr) { in sSetBufferCount()
219 object->cleanUpCirculatingBuffers(); in sSetBufferCount()
220 return getStatusT(object->mPreviewCallback->setBufferCount(count)); in sSetBufferCount()
225 CameraPreviewWindow* object = static_cast<CameraPreviewWindow*>(w); in sSetBuffersGeometry() local
226 if (object->mPreviewCallback == nullptr) { in sSetBuffersGeometry()
231 object->cleanUpCirculatingBuffers(); in sSetBuffersGeometry()
233 object->mPreviewCallback->setBuffersGeometry(width, height, (PixelFormat) format)); in sSetBuffersGeometry()
238 CameraPreviewWindow* object = static_cast<CameraPreviewWindow*>(w); in sSetCrop() local
239 if (object->mPreviewCallback == nullptr) { in sSetCrop()
244 return getStatusT(object->mPreviewCallback->setCrop(left, top, right, bottom)); in sSetCrop()
248 CameraPreviewWindow* object = static_cast<CameraPreviewWindow*>(w); in sSetTimestamp() local
249 if (object->mPreviewCallback == nullptr) { in sSetTimestamp()
254 return getStatusT(object->mPreviewCallback->setTimestamp(timestamp)); in sSetTimestamp()
258 CameraPreviewWindow* object = static_cast<CameraPreviewWindow*>(w); in sSetUsage() local
259 if (object->mPreviewCallback == nullptr) { in sSetUsage()
264 object->cleanUpCirculatingBuffers(); in sSetUsage()
265 return getStatusT(object->mPreviewCallback->setUsage((BufferUsage)usage)); in sSetUsage()
269 CameraPreviewWindow* object = static_cast<CameraPreviewWindow*>(w); in sSetSwapInterval() local
270 if (object->mPreviewCallback == nullptr) { in sSetSwapInterval()
275 return getStatusT(object->mPreviewCallback->setSwapInterval(interval)); in sSetSwapInterval()
281 const CameraPreviewWindow* object = static_cast<const CameraPreviewWindow*>(w); in sGetMinUndequeuedBufferCount() local
282 if (object->mPreviewCallback == nullptr) { in sGetMinUndequeuedBufferCount()
292 object->mPreviewCallback->getMinUndequeuedBufferCount( in sGetMinUndequeuedBufferCount()
367 CameraDevice* object = static_cast<CameraDevice*>(user); in sGetMemory() local
368 if (object->mDeviceCallback == nullptr) { in sGetMemory()
375 mem = new CameraHeapMemory(object->mAshmemAllocator, buf_size, num_bufs); in sGetMemory()
381 MemoryId id = object->mDeviceCallback->registerMemory(hidlHandle, buf_size, num_bufs); in sGetMemory()
385 Mutex::Autolock _l(object->mMemoryMapLock); in sGetMemory()
386 if (object->mMemoryMap.count(id) != 0) { in sGetMemory()
389 object->mMemoryMap[id] = mem; in sGetMemory()
391 mem->handle.mDevice = object; in sGetMemory()
420 CameraDevice* object = static_cast<CameraDevice*>(user); in sNotifyCb() local
421 if (object->mDeviceCallback != nullptr) { in sNotifyCb()
422 object->mDeviceCallback->notifyCallback((NotifyCallbackMsg) msg_type, ext1, ext2); in sNotifyCb()
429 CameraDevice* object = static_cast<CameraDevice*>(user); in sDataCb() local
436 if (object->mDeviceCallback != nullptr) { in sDataCb()
458 object->mDeviceCallback->dataCallback( in sDataCb()
499 CameraDevice* object = static_cast<CameraDevice*>(user); in sDataCbTimestamp() local
511 if (object->mMetadataMode) { in sDataCbTimestamp()
521 if (object->mDeviceCallback != nullptr) { in sDataCbTimestamp()
523 object->mDeviceCallback->dataCallbackTimestamp( in sDataCbTimestamp()
526 object->handleCallbackTimestamp(timestamp, msg_type, mem->handle.mId, index, handle); in sDataCbTimestamp()