Lines Matching refs:pThis
825 omx_vdpp *pThis = (omx_vdpp *) ctxt; in process_event_cb() local
827 if(!pThis) in process_event_cb()
838 pthread_mutex_lock(&pThis->m_lock); in process_event_cb()
841 qsize = pThis->m_cmd_q.m_size; in process_event_cb()
844 pThis->m_cmd_q.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident); in process_event_cb()
849 if (qsize == 0 && pThis->m_state != OMX_StatePause) in process_event_cb()
852 qsize = pThis->m_ftb_q.m_size; in process_event_cb()
855 pThis->m_ftb_q.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident); in process_event_cb()
861 if (qsize == 0 && pThis->m_state != OMX_StatePause) in process_event_cb()
863 qsize = pThis->m_etb_q.m_size; in process_event_cb()
866 pThis->m_etb_q.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident); in process_event_cb()
869 pthread_mutex_unlock(&pThis->m_lock); in process_event_cb()
878 if (pThis->m_cb.EventHandler) in process_event_cb()
883 pThis->m_state = (OMX_STATETYPE) p2; in process_event_cb()
885 pThis->m_state, pThis->m_cb.EventHandler); in process_event_cb()
886 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
894 pThis->m_state = (OMX_STATETYPE) p2; in process_event_cb()
895 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
900 pThis->omx_report_error(); in process_event_cb()
904 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
910 …" OMX_CommandPortDisable complete for port [%d], pThis->in_reconfig = %d", p2, pThis->in_reconfig); in process_event_cb()
911 if (BITMASK_PRESENT(&pThis->m_flags, in process_event_cb()
914 BITMASK_SET(&pThis->m_flags, OMX_COMPONENT_DISABLE_OUTPUT_DEFERRED); in process_event_cb()
920 pThis->stream_off(OMX_CORE_OUTPUT_PORT_INDEX); in process_event_cb()
921 if(release_buffers(pThis, VDPP_BUFFER_TYPE_OUTPUT)) in process_event_cb()
923 OMX_ERRORTYPE eRet1 = pThis->get_buffer_req(&pThis->drv_ctx.op_buf); in process_event_cb()
924 pThis->in_reconfig = false; in process_event_cb()
928 pThis->omx_report_error(); in process_event_cb()
935 pThis->stream_off(OMX_CORE_INPUT_PORT_INDEX); in process_event_cb()
936 if(release_buffers(pThis, VDPP_BUFFER_TYPE_INPUT)) in process_event_cb()
938 OMX_ERRORTYPE eRet1 = pThis->get_buffer_req(&pThis->drv_ctx.ip_buf); in process_event_cb()
939 pThis->in_reconfig = false; in process_event_cb()
943 pThis->omx_report_error(); in process_event_cb()
947 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
952 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,\ in process_event_cb()
957 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
970 if (pThis->empty_this_buffer_proxy((OMX_HANDLETYPE)p1,\ in process_event_cb()
974 pThis->omx_report_error (); in process_event_cb()
981 if ( pThis->fill_this_buffer_proxy((OMX_HANDLETYPE)p1,\ in process_event_cb()
985 pThis->omx_report_error (); in process_event_cb()
991 pThis->send_command_proxy(&pThis->m_cmp,(OMX_COMMANDTYPE)p1,\ in process_event_cb()
999 pThis->omx_report_error (); in process_event_cb()
1006 pThis->m_inp_err_count++; in process_event_cb()
1015 pThis->m_inp_err_count = 0; in process_event_cb()
1017 if ( pThis->empty_buffer_done(&pThis->m_cmp, in process_event_cb()
1021 pThis->omx_report_error (); in process_event_cb()
1024 if(pThis->m_inp_err_count >= MAX_INPUT_ERROR) in process_event_cb()
1027 pThis->omx_report_error (); in process_event_cb()
1035 pThis->omx_report_error (); in process_event_cb()
1037 else if ( pThis->fill_buffer_done(&pThis->m_cmp, in process_event_cb()
1041 pThis->omx_report_error (); in process_event_cb()
1047 if (!pThis->input_flush_progress) in process_event_cb()
1053 pThis->execute_input_flush(); in process_event_cb()
1054 if (pThis->m_cb.EventHandler) in process_event_cb()
1059 pThis->omx_report_error (); in process_event_cb()
1064 if(BITMASK_PRESENT(&pThis->m_flags, in process_event_cb()
1067 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_INPUT_FLUSH_PENDING); in process_event_cb()
1069 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
1073 if (BITMASK_PRESENT(&pThis->m_flags, in process_event_cb()
1076 if(pThis->stream_off(OMX_CORE_INPUT_PORT_INDEX)) { in process_event_cb()
1078 pThis->omx_report_error (); in process_event_cb()
1081 pThis->streaming[OUTPUT_PORT] = false; in process_event_cb()
1083 if (!pThis->output_flush_progress) in process_event_cb()
1086 pThis->post_event ((unsigned int)NULL, VDPP_S_SUCCESS,\ in process_event_cb()
1101 if (!pThis->output_flush_progress) in process_event_cb()
1107 pThis->execute_output_flush(); in process_event_cb()
1108 if (pThis->m_cb.EventHandler) in process_event_cb()
1113 pThis->omx_report_error (); in process_event_cb()
1118 if(BITMASK_PRESENT(&pThis->m_flags, in process_event_cb()
1122 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_OUTPUT_FLUSH_PENDING); in process_event_cb()
1123 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
1127 if(BITMASK_PRESENT(&pThis->m_flags, in process_event_cb()
1131 BITMASK_CLEAR (&pThis->m_flags, in process_event_cb()
1133 if (BITMASK_PRESENT(&pThis->m_flags, in process_event_cb()
1136 pThis->post_event(OMX_CommandPortDisable, in process_event_cb()
1139 BITMASK_CLEAR (&pThis->m_flags, in process_event_cb()
1147 if (BITMASK_PRESENT(&pThis->m_flags ,OMX_COMPONENT_IDLE_PENDING)) in process_event_cb()
1150 if(pThis->stream_off(OMX_CORE_OUTPUT_PORT_INDEX)) { in process_event_cb()
1152 pThis->omx_report_error (); in process_event_cb()
1155 pThis->streaming[CAPTURE_PORT] = false; in process_event_cb()
1156 …ONENT_GENERATE_EVENT_OUTPUT_FLUSH 3 pThis->input_flush_progress =%d \n", pThis->input_flush_progr… in process_event_cb()
1157 if (!pThis->input_flush_progress) in process_event_cb()
1160 pThis->post_event ((unsigned int)NULL, VDPP_S_SUCCESS,\ in process_event_cb()
1176 if (pThis->m_cb.EventHandler) in process_event_cb()
1181 pThis->omx_report_error (); in process_event_cb()
1186 if(BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) in process_event_cb()
1190 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING); in process_event_cb()
1191 pThis->m_state = OMX_StateExecuting; in process_event_cb()
1192 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
1196 else if (BITMASK_PRESENT(&pThis->m_flags, in process_event_cb()
1203 pThis->omx_report_error (); in process_event_cb()
1216 if (pThis->m_cb.EventHandler) in process_event_cb()
1221 pThis->omx_report_error (); in process_event_cb()
1225 pThis->complete_pending_buffer_done_cbs(); in process_event_cb()
1226 if(BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_PAUSE_PENDING)) in process_event_cb()
1230 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_PAUSE_PENDING); in process_event_cb()
1231 pThis->m_state = OMX_StatePause; in process_event_cb()
1232 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
1247 if (pThis->m_cb.EventHandler) in process_event_cb()
1252 pThis->omx_report_error (); in process_event_cb()
1256 if(BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) in process_event_cb()
1260 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING); in process_event_cb()
1261 pThis->m_state = OMX_StateExecuting; in process_event_cb()
1262 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
1277 if (pThis->m_cb.EventHandler) in process_event_cb()
1282 pThis->omx_report_error (); in process_event_cb()
1286 pThis->complete_pending_buffer_done_cbs(); in process_event_cb()
1287 if(BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_IDLE_PENDING)) in process_event_cb()
1291 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_IDLE_PENDING); in process_event_cb()
1292 pThis->m_state = OMX_StateIdle; in process_event_cb()
1293 … DEBUG_PRINT_LOW(" Move to Idle State, pThis->m_cb.EventHandler = %p", pThis->m_cb.EventHandler); in process_event_cb()
1294 pThis->m_cb.EventHandler(&pThis->m_cmp,pThis->m_app_data, in process_event_cb()
1312 pThis->in_reconfig = true; in process_event_cb()
1314 if (pThis->m_cb.EventHandler) { in process_event_cb()
1315 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
1321 if (pThis->drv_ctx.interlace != V4L2_FIELD_NONE/*VDPP_InterlaceFrameProgressive*/) in process_event_cb()
1325 …if (pThis->drv_ctx.interlace == V4L2_FIELD_INTERLACED_TB/*VDPP_InterlaceInterleaveFrameTopFieldFir… in process_event_cb()
1327 …else if (pThis->drv_ctx.interlace == V4L2_FIELD_INTERLACED_BT/*VDPP_InterlaceInterleaveFrameBottom… in process_event_cb()
1331 if (pThis->m_cb.EventHandler) { in process_event_cb()
1332 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
1342 if (pThis->m_cb.EventHandler) { in process_event_cb()
1343 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, OMX_EventBufferFlag, in process_event_cb()
1348 pThis->prev_ts = LLONG_MAX; in process_event_cb()
1349 pThis->rst_prev_ts = true; in process_event_cb()
1354 pThis->omx_report_error (); in process_event_cb()
1359 pThis->omx_report_unsupported_setting(); in process_event_cb()
1365 if (pThis->m_cb.EventHandler) { in process_event_cb()
1366 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
1384 if (pThis->m_cb.EventHandler) { in process_event_cb()
1385 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, in process_event_cb()
1395 pthread_mutex_lock(&pThis->m_lock); in process_event_cb()
1396 qsize = pThis->m_cmd_q.m_size; in process_event_cb()
1397 if (pThis->m_state != OMX_StatePause) in process_event_cb()
1398 qsize += (pThis->m_ftb_q.m_size + pThis->m_etb_q.m_size); in process_event_cb()
1399 pthread_mutex_unlock(&pThis->m_lock); in process_event_cb()