Lines Matching refs:pThis
392 omx_video *pThis = (omx_video *) ctxt;
394 if (!pThis) {
403 pthread_mutex_lock(&pThis->m_lock);
404 qsize = pThis->m_cmd_q.m_size;
406 pThis->m_cmd_q.pop_entry(&p1,&p2,&ident);
410 qsize = pThis->m_ftb_q.m_size;
412 pThis->m_ftb_q.pop_entry(&p1,&p2,&ident);
417 qsize = pThis->m_etb_q.m_size;
419 pThis->m_etb_q.pop_entry(&p1,&p2,&ident);
423 pthread_mutex_unlock(&pThis->m_lock);
430 if (pThis->m_pCallbacks.EventHandler) {
433 pThis->m_state = (OMX_STATETYPE) p2;
434 DEBUG_PRINT_LOW("Process -> state set to %d", pThis->m_state);
435 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
442 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
445 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
454 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
460 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,\
466 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
477 if (pThis->empty_this_buffer_opaque((OMX_HANDLETYPE)p1,\
480 pThis->omx_report_error ();
486 iret = pThis->empty_this_buffer_proxy((OMX_HANDLETYPE)p1, (OMX_BUFFERHEADERTYPE *)p2);
489 pThis->omx_report_hw_overload ();
492 pThis->omx_report_error ();
498 if ( pThis->fill_this_buffer_proxy((OMX_HANDLETYPE)p1,\
501 pThis->omx_report_error ();
506 pThis->send_command_proxy(&pThis->m_cmp,(OMX_COMMANDTYPE)p1,\
511 if ( pThis->empty_buffer_done(&pThis->m_cmp,
514 pThis->omx_report_error ();
519 if ( pThis->fill_buffer_done(&pThis->m_cmp,
522 pThis->omx_report_error ();
528 pThis->input_flush_progress = false;
531 if (pThis->m_pCallbacks.EventHandler) {
533 if (BITMASK_PRESENT(&pThis->m_flags,
535 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_INPUT_FLUSH_PENDING);
536 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
539 } else if (BITMASK_PRESENT(&pThis->m_flags,
541 if (!pThis->output_flush_progress) {
545 pThis->omx_report_error ();
555 pThis->output_flush_progress = false;
558 if (pThis->m_pCallbacks.EventHandler) {
560 if (BITMASK_PRESENT(&pThis->m_flags,
562 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_OUTPUT_FLUSH_PENDING);
564 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
567 } else if (BITMASK_PRESENT(&pThis->m_flags ,OMX_COMPONENT_IDLE_PENDING)) {
569 if (!pThis->input_flush_progress) {
572 pThis->omx_report_error ();
582 if (pThis->m_pCallbacks.EventHandler) {
584 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
588 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
589 pThis->m_state = OMX_StateExecuting;
590 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
593 } else if (BITMASK_PRESENT(&pThis->m_flags,
597 pThis->omx_report_error ();
599 } else if (BITMASK_PRESENT(&pThis->m_flags,
605 pThis->omx_report_error ();
607 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_LOADED_START_PENDING);
609 DEBUG_PRINT_LOW("ERROR: unknown flags=%" PRIx64, pThis->m_flags);
618 if (pThis->m_pCallbacks.EventHandler) {
619 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_PAUSE_PENDING)) {
621 pThis->complete_pending_buffer_done_cbs();
623 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_PAUSE_PENDING);
624 pThis->m_state = OMX_StatePause;
625 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
635 if (pThis->m_pCallbacks.EventHandler) {
636 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
638 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
639 pThis->m_state = OMX_StateExecuting;
640 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
650 if (pThis->m_pCallbacks.EventHandler) {
651 pThis->complete_pending_buffer_done_cbs();
652 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_IDLE_PENDING)) {
654 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_IDLE_PENDING);
655 pThis->m_state = OMX_StateIdle;
656 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp,pThis->m_app_data,
659 } else if (BITMASK_PRESENT(&pThis->m_flags,
665 pThis->omx_report_error ();
667 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_LOADED_STOP_PENDING);
669 DEBUG_PRINT_LOW("ERROR: unknown flags=%" PRIx64, pThis->m_flags);
677 pThis->omx_report_error ();
682 if (pThis->m_pCallbacks.EventHandler) {
684 pThis->m_pCallbacks.EventHandler(
685 &pThis->m_cmp, pThis->m_app_data,
692 pThis->omx_report_unsupported_setting();
697 pThis->omx_report_hw_overload();
706 pthread_mutex_lock(&pThis->m_lock);
707 qsize = pThis->m_cmd_q.m_size + pThis->m_ftb_q.m_size +\
708 pThis->m_etb_q.m_size;
710 pthread_mutex_unlock(&pThis->m_lock);