tskvideodec1.c

来自「ZPAV (H265) DM64XX(TI) demo ZPAV (H」· C语言 代码 · 共 49 行

C
49
字号

/*
///////////////////////////////////////////////////////////////////////////////
//                                                                           //
//   Copyright (C) 2006-2008  Beijing,  pengzhen  (pengzhenxp@yahoo.com.cn)  //
//                                                                           //
///////////////////////////////////////////////////////////////////////////////
*/

void tskVideoDec()
{

	LCK_Handle m_hVoInMutex = LCK_create( NULL ) ; /* Mutex */
	
	while(1)
    {
		/* acquire Semaphore */
		SemPend( m_hVoInSem , SYS_FOREVER ) ;
		/* acquire Mutex */
		LCK_pend( m_hVoInMutex, SYS_FOREVER ) ; 
		
		/* Yuv420 */
		m_dvp_ctx.i420_y = m_Yuv420_In->m_pBuf_y ;
		m_dvp_ctx.i420_u = m_Yuv420_In->m_pBuf_u ;
		m_dvp_ctx.i420_v = m_Yuv420_In->m_pBuf_v ; 

		/* bit stream */
		m_dvp_ctx.stream = m_dnp_ctx_rx.video ;
		m_dvp_ctx.stream_length = m_dnp_ctx_rx.video_length ;

		/* get next buffer */
		m_Yuv420_In = m_Yuv420_In->m_pNext ; //m_Yuv420_Cnt -- ; 

		/* video decode */
		dvp_decode_frame( &m_dvp_ctx ) ; //m_dvp_ctx.frame_number ++ ; ///////////////////
		
		/*release Semaphore*/
		SemPost( m_hVoOutSem ) ; /* Vo */  
		
		/*release Mutex*/
		LCK_post( m_hVoInMutex ) ;
		
    } /* while(1) */

	//LCK_delete( m_hVoInMutex ) ;

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?