Lines Matching refs:payload
102 qcamera_sm_internal_evt_payload_t *payload = in zsl_channel_cb() local
105 if (NULL != payload) { in zsl_channel_cb()
106 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in zsl_channel_cb()
107 payload->evt_type = QCAMERA_INTERNAL_EVT_RETRO_AEC_UNLOCK; in zsl_channel_cb()
108 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
111 free(payload); in zsl_channel_cb()
112 payload = NULL; in zsl_channel_cb()
124 qcamera_sm_internal_evt_payload_t *payload = in zsl_channel_cb() local
127 if (NULL != payload) { in zsl_channel_cb()
128 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in zsl_channel_cb()
129 payload->evt_type = QCAMERA_INTERNAL_EVT_READY_FOR_SNAPSHOT; in zsl_channel_cb()
130 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
133 free(payload); in zsl_channel_cb()
134 payload = NULL; in zsl_channel_cb()
210 qcamera_sm_internal_evt_payload_t *payload = in zsl_channel_cb() local
212 if (NULL != payload) { in zsl_channel_cb()
213 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in zsl_channel_cb()
214 payload->evt_type = QCAMERA_INTERNAL_EVT_FACE_DETECT_RESULT; in zsl_channel_cb()
215 payload->faces_data = faces_data; in zsl_channel_cb()
216 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in zsl_channel_cb()
219 free(payload); in zsl_channel_cb()
220 payload = NULL; in zsl_channel_cb()
2185 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2188 if (NULL != payload) { in metadata_stream_cb_routine()
2189 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2190 payload->evt_type = QCAMERA_INTERNAL_EVT_HISTOGRAM_STATS; in metadata_stream_cb_routine()
2191 payload->stats_data = *stats_data; in metadata_stream_cb_routine()
2192 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2195 free(payload); in metadata_stream_cb_routine()
2196 payload = NULL; in metadata_stream_cb_routine()
2211 qcamera_sm_internal_evt_payload_t *payload = (qcamera_sm_internal_evt_payload_t *) in metadata_stream_cb_routine() local
2213 if (NULL != payload) { in metadata_stream_cb_routine()
2214 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2215 payload->evt_type = QCAMERA_INTERNAL_EVT_FACE_DETECT_RESULT; in metadata_stream_cb_routine()
2216 payload->faces_data = faces_data; in metadata_stream_cb_routine()
2217 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2220 free(payload); in metadata_stream_cb_routine()
2221 payload = NULL; in metadata_stream_cb_routine()
2257 qcamera_sm_internal_evt_payload_t *payload = (qcamera_sm_internal_evt_payload_t *) in metadata_stream_cb_routine() local
2259 if (NULL != payload) { in metadata_stream_cb_routine()
2260 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2261 payload->evt_type = QCAMERA_INTERNAL_EVT_FOCUS_UPDATE; in metadata_stream_cb_routine()
2262 payload->focus_data.focus_state = (cam_af_state_t)(*afState); in metadata_stream_cb_routine()
2265 payload->focus_data.flush_info.needFlush = in metadata_stream_cb_routine()
2270 payload->focus_data.flush_info.focused_frame_idx = frame->frame_idx; in metadata_stream_cb_routine()
2274 payload->focus_data.focus_dist. in metadata_stream_cb_routine()
2278 payload->focus_data.focus_dist. in metadata_stream_cb_routine()
2280 payload->focus_data.focus_dist. in metadata_stream_cb_routine()
2284 payload->focus_data.focus_mode = (cam_focus_mode_type)(*focusMode); in metadata_stream_cb_routine()
2288 payload->focus_data.isDepth = *isDepthFocus; in metadata_stream_cb_routine()
2290 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2293 free(payload); in metadata_stream_cb_routine()
2294 payload = NULL; in metadata_stream_cb_routine()
2307 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2310 if (NULL != payload) { in metadata_stream_cb_routine()
2311 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2312 payload->evt_type = QCAMERA_INTERNAL_EVT_CROP_INFO; in metadata_stream_cb_routine()
2313 payload->crop_data = *crop_data; in metadata_stream_cb_routine()
2314 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2317 free(payload); in metadata_stream_cb_routine()
2318 payload = NULL; in metadata_stream_cb_routine()
2328 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2330 if (NULL != payload) { in metadata_stream_cb_routine()
2331 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2332 payload->evt_type = QCAMERA_INTERNAL_EVT_PREP_SNAPSHOT_DONE; in metadata_stream_cb_routine()
2333 payload->prep_snapshot_state = (cam_prep_snapshot_state_t)*prep_snapshot_done_state; in metadata_stream_cb_routine()
2334 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2337 free(payload); in metadata_stream_cb_routine()
2338 payload = NULL; in metadata_stream_cb_routine()
2351 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2354 if (NULL != payload) { in metadata_stream_cb_routine()
2355 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2356 payload->evt_type = QCAMERA_INTERNAL_EVT_HDR_UPDATE; in metadata_stream_cb_routine()
2357 payload->hdr_data = *hdr_scene_data; in metadata_stream_cb_routine()
2358 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2361 free(payload); in metadata_stream_cb_routine()
2362 payload = NULL; in metadata_stream_cb_routine()
2372 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2374 if (NULL != payload) { in metadata_stream_cb_routine()
2375 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2376 payload->evt_type = QCAMERA_INTERNAL_EVT_ASD_UPDATE; in metadata_stream_cb_routine()
2377 payload->asd_data = (cam_asd_decision_t)*cam_asd_info; in metadata_stream_cb_routine()
2378 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2381 free(payload); in metadata_stream_cb_routine()
2382 payload = NULL; in metadata_stream_cb_routine()
2391 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2394 if (NULL != payload) { in metadata_stream_cb_routine()
2395 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2396 payload->evt_type = QCAMERA_INTERNAL_EVT_AWB_UPDATE; in metadata_stream_cb_routine()
2397 payload->awb_data = *awb_params; in metadata_stream_cb_routine()
2398 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2401 free(payload); in metadata_stream_cb_routine()
2402 payload = NULL; in metadata_stream_cb_routine()
2426 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2429 if (NULL != payload) { in metadata_stream_cb_routine()
2430 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2431 payload->evt_type = QCAMERA_INTERNAL_EVT_AE_UPDATE; in metadata_stream_cb_routine()
2432 payload->ae_data = *ae_params; in metadata_stream_cb_routine()
2433 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2436 free(payload); in metadata_stream_cb_routine()
2437 payload = NULL; in metadata_stream_cb_routine()
2517 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2520 if (NULL != payload) { in metadata_stream_cb_routine()
2521 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2522 payload->evt_type = QCAMERA_INTERNAL_EVT_LED_MODE_OVERRIDE; in metadata_stream_cb_routine()
2523 payload->led_data = (cam_flash_mode_t)*led_mode; in metadata_stream_cb_routine()
2524 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2527 free(payload); in metadata_stream_cb_routine()
2528 payload = NULL; in metadata_stream_cb_routine()
2547 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2549 if (NULL != payload) { in metadata_stream_cb_routine()
2550 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2551 payload->evt_type = QCAMERA_INTERNAL_EVT_FOCUS_POS_UPDATE; in metadata_stream_cb_routine()
2552 payload->focus_pos = *cur_pos_info; in metadata_stream_cb_routine()
2553 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2556 free(payload); in metadata_stream_cb_routine()
2557 payload = NULL; in metadata_stream_cb_routine()
2585 qcamera_sm_internal_evt_payload_t *payload = in metadata_stream_cb_routine() local
2588 if (NULL != payload) { in metadata_stream_cb_routine()
2589 memset(payload, 0, sizeof(qcamera_sm_internal_evt_payload_t)); in metadata_stream_cb_routine()
2590 payload->evt_type = QCAMERA_INTERNAL_EVT_LED_CALIB_UPDATE; in metadata_stream_cb_routine()
2591 payload->led_calib_result = (int32_t)*led_result; in metadata_stream_cb_routine()
2592 int32_t rc = pme->processEvt(QCAMERA_SM_EVT_EVT_INTERNAL, payload); in metadata_stream_cb_routine()
2595 free(payload); in metadata_stream_cb_routine()
2596 payload = NULL; in metadata_stream_cb_routine()