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

📄 vo_example.c

📁 DawnLightPlayer,一个新的基于ffmpeg的全功能播放器
💻 C
字号:
/********************************************** * Dawn Light Player * *   vo_example.c * * Created by kf701 * 14:11:50 02/26/08 CST * * $Id: vo_example.c 168 2008-03-21 02:50:01Z kf701 $ **********************************************/#if ENABLE_VO_NULL#include "avcodec.h"#include "avoutput.h"#include "global.h"static pthread_mutex_t vo_mutex;static void vo_lock_init(){	pthread_mutex_init(&vo_mutex,NULL);}static void vo_lock_free(){	pthread_mutex_destroy(&vo_mutex);}static void vo_lock(){	pthread_mutex_lock(&vo_mutex);}static void vo_unlock(){	pthread_mutex_unlock(&vo_mutex);}static int vo_example_init(void){	/* ... */	vo_lock_init();	return 0;}static int vo_example_uninit(void){	vo_lock();	/* ... */	vo_lock_free();	return 0;}static void vo_example_display(AVPicture *pict){	vo_lock();	/* ... */	vo_unlock();	return;}static void vo_example_event_loop(void){	while (1)		pause();}vo_t vo_null ={	VO_ID_EXAMPLE,	"null",	vo_example_init,	vo_example_uninit,	vo_example_display,	NULL,};#endif

⌨️ 快捷键说明

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