⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tskvideooutput1.c

📁 ZPAV (H265) DM64XX(TI) demo ZPAV (H265) 是 音视频 压缩解压 协议
💻 C
字号:

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

void tskVideoOutput()
{
	
	LCK_Handle m_hVoOutMutex = LCK_create( NULL ) ; /* Mutex */

	FVID_Frame *disFrameBuf; 
	
	FVID_alloc(m_hVo, &disFrameBuf);

    while(1)
    {
        /* acquire Semaphore */
		SemPend( m_hVoOutSem , SYS_FOREVER ) ;

		/* acquire Mutex */
		LCK_pend( m_hVoOutMutex, SYS_FOREVER ) ; 
		
		/* Yuv420 to RGB */ 
		m_dvp_pack_yuv420( m_Yuv420_Out->m_pBuf_y, image_width,
				           m_Yuv420_Out->m_pBuf_u, 
				           m_Yuv420_Out->m_pBuf_v, (image_width>>1),
				           disFrameBuf->frame.pFrm.y, 
						   image_width, image_height, (image_width<<1) ) ;

		/* get next buffer */
		m_Yuv420_Out = m_Yuv420_Out->m_pNext ; //m_Yuv420_Cnt ++ ; 

        //CACHE_clean(CACHE_L2ALL, 0, 0);

        /* Get a new buffer from the display driver */
        FVID_exchange(m_hVo, &disFrameBuf);
       
		/*release Mutex*/
		LCK_post( m_hVoOutMutex ) ;
    }

	//LCK_delete( m_hVoOutMutex ) ;

}



⌨️ 快捷键说明

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