Lines Matching defs:pThis
758 omx_vdec *pThis = (omx_vdec *) ctxt;
760 if (!pThis) {
769 pthread_mutex_lock(&pThis->m_lock);
770 qsize = pThis->m_cmd_q.m_size;
772 pThis->m_cmd_q.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident);
775 if (qsize == 0 && pThis->m_state != OMX_StatePause) {
776 qsize = pThis->m_ftb_q.m_size;
778 pThis->m_ftb_q.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident);
782 if (qsize == 0 && pThis->m_state != OMX_StatePause) {
783 qsize = pThis->m_etb_q.m_size;
785 pThis->m_etb_q.pop_entry((unsigned *)&p1, (unsigned *)&p2, &ident);
788 pthread_mutex_unlock(&pThis->m_lock);
795 if (pThis->m_cb.EventHandler) {
798 pThis->m_state = (OMX_STATETYPE) p2;
800 pThis->m_state);
801 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
808 pThis->m_state = (OMX_STATETYPE) p2;
809 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
812 pThis->omx_report_error();
814 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
821 if (BITMASK_PRESENT(&pThis->m_flags,
823 BITMASK_SET(&pThis->m_flags, OMX_COMPONENT_DISABLE_OUTPUT_DEFERRED);
826 if (p2 == OMX_CORE_OUTPUT_PORT_INDEX && pThis->in_reconfig) {
828 pThis->stream_off(OMX_CORE_OUTPUT_PORT_INDEX);
829 if (release_buffers(pThis, VDEC_BUFFER_TYPE_OUTPUT))
831 OMX_ERRORTYPE eRet1 = pThis->get_buffer_req(&pThis->drv_ctx.op_buf);
832 pThis->in_reconfig = false;
835 pThis->omx_report_error();
839 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
844 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,\
849 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
859 if (pThis->empty_this_buffer_proxy_arbitrary((OMX_HANDLETYPE)p1,\
862 pThis->omx_report_error ();
866 if (pThis->empty_this_buffer_proxy((OMX_HANDLETYPE)p1,\
869 pThis->omx_report_error ();
874 if ( pThis->fill_this_buffer_proxy((OMX_HANDLETYPE)p1,\
877 pThis->omx_report_error ();
882 pThis->send_command_proxy(&pThis->m_cmp,(OMX_COMMANDTYPE)p1,\
890 pThis->omx_report_error ();
893 pThis->m_inp_err_count++;
894 pThis->time_stamp_dts.remove_time_stamp(
896 (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive)
899 pThis->m_inp_err_count = 0;
901 if ( pThis->empty_buffer_done(&pThis->m_cmp,
904 pThis->omx_report_error ();
906 if (pThis->m_inp_err_count >= MAX_INPUT_ERROR) {
908 pThis->omx_report_error ();
916 pThis->time_stamp_dts.remove_time_stamp(*timestamp,
917 (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive)
926 pThis->omx_report_error ();
927 } else if ( pThis->fill_buffer_done(&pThis->m_cmp,
930 pThis->omx_report_error ();
936 if (!pThis->input_flush_progress) {
939 pThis->execute_input_flush();
940 if (pThis->m_cb.EventHandler) {
943 pThis->omx_report_error ();
946 if (BITMASK_PRESENT(&pThis->m_flags,
948 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_INPUT_FLUSH_PENDING);
950 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
954 if (BITMASK_PRESENT(&pThis->m_flags,
956 if (pThis->stream_off(OMX_CORE_INPUT_PORT_INDEX)) {
958 pThis->omx_report_error ();
960 pThis->streaming[OUTPUT_PORT] = false;
962 if (!pThis->output_flush_progress) {
964 pThis->post_event ((unsigned int)NULL, VDEC_S_SUCCESS,\
977 if (!pThis->output_flush_progress) {
980 pThis->execute_output_flush();
981 if (pThis->m_cb.EventHandler) {
984 pThis->omx_report_error ();
987 if (BITMASK_PRESENT(&pThis->m_flags,
990 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_OUTPUT_FLUSH_PENDING);
991 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
995 if (BITMASK_PRESENT(&pThis->m_flags,
998 BITMASK_CLEAR (&pThis->m_flags,
1000 if (BITMASK_PRESENT(&pThis->m_flags,
1002 pThis->post_event(OMX_CommandPortDisable,
1005 BITMASK_CLEAR (&pThis->m_flags,
1011 if (BITMASK_PRESENT(&pThis->m_flags ,OMX_COMPONENT_IDLE_PENDING)) {
1012 if (pThis->stream_off(OMX_CORE_OUTPUT_PORT_INDEX)) {
1014 pThis->omx_report_error ();
1017 pThis->streaming[CAPTURE_PORT] = false;
1018 if (!pThis->input_flush_progress) {
1020 pThis->post_event ((unsigned int)NULL, VDEC_S_SUCCESS,\
1034 if (pThis->m_cb.EventHandler) {
1037 pThis->omx_report_error ();
1040 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
1043 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
1044 pThis->m_state = OMX_StateExecuting;
1045 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1048 } else if (BITMASK_PRESENT(&pThis->m_flags,
1050 if (/*ioctl (pThis->drv_ctx.video_driver_fd,
1053 pThis->omx_report_error ();
1064 if (pThis->m_cb.EventHandler) {
1067 pThis->omx_report_error ();
1069 pThis->complete_pending_buffer_done_cbs();
1070 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_PAUSE_PENDING)) {
1073 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_PAUSE_PENDING);
1074 pThis->m_state = OMX_StatePause;
1075 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1088 if (pThis->m_cb.EventHandler) {
1091 pThis->omx_report_error ();
1093 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
1096 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
1097 pThis->m_state = OMX_StateExecuting;
1098 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1111 if (pThis->m_cb.EventHandler) {
1114 pThis->omx_report_error ();
1116 pThis->complete_pending_buffer_done_cbs();
1117 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_IDLE_PENDING)) {
1120 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_IDLE_PENDING);
1121 pThis->m_state = OMX_StateIdle;
1123 pThis->m_cb.EventHandler(&pThis->m_cmp,pThis->m_app_data,
1138 pThis->in_reconfig = true;
1140 if (pThis->m_cb.EventHandler) {
1141 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1147 if (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive) {
1150 if (pThis->drv_ctx.interlace == VDEC_InterlaceInterleaveFrameTopFieldFirst)
1152 else if (pThis->drv_ctx.interlace == VDEC_InterlaceInterleaveFrameBottomFieldFirst)
1156 if (pThis->m_cb.EventHandler) {
1157 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1167 if (pThis->m_cb.EventHandler) {
1168 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, OMX_EventBufferFlag,
1173 pThis->prev_ts = LLONG_MAX;
1174 pThis->rst_prev_ts = true;
1179 pThis->omx_report_error ();
1184 if (pThis->m_cb.EventHandler) {
1185 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1195 pthread_mutex_lock(&pThis->m_lock);
1196 qsize = pThis->m_cmd_q.m_size;
1197 if (pThis->m_state != OMX_StatePause)
1198 qsize += (pThis->m_ftb_q.m_size + pThis->m_etb_q.m_size);
1199 pthread_mutex_unlock(&pThis->m_lock);