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

📄 fbmain.c

📁 TI dm6446 video subsytem window blending programme
💻 C
字号:
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "davinci_fb.h"#undef DBG#define DBG(x,...)int main(int argc, char *argv[]){	int ret = 0;	char *fb_name = NULL;    if(argc >= 2)    {        fb_name = argv[1]; //osd1, osd0, vid0		DBG("argc: %d\n", argc);        DBG("fb_name = %s\n", fb_name);	}	else 		return 1;	if(!strcmp(fb_name, "osd0"))	{		ret = init_osd0();	}	else if(!strcmp(fb_name, "osd1"))	{		int on_;		char *onflag_ = argv[2];		on_ = (!strcmp(onflag_, "on")) ? 1 : 0;		ret = init_osd1(on_);  	}	else if(!strcmp(fb_name, "vid1"))	{		ret = init_vid1();	}    else if(!strcmp(fb_name, "vid0"))    {        ret = init_vid0();    }	else if(!strcmp(fb_name, "cursor"))	{		int xp = 0, yp = 0, xl = 0, yl = 0;		if(argc == 6)		{			xp = atoi(argv[2]);			yp = atoi(argv[3]);			xl = atoi(argv[4]);			yl = atoi(argv[5]);		}		ret = init_cursor(xp, yp, xl, yl, (argc < 6));	}	else		printf("Error! check input\n");			return 0;}

⌨️ 快捷键说明

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