Lines Matching defs:pThis
843 omx_vdec *pThis = (omx_vdec *) ctxt;
845 if (!pThis) {
854 pthread_mutex_lock(&pThis->m_lock);
855 qsize = pThis->m_cmd_q.m_size;
857 pThis->m_cmd_q.pop_entry(&p1, &p2, &ident);
860 if (qsize == 0 && pThis->m_state != OMX_StatePause) {
861 qsize = pThis->m_ftb_q.m_size;
863 pThis->m_ftb_q.pop_entry(&p1, &p2, &ident);
867 if (qsize == 0 && pThis->m_state != OMX_StatePause) {
868 qsize = pThis->m_etb_q.m_size;
870 pThis->m_etb_q.pop_entry(&p1, &p2, &ident);
873 pthread_mutex_unlock(&pThis->m_lock);
880 if (pThis->m_cb.EventHandler) {
883 pThis->m_state = (OMX_STATETYPE) p2;
885 pThis->m_state);
886 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
893 pThis->m_state = (OMX_STATETYPE) p2;
894 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
897 pThis->omx_report_error();
899 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
906 if (BITMASK_PRESENT(&pThis->m_flags,
908 BITMASK_SET(&pThis->m_flags, OMX_COMPONENT_DISABLE_OUTPUT_DEFERRED);
913 pThis->stream_off(OMX_CORE_OUTPUT_PORT_INDEX);
914 if (release_buffers(pThis, VDEC_BUFFER_TYPE_OUTPUT))
916 OMX_ERRORTYPE eRet1 = pThis->get_buffer_req(&pThis->drv_ctx.op_buf);
917 pThis->in_reconfig = false;
920 pThis->omx_report_error();
924 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
929 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,\
934 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
944 if (pThis->empty_this_buffer_proxy_arbitrary((OMX_HANDLETYPE)p1,\
947 pThis->omx_report_error ();
951 if (pThis->empty_this_buffer_proxy((OMX_HANDLETYPE)(intptr_t)p1,\
954 pThis->omx_report_error ();
959 if ( pThis->fill_this_buffer_proxy((OMX_HANDLETYPE)(intptr_t)p1,\
962 pThis->omx_report_error ();
967 pThis->send_command_proxy(&pThis->m_cmp,(OMX_COMMANDTYPE)p1,\
975 pThis->omx_report_error ();
978 pThis->m_inp_err_count++;
979 pThis->time_stamp_dts.remove_time_stamp(
981 (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive)
984 pThis->m_inp_err_count = 0;
986 if ( pThis->empty_buffer_done(&pThis->m_cmp,
989 pThis->omx_report_error ();
991 if (pThis->m_inp_err_count >= MAX_INPUT_ERROR) {
993 pThis->omx_report_error ();
1000 pThis->time_stamp_dts.remove_time_stamp(*timestamp,
1001 (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive)
1010 pThis->omx_report_error ();
1011 } else if ( pThis->fill_buffer_done(&pThis->m_cmp,
1014 pThis->omx_report_error ();
1020 if (!pThis->input_flush_progress) {
1023 pThis->execute_input_flush();
1024 if (pThis->m_cb.EventHandler) {
1027 pThis->omx_report_error ();
1030 if (BITMASK_PRESENT(&pThis->m_flags,
1032 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_INPUT_FLUSH_PENDING);
1034 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1038 if (BITMASK_PRESENT(&pThis->m_flags,
1040 if (pThis->stream_off(OMX_CORE_INPUT_PORT_INDEX)) {
1042 pThis->omx_report_error ();
1044 pThis->streaming[OUTPUT_PORT] = false;
1046 if (!pThis->output_flush_progress) {
1048 pThis->post_event ((unsigned int)NULL, VDEC_S_SUCCESS,\
1061 if (!pThis->output_flush_progress) {
1064 pThis->execute_output_flush();
1065 if (pThis->m_cb.EventHandler) {
1068 pThis->omx_report_error ();
1071 if (BITMASK_PRESENT(&pThis->m_flags,
1074 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_OUTPUT_FLUSH_PENDING);
1075 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1079 if (BITMASK_PRESENT(&pThis->m_flags,
1082 BITMASK_CLEAR (&pThis->m_flags,
1084 if (BITMASK_PRESENT(&pThis->m_flags,
1086 pThis->post_event(OMX_CommandPortDisable,
1089 BITMASK_CLEAR (&pThis->m_flags,
1091 BITMASK_CLEAR (&pThis->m_flags,
1097 if (BITMASK_PRESENT(&pThis->m_flags ,OMX_COMPONENT_IDLE_PENDING)) {
1098 if (pThis->stream_off(OMX_CORE_OUTPUT_PORT_INDEX)) {
1100 pThis->omx_report_error ();
1103 pThis->streaming[CAPTURE_PORT] = false;
1104 if (!pThis->input_flush_progress) {
1106 pThis->post_event ((unsigned int)NULL, VDEC_S_SUCCESS,\
1120 if (pThis->m_cb.EventHandler) {
1123 pThis->omx_report_error ();
1126 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
1129 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
1130 pThis->m_state = OMX_StateExecuting;
1131 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1134 } else if (BITMASK_PRESENT(&pThis->m_flags,
1136 if (/*ioctl (pThis->drv_ctx.video_driver_fd,
1139 pThis->omx_report_error ();
1150 if (pThis->m_cb.EventHandler) {
1153 pThis->omx_report_error ();
1155 pThis->complete_pending_buffer_done_cbs();
1156 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_PAUSE_PENDING)) {
1159 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_PAUSE_PENDING);
1160 pThis->m_state = OMX_StatePause;
1161 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1174 if (pThis->m_cb.EventHandler) {
1177 pThis->omx_report_error ();
1179 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
1182 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
1183 pThis->m_state = OMX_StateExecuting;
1184 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1197 if (pThis->m_cb.EventHandler) {
1200 pThis->omx_report_error ();
1202 pThis->complete_pending_buffer_done_cbs();
1203 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_IDLE_PENDING)) {
1206 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_IDLE_PENDING);
1207 pThis->m_state = OMX_StateIdle;
1209 pThis->m_cb.EventHandler(&pThis->m_cmp,pThis->m_app_data,
1224 pThis->in_reconfig = true;
1226 if (pThis->m_cb.EventHandler) {
1227 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1237 if (pThis->m_cb.EventHandler) {
1238 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, OMX_EventBufferFlag,
1243 pThis->prev_ts = LLONG_MAX;
1244 pThis->rst_prev_ts = true;
1249 pThis->omx_report_error ();
1254 pThis->omx_report_unsupported_setting();
1261 pthread_mutex_lock(&pThis->m_lock);
1262 qsize = pThis->m_cmd_q.m_size;
1263 if (pThis->m_state != OMX_StatePause)
1264 qsize += (pThis->m_ftb_q.m_size + pThis->m_etb_q.m_size);
1265 pthread_mutex_unlock(&pThis->m_lock);