Lines Matching defs:pThis
873 omx_vdec *pThis = (omx_vdec *) ctxt;
875 if(!pThis)
886 pthread_mutex_lock(&pThis->m_lock);
887 qsize = pThis->m_cmd_q.m_size;
890 pThis->m_cmd_q.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident);
893 if (qsize == 0 && pThis->m_state != OMX_StatePause)
895 qsize = pThis->m_ftb_q.m_size;
898 pThis->m_ftb_q.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident);
902 if (qsize == 0 && pThis->m_state != OMX_StatePause)
904 qsize = pThis->m_ftb_q_dsp.m_size;
907 pThis->m_ftb_q_dsp.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident);
911 if (qsize == 0 && pThis->m_state != OMX_StatePause)
913 qsize = pThis->m_etb_q.m_size;
916 pThis->m_etb_q.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident);
920 if (qsize == 0 && pThis->m_state != OMX_StatePause)
922 qsize = pThis->m_etb_q_swvdec.m_size;
925 pThis->m_etb_q_swvdec.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident);
929 pthread_mutex_unlock(&pThis->m_lock);
938 if (pThis->m_cb.EventHandler)
943 pThis->m_state = (OMX_STATETYPE) p2;
945 pThis->m_state);
946 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
954 pThis->m_state = (OMX_STATETYPE) p2;
955 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
960 pThis->omx_report_error();
964 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
971 if (BITMASK_PRESENT(&pThis->m_flags,
974 BITMASK_SET(&pThis->m_flags, OMX_COMPONENT_DISABLE_OUTPUT_DEFERRED);
977 if (p2 == OMX_CORE_OUTPUT_PORT_INDEX && pThis->in_reconfig)
980 if (!pThis->m_pSwVdec || pThis->m_swvdec_mode == SWVDEC_MODE_DECODE_ONLY)
982 pThis->stream_off(OMX_CORE_OUTPUT_PORT_INDEX);
983 if(release_buffers(pThis, VDEC_BUFFER_TYPE_OUTPUT))
986 if (pThis->m_pSwVdec)
989 SwVdec_Stop(pThis->m_pSwVdec);
992 pThis->get_buffer_req_swvdec();
993 pThis->in_reconfig = false;
997 pThis->omx_report_error();
1001 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1006 if (p2 == OMX_CORE_OUTPUT_PORT_INDEX && pThis->m_swvdec_mode == SWVDEC_MODE_DECODE_ONLY)
1009 pThis->fill_all_buffers_proxy_dsp(&pThis->m_cmp);
1011 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,\
1016 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1028 if (pThis->empty_this_buffer_proxy_arbitrary((OMX_HANDLETYPE)p1,\
1032 pThis->omx_report_error ();
1036 if (pThis->empty_this_buffer_proxy((OMX_HANDLETYPE)p1,\
1040 pThis->omx_report_error ();
1045 if ( pThis->fill_this_buffer_proxy((OMX_HANDLETYPE)p1,\
1049 pThis->omx_report_error ();
1054 pThis->send_command_proxy(&pThis->m_cmp,(OMX_COMMANDTYPE)p1,\
1063 pThis->omx_report_error ();
1069 pThis->m_inp_err_count++;
1070 pThis->time_stamp_dts.remove_time_stamp(
1072 (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive)
1077 pThis->m_inp_err_count = 0;
1079 if ( pThis->empty_buffer_done(&pThis->m_cmp,
1083 pThis->omx_report_error ();
1085 if(pThis->m_inp_err_count >= MAX_INPUT_ERROR)
1088 pThis->omx_report_error ();
1097 pThis->time_stamp_dts.remove_time_stamp(*timestamp,
1098 (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive)
1108 pThis->omx_report_error ();
1110 else if ( pThis->fill_buffer_done(&pThis->m_cmp,
1114 pThis->omx_report_error ();
1119 if (!pThis->input_flush_progress)
1125 pThis->execute_input_flush();
1126 if (pThis->m_cb.EventHandler)
1131 pThis->omx_report_error ();
1136 if(BITMASK_PRESENT(&pThis->m_flags,
1139 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_INPUT_FLUSH_PENDING);
1141 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1145 if (BITMASK_PRESENT(&pThis->m_flags,
1148 if (!pThis->m_pSwVdec || pThis->m_swvdec_mode == SWVDEC_MODE_DECODE_ONLY)
1150 if(pThis->stream_off(OMX_CORE_INPUT_PORT_INDEX)) {
1152 pThis->omx_report_error ();
1154 pThis->streaming[OUTPUT_PORT] = false;
1169 if (!pThis->output_flush_progress)
1175 pThis->execute_output_flush();
1176 if (pThis->m_interm_flush_dsp_progress)
1178 pThis->execute_output_flush_dsp();
1180 if (pThis->m_interm_flush_swvdec_progress)
1182 pThis->execute_input_flush_swvdec();
1184 if (pThis->m_cb.EventHandler)
1189 pThis->omx_report_error ();
1194 if(BITMASK_PRESENT(&pThis->m_flags,
1197 if (pThis->release_interm_done() == false)
1200 pThis->omx_report_error ();
1203 pThis->m_fill_internal_bufers = OMX_TRUE;
1205 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_OUTPUT_FLUSH_PENDING);
1206 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1210 if(BITMASK_PRESENT(&pThis->m_flags,
1214 BITMASK_CLEAR (&pThis->m_flags,
1216 if (BITMASK_PRESENT(&pThis->m_flags,
1219 pThis->post_event(OMX_CommandPortDisable,
1222 BITMASK_CLEAR (&pThis->m_flags,
1224 BITMASK_CLEAR (&pThis->m_flags,
1230 if (BITMASK_PRESENT(&pThis->m_flags ,OMX_COMPONENT_IDLE_PENDING))
1232 if (!pThis->m_pSwVdec || pThis->m_swvdec_mode == SWVDEC_MODE_DECODE_ONLY)
1234 if(pThis->stream_off(OMX_CORE_OUTPUT_PORT_INDEX)) {
1236 pThis->omx_report_error ();
1239 pThis->streaming[CAPTURE_PORT] = false;
1241 if (!pThis->input_flush_progress)
1244 pThis->post_event ((unsigned int)NULL, VDEC_S_SUCCESS,\
1259 if (!pThis->m_interm_flush_dsp_progress)
1268 if (pThis->m_interm_flush_swvdec_progress)
1273 else if (pThis->output_flush_progress)
1281 bFlushSwVdec, pThis->m_interm_flush_swvdec_progress, pThis->output_flush_progress, aFlushType);
1285 if (SwVdec_Flush(pThis->m_pSwVdec, aFlushType) != SWVDEC_S_SUCCESS)
1292 pThis->execute_output_flush_dsp();
1300 if (pThis->m_cb.EventHandler)
1305 pThis->omx_report_error ();
1310 if(BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING))
1314 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
1315 pThis->m_state = OMX_StateExecuting;
1316 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1320 else if (BITMASK_PRESENT(&pThis->m_flags,
1323 if (/*ioctl (pThis->drv_ctx.video_driver_fd,
1327 pThis->omx_report_error ();
1340 if (pThis->m_cb.EventHandler)
1345 pThis->omx_report_error ();
1349 pThis->complete_pending_buffer_done_cbs();
1350 if(BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_PAUSE_PENDING))
1354 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_PAUSE_PENDING);
1355 pThis->m_state = OMX_StatePause;
1356 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1371 if (pThis->m_cb.EventHandler)
1376 pThis->omx_report_error ();
1380 if(BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING))
1384 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
1385 pThis->m_state = OMX_StateExecuting;
1386 if (pThis->m_swvdec_mode == SWVDEC_MODE_DECODE_ONLY)
1388 pThis->fill_all_buffers_proxy_dsp(&pThis->m_cmp);
1390 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1405 if (pThis->m_cb.EventHandler)
1410 pThis->omx_report_error ();
1414 pThis->complete_pending_buffer_done_cbs();
1415 if(BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_IDLE_PENDING))
1419 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_IDLE_PENDING);
1420 pThis->m_state = OMX_StateIdle;
1422 pThis->m_cb.EventHandler(&pThis->m_cmp,pThis->m_app_data,
1439 pThis->in_reconfig = true;
1441 if (pThis->m_cb.EventHandler) {
1442 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1448 if (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive)
1452 if (pThis->drv_ctx.interlace == VDEC_InterlaceInterleaveFrameTopFieldFirst)
1454 else if (pThis->drv_ctx.interlace == VDEC_InterlaceInterleaveFrameBottomFieldFirst)
1458 if (pThis->m_cb.EventHandler) {
1459 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1469 if (pThis->m_cb.EventHandler) {
1470 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, OMX_EventBufferFlag,
1475 pThis->prev_ts = LLONG_MAX;
1476 pThis->rst_prev_ts = true;
1481 pThis->omx_report_error ();
1486 pThis->omx_report_unsupported_setting();
1492 if (pThis->m_cb.EventHandler) {
1493 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1504 if (pThis->empty_this_buffer_proxy_swvdec((OMX_HANDLETYPE)p1,\
1508 pThis->omx_report_error ();
1519 pThis->omx_report_error ();
1521 else if ( pThis->empty_buffer_done_swvdec(&pThis->m_cmp,
1525 pThis->omx_report_error ();
1533 if ( pThis->fill_this_buffer_proxy_dsp((OMX_HANDLETYPE)p1,\
1537 pThis->omx_report_error ();
1548 pThis->omx_report_error ();
1550 else if ( pThis->fill_buffer_done_dsp(&pThis->m_cmp,
1554 pThis->omx_report_error ();
1565 pthread_mutex_lock(&pThis->m_lock);
1566 qsize = pThis->m_cmd_q.m_size;
1567 if (pThis->m_state != OMX_StatePause)
1568 qsize += (pThis->m_ftb_q.m_size + pThis->m_etb_q.m_size +
1569 pThis->m_ftb_q_dsp.m_size + pThis->m_etb_q_swvdec.m_size);
1570 pthread_mutex_unlock(&pThis->m_lock);