camera.c

来自「君正早期ucos系统(只有早期的才不没有打包成库),MPLAYER,文件系统,图」· C语言 代码 · 共 98 行

C
98
字号
/************************************************ * Camera utilities interface --Ingeic ************************************************/#include "camera.h"#include "jz4740.h"//#ifndef NULL//#define NULL	0//#endif//extern void black_white_negative_mode (void);extern void negative_mode (void);extern void antique_mode (void);extern void black_white_mode (void);extern void normal_mode (void);extern void de_night_mode(void);extern void de_night_mode(void);//extern void init_sensor(void);/* Init and open camera */void camera_open(img_param_t *img){	cim_init(img);	udelay(100);	init_sensor(img);	cim_start();}/* Close camera */void camera_close(void){	cim_close();}/* Disable CIM modules and stop to capture data */void camera_pause(void) {	cim_stop();}/* Cotinue to capture data from sensor */void camera_continue(void) {	cim_start();}/* Camera enter night mode*/void enter_night_mode(void) {	cim_stop();	night_mode();	cim_start();}/* Camera exit night mode*/void exit_night_mode(void) {	cim_stop();	de_night_mode();	cim_start();}/* Camera enter normal mode*/void enter_normal_mode(void) {	cim_stop();	normal_mode();	cim_start();}/* Camera enter black & white mode*/void enter_black_white_mode(void) {	cim_stop();	black_white_mode();	cim_start();}/* Camera enter antique mode*/void enter_antique_mode(void) {	cim_stop();	antique_mode();	cim_start();}/* Camera enter negative mode*/void enter_negative_mode(void) {	cim_stop();	negative_mode();	cim_start();}/* Camera enter black & white negative mode*//*void enter_black_white_negative_mode(void) {	cim_stop();	black_white_negative_mode();	cim_start();}*/

⌨️ 快捷键说明

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