Lines Matching refs:hw

100     QCamera2HardwareInterface *hw =
102 if (!hw) {
107 hw->lockAPI();
108 rc = hw->processAPI(QCAMERA_SM_EVT_SET_PREVIEW_WINDOW, (void *)window);
110 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PREVIEW_WINDOW);
111 rc = hw->m_apiResult.status;
113 hw->unlockAPI();
140 QCamera2HardwareInterface *hw =
142 if (!hw) {
154 hw->lockAPI();
155 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_SET_CALLBACKS, (void *)&payload);
157 hw->waitAPIResult(QCAMERA_SM_EVT_SET_CALLBACKS);
159 hw->unlockAPI();
175 QCamera2HardwareInterface *hw =
177 if (!hw) {
181 hw->lockAPI();
182 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_ENABLE_MSG_TYPE, (void *)msg_type);
184 hw->waitAPIResult(QCAMERA_SM_EVT_ENABLE_MSG_TYPE);
186 hw->unlockAPI();
202 QCamera2HardwareInterface *hw =
204 if (!hw) {
208 hw->lockAPI();
209 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_DISABLE_MSG_TYPE, (void *)msg_type);
211 hw->waitAPIResult(QCAMERA_SM_EVT_DISABLE_MSG_TYPE);
213 hw->unlockAPI();
231 QCamera2HardwareInterface *hw =
233 if (!hw) {
237 hw->lockAPI();
238 ret = hw->processAPI(QCAMERA_SM_EVT_MSG_TYPE_ENABLED, (void *)msg_type);
240 hw->waitAPIResult(QCAMERA_SM_EVT_MSG_TYPE_ENABLED);
241 ret = hw->m_apiResult.enabled;
243 hw->unlockAPI();
263 QCamera2HardwareInterface *hw =
265 if (!hw) {
270 hw->lockAPI();
272 if (hw->isNoDisplayMode()) {
275 ret = hw->processAPI(evt, NULL);
277 hw->waitAPIResult(evt);
278 ret = hw->m_apiResult.status;
280 hw->unlockAPI();
297 QCamera2HardwareInterface *hw =
299 if (!hw) {
304 hw->lockAPI();
305 int32_t ret = hw->processAPI(QCAMERA_SM_EVT_STOP_PREVIEW, NULL);
307 hw->waitAPIResult(QCAMERA_SM_EVT_STOP_PREVIEW);
309 hw->unlockAPI();
327 QCamera2HardwareInterface *hw =
329 if (!hw) {
334 hw->lockAPI();
335 ret = hw->processAPI(QCAMERA_SM_EVT_PREVIEW_ENABLED, NULL);
337 hw->waitAPIResult(QCAMERA_SM_EVT_PREVIEW_ENABLED);
338 ret = hw->m_apiResult.enabled;
340 hw->unlockAPI();
362 QCamera2HardwareInterface *hw =
364 if (!hw) {
369 hw->lockAPI();
370 ret = hw->processAPI(QCAMERA_SM_EVT_STORE_METADATA_IN_BUFS, (void *)enable);
372 hw->waitAPIResult(QCAMERA_SM_EVT_STORE_METADATA_IN_BUFS);
373 ret = hw->m_apiResult.status;
375 hw->unlockAPI();
395 QCamera2HardwareInterface *hw =
397 if (!hw) {
402 hw->lockAPI();
403 ret = hw->processAPI(QCAMERA_SM_EVT_START_RECORDING, NULL);
405 hw->waitAPIResult(QCAMERA_SM_EVT_START_RECORDING);
406 ret = hw->m_apiResult.status;
408 hw->unlockAPI();
425 QCamera2HardwareInterface *hw =
427 if (!hw) {
432 hw->lockAPI();
433 int32_t ret = hw->processAPI(QCAMERA_SM_EVT_STOP_RECORDING, NULL);
435 hw->waitAPIResult(QCAMERA_SM_EVT_STOP_RECORDING);
437 hw->unlockAPI();
455 QCamera2HardwareInterface *hw =
457 if (!hw) {
461 hw->lockAPI();
462 ret = hw->processAPI(QCAMERA_SM_EVT_RECORDING_ENABLED, NULL);
464 hw->waitAPIResult(QCAMERA_SM_EVT_RECORDING_ENABLED);
465 ret = hw->m_apiResult.enabled;
467 hw->unlockAPI();
486 QCamera2HardwareInterface *hw =
488 if (!hw) {
493 hw->lockAPI();
494 int32_t ret = hw->processAPI(QCAMERA_SM_EVT_RELEASE_RECORIDNG_FRAME, (void *)opaque);
496 hw->waitAPIResult(QCAMERA_SM_EVT_RELEASE_RECORIDNG_FRAME);
498 hw->unlockAPI();
517 QCamera2HardwareInterface *hw =
519 if (!hw) {
524 hw->lockAPI();
525 ret = hw->processAPI(QCAMERA_SM_EVT_START_AUTO_FOCUS, NULL);
527 hw->waitAPIResult(QCAMERA_SM_EVT_START_AUTO_FOCUS);
528 ret = hw->m_apiResult.status;
530 hw->unlockAPI();
551 QCamera2HardwareInterface *hw =
553 if (!hw) {
557 hw->lockAPI();
558 ret = hw->processAPI(QCAMERA_SM_EVT_STOP_AUTO_FOCUS, NULL);
560 hw->waitAPIResult(QCAMERA_SM_EVT_STOP_AUTO_FOCUS);
561 ret = hw->m_apiResult.status;
563 hw->unlockAPI();
583 QCamera2HardwareInterface *hw =
585 if (!hw) {
590 hw->lockAPI();
593 ret = hw->processAPI(QCAMERA_SM_EVT_PREPARE_SNAPSHOT, NULL);
595 hw->waitAPIResult(QCAMERA_SM_EVT_PREPARE_SNAPSHOT);
596 ret = hw->m_apiResult.status;
604 ret = hw->processAPI(QCAMERA_SM_EVT_TAKE_PICTURE, NULL);
606 hw->waitAPIResult(QCAMERA_SM_EVT_TAKE_PICTURE);
607 ret = hw->m_apiResult.status;
610 hw->unlockAPI();
630 QCamera2HardwareInterface *hw =
632 if (!hw) {
636 hw->lockAPI();
637 ret = hw->processAPI(QCAMERA_SM_EVT_CANCEL_PICTURE, NULL);
639 hw->waitAPIResult(QCAMERA_SM_EVT_CANCEL_PICTURE);
640 ret = hw->m_apiResult.status;
642 hw->unlockAPI();
664 QCamera2HardwareInterface *hw =
666 if (!hw) {
670 hw->lockAPI();
671 ret = hw->processAPI(QCAMERA_SM_EVT_SET_PARAMS, (void *)parms);
673 hw->waitAPIResult(QCAMERA_SM_EVT_SET_PARAMS);
674 ret = hw->m_apiResult.status;
676 hw->unlockAPI();
694 QCamera2HardwareInterface *hw =
696 if (!hw) {
700 hw->lockAPI();
701 int32_t rc = hw->processAPI(QCAMERA_SM_EVT_GET_PARAMS, NULL);
703 hw->waitAPIResult(QCAMERA_SM_EVT_GET_PARAMS);
704 ret = hw->m_apiResult.params;
706 hw->unlockAPI();
725 QCamera2HardwareInterface *hw =
727 if (!hw) {
731 hw->lockAPI();
732 int32_t ret = hw->processAPI(QCAMERA_SM_EVT_PUT_PARAMS, (void *)parm);
734 hw->waitAPIResult(QCAMERA_SM_EVT_PUT_PARAMS);
736 hw->unlockAPI();
760 QCamera2HardwareInterface *hw =
762 if (!hw) {
772 hw->lockAPI();
773 ret = hw->processAPI(QCAMERA_SM_EVT_SEND_COMMAND, (void *)&payload);
775 hw->waitAPIResult(QCAMERA_SM_EVT_SEND_COMMAND);
776 ret = hw->m_apiResult.status;
778 hw->unlockAPI();
795 QCamera2HardwareInterface *hw =
797 if (!hw) {
801 hw->lockAPI();
802 int32_t ret = hw->processAPI(QCAMERA_SM_EVT_RELEASE, NULL);
804 hw->waitAPIResult(QCAMERA_SM_EVT_RELEASE);
806 hw->unlockAPI();
825 QCamera2HardwareInterface *hw =
827 if (!hw) {
831 hw->lockAPI();
832 ret = hw->processAPI(QCAMERA_SM_EVT_DUMP, (void *)fd);
834 hw->waitAPIResult(QCAMERA_SM_EVT_DUMP);
835 ret = hw->m_apiResult.status;
837 hw->unlockAPI();
858 QCamera2HardwareInterface *hw =
861 if (!hw) {
865 delete hw;
889 QCamera2HardwareInterface *hw =
891 if (!hw) {
899 hw->lockAPI();
900 ret = hw->processAPI(QCAMERA_SM_EVT_REG_FACE_IMAGE, (void *)&payload);
902 hw->waitAPIResult(QCAMERA_SM_EVT_REG_FACE_IMAGE);
903 ret = hw->m_apiResult.handle;
905 hw->unlockAPI();