Lines Matching defs:pThis
633 omx_vdec *pThis = (omx_vdec *) ctxt;
635 if (!pThis) {
644 pthread_mutex_lock(&pThis->m_lock);
645 qsize = pThis->m_cmd_q.m_size;
648 pThis->m_cmd_q.pop_entry(&p1,&p2,&ident);
651 if (qsize == 0 && pThis->m_state != OMX_StatePause) {
652 qsize = pThis->m_ftb_q.m_size;
655 pThis->m_ftb_q.pop_entry(&p1,&p2,&ident);
659 if (qsize == 0 && pThis->m_state != OMX_StatePause) {
660 qsize = pThis->m_etb_q.m_size;
663 pThis->m_etb_q.pop_entry(&p1,&p2,&ident);
667 pthread_mutex_unlock(&pThis->m_lock);
676 if (pThis->m_cb.EventHandler) {
679 pThis->m_state = (OMX_STATETYPE) p2;
681 pThis->m_state);
682 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
690 pThis->m_state = (OMX_STATETYPE) p2;
691 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
694 pThis->omx_report_error();
696 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
705 if (BITMASK_PRESENT(&pThis->m_flags,
707 BITMASK_SET(&pThis->m_flags, OMX_COMPONENT_DISABLE_OUTPUT_DEFERRED);
711 if (p2 == OMX_CORE_OUTPUT_PORT_INDEX && pThis->in_reconfig) {
712 pThis->in_reconfig = false;
713 pThis->drv_ctx.op_buf = pThis->op_buf_rcnfg;
714 OMX_ERRORTYPE eRet = pThis->set_buffer_req(&pThis->drv_ctx.op_buf);
718 pThis->omx_report_error();
723 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
728 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,\
733 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
745 if (pThis->empty_this_buffer_proxy_arbitrary((OMX_HANDLETYPE)p1,\
748 pThis->omx_report_error ();
754 if (pThis->empty_this_buffer_proxy((OMX_HANDLETYPE)p1,\
757 pThis->omx_report_error ();
764 if ( pThis->fill_this_buffer_proxy((OMX_HANDLETYPE)p1,\
767 pThis->omx_report_error ();
773 pThis->send_command_proxy(&pThis->m_cmp,(OMX_COMMANDTYPE)p1,\
781 pThis->omx_report_error ();
784 pThis->m_inp_err_count++;
785 pThis->time_stamp_dts.remove_time_stamp(
787 (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive)
790 pThis->m_inp_err_count = 0;
793 if ( pThis->empty_buffer_done(&pThis->m_cmp,
796 pThis->omx_report_error ();
799 if (!pThis->arbitrary_bytes && pThis->m_inp_err_count > MAX_INPUT_ERROR) {
801 pThis->omx_report_error ();
811 pThis->time_stamp_dts.remove_time_stamp(*timestamp,
812 (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive)
822 pThis->omx_report_error ();
823 } else if ( pThis->fill_buffer_done(&pThis->m_cmp,
826 pThis->omx_report_error ();
834 if (!pThis->input_flush_progress) {
837 pThis->execute_input_flush();
839 if (pThis->m_cb.EventHandler) {
842 pThis->omx_report_error ();
845 if (BITMASK_PRESENT(&pThis->m_flags,
847 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_INPUT_FLUSH_PENDING);
849 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
854 if (BITMASK_PRESENT(&pThis->m_flags,
856 if (!pThis->output_flush_progress) {
859 if (ioctl (pThis->drv_ctx.video_driver_fd,
862 pThis->omx_report_error ();
877 if (!pThis->output_flush_progress) {
880 pThis->execute_output_flush();
882 if (pThis->m_cb.EventHandler) {
885 pThis->omx_report_error ();
888 if (BITMASK_PRESENT(&pThis->m_flags,
891 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_OUTPUT_FLUSH_PENDING);
892 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
897 if (BITMASK_PRESENT(&pThis->m_flags,
900 BITMASK_CLEAR (&pThis->m_flags,
903 if (BITMASK_PRESENT(&pThis->m_flags,
905 pThis->post_event(OMX_CommandPortDisable,
908 BITMASK_CLEAR (&pThis->m_flags,
914 if (BITMASK_PRESENT(&pThis->m_flags ,OMX_COMPONENT_IDLE_PENDING)) {
915 if (!pThis->input_flush_progress) {
918 if (ioctl (pThis->drv_ctx.video_driver_fd,
921 pThis->omx_report_error ();
936 if (pThis->m_cb.EventHandler) {
939 pThis->omx_report_error ();
943 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
946 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
947 pThis->m_state = OMX_StateExecuting;
948 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
951 } else if (BITMASK_PRESENT(&pThis->m_flags,
953 if (ioctl (pThis->drv_ctx.video_driver_fd,
956 pThis->omx_report_error ();
969 if (pThis->m_cb.EventHandler) {
972 pThis->omx_report_error ();
974 pThis->complete_pending_buffer_done_cbs();
976 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_PAUSE_PENDING)) {
979 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_PAUSE_PENDING);
980 pThis->m_state = OMX_StatePause;
981 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
995 if (pThis->m_cb.EventHandler) {
998 pThis->omx_report_error ();
1000 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
1003 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
1004 pThis->m_state = OMX_StateExecuting;
1005 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1019 if (pThis->m_cb.EventHandler) {
1022 pThis->omx_report_error ();
1024 pThis->complete_pending_buffer_done_cbs();
1026 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_IDLE_PENDING)) {
1029 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_IDLE_PENDING);
1030 pThis->m_state = OMX_StateIdle;
1032 pThis->m_cb.EventHandler(&pThis->m_cmp,pThis->m_app_data,
1046 if (pThis->start_port_reconfig() != OMX_ErrorNone)
1047 pThis->omx_report_error();
1049 if (pThis->in_reconfig) {
1050 if (pThis->m_cb.EventHandler) {
1051 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1058 if (pThis->drv_ctx.interlace != VDEC_InterlaceFrameProgressive) {
1062 if (pThis->drv_ctx.interlace == VDEC_InterlaceInterleaveFrameTopFieldFirst)
1064 else if (pThis->drv_ctx.interlace == VDEC_InterlaceInterleaveFrameBottomFieldFirst)
1069 if (pThis->m_cb.EventHandler) {
1070 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1083 if (pThis->m_cb.EventHandler) {
1084 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data, OMX_EventBufferFlag,
1090 pThis->prev_ts = LLONG_MAX;
1091 pThis->rst_prev_ts = true;
1096 pThis->omx_report_error ();
1102 if (pThis->m_cb.EventHandler) {
1103 pThis->m_cb.EventHandler(&pThis->m_cmp, pThis->m_app_data,
1110 pThis->power_module_deregister();
1111 pThis->power_module_register();
1118 pthread_mutex_lock(&pThis->m_lock);
1119 qsize = pThis->m_cmd_q.m_size;
1121 if (pThis->m_state != OMX_StatePause)
1122 qsize += (pThis->m_ftb_q.m_size + pThis->m_etb_q.m_size);
1124 pthread_mutex_unlock(&pThis->m_lock);