Lines Matching defs:pThis
317 omx_video *pThis = (omx_video *) ctxt;
319 if (!pThis) {
328 pthread_mutex_lock(&pThis->m_lock);
329 qsize = pThis->m_cmd_q.m_size;
331 pThis->m_cmd_q.pop_entry(&p1,&p2,&ident);
335 qsize = pThis->m_ftb_q.m_size;
337 pThis->m_ftb_q.pop_entry(&p1,&p2,&ident);
342 qsize = pThis->m_etb_q.m_size;
344 pThis->m_etb_q.pop_entry(&p1,&p2,&ident);
348 pthread_mutex_unlock(&pThis->m_lock);
355 if (pThis->m_pCallbacks.EventHandler) {
358 pThis->m_state = (OMX_STATETYPE) p2;
359 DEBUG_PRINT_LOW("Process -> state set to %d", pThis->m_state);
360 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
367 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
370 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
379 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
385 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,\
391 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
402 if (pThis->empty_this_buffer_opaque((OMX_HANDLETYPE)p1,\
405 pThis->omx_report_error ();
410 if (pThis->empty_this_buffer_proxy((OMX_HANDLETYPE)p1,\
413 pThis->omx_report_error ();
418 if ( pThis->fill_this_buffer_proxy((OMX_HANDLETYPE)p1,\
421 pThis->omx_report_error ();
426 pThis->send_command_proxy(&pThis->m_cmp,(OMX_COMMANDTYPE)p1,\
431 if ( pThis->empty_buffer_done(&pThis->m_cmp,
434 pThis->omx_report_error ();
439 if ( pThis->fill_buffer_done(&pThis->m_cmp,
442 pThis->omx_report_error ();
448 pThis->input_flush_progress = false;
451 if (pThis->m_pCallbacks.EventHandler) {
453 if (BITMASK_PRESENT(&pThis->m_flags,
455 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_INPUT_FLUSH_PENDING);
456 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
459 } else if (BITMASK_PRESENT(&pThis->m_flags,
461 if (!pThis->output_flush_progress) {
465 pThis->omx_report_error ();
475 pThis->output_flush_progress = false;
478 if (pThis->m_pCallbacks.EventHandler) {
480 if (BITMASK_PRESENT(&pThis->m_flags,
482 BITMASK_CLEAR (&pThis->m_flags,OMX_COMPONENT_OUTPUT_FLUSH_PENDING);
484 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
487 } else if (BITMASK_PRESENT(&pThis->m_flags ,OMX_COMPONENT_IDLE_PENDING)) {
489 if (!pThis->input_flush_progress) {
492 pThis->omx_report_error ();
502 if (pThis->m_pCallbacks.EventHandler) {
504 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
508 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
509 pThis->m_state = OMX_StateExecuting;
510 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
513 } else if (BITMASK_PRESENT(&pThis->m_flags,
517 pThis->omx_report_error ();
519 } else if (BITMASK_PRESENT(&pThis->m_flags,
525 pThis->omx_report_error ();
527 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_LOADED_START_PENDING);
529 DEBUG_PRINT_LOW("ERROR: unknown flags=%x",pThis->m_flags);
538 if (pThis->m_pCallbacks.EventHandler) {
539 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_PAUSE_PENDING)) {
541 pThis->complete_pending_buffer_done_cbs();
543 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_PAUSE_PENDING);
544 pThis->m_state = OMX_StatePause;
545 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
555 if (pThis->m_pCallbacks.EventHandler) {
556 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_EXECUTE_PENDING)) {
558 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_EXECUTE_PENDING);
559 pThis->m_state = OMX_StateExecuting;
560 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp, pThis->m_app_data,
570 if (pThis->m_pCallbacks.EventHandler) {
571 pThis->complete_pending_buffer_done_cbs();
572 if (BITMASK_PRESENT(&pThis->m_flags,OMX_COMPONENT_IDLE_PENDING)) {
574 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_IDLE_PENDING);
575 pThis->m_state = OMX_StateIdle;
576 pThis->m_pCallbacks.EventHandler(&pThis->m_cmp,pThis->m_app_data,
579 } else if (BITMASK_PRESENT(&pThis->m_flags,
585 pThis->omx_report_error ();
587 BITMASK_CLEAR((&pThis->m_flags),OMX_COMPONENT_LOADED_STOP_PENDING);
589 DEBUG_PRINT_LOW("ERROR: unknown flags=%x",pThis->m_flags);
597 pThis->omx_report_error ();
602 if (pThis->m_pCallbacks.EventHandler) {
604 pThis->m_pCallbacks.EventHandler(
605 &pThis->m_cmp, pThis->m_app_data,
616 pthread_mutex_lock(&pThis->m_lock);
617 qsize = pThis->m_cmd_q.m_size + pThis->m_ftb_q.m_size +\
618 pThis->m_etb_q.m_size;
620 pthread_mutex_unlock(&pThis->m_lock);