zc030x_matrix.h

来自「中星微301摄想头最新驱动」· C头文件 代码 · 共 47 行

H
47
字号
#ifndef h_Zc030x_Gamma_h#define h_Zc030x_Gamma_h/* This files declares gamma creation      *//* Driver file -   Zc030x -    Driver file */ /* This file is under GPL                  *//* Copyright :		Cyril	Russo					   -------------------------------------------*//* Include kernel definitions */#include "zc030x_kerneldef.h"/* Include floating over fixed point maths */#include "zc030x_fp.h"/* Define gamma array size */#define GammaArraySize			32/* Clip to [0:255] range */#define Clip(X)					((X) < 0 ? 0 : ((X) > 255 ? 255 : (X))) /* Now declare the series *//* Floating point numbers using Fixed point maths */typedef struct {	FPNum a[5];		/* The x^i coefficient */} FPGammaGenerator;/* Same thing but with strings (needed to initialize the previous table) */typedef struct {	const char * a[5];		/* The x^i coefficient */} StrGammaGenerator;/* The function that output the gamma array *//* dGamma should be in [1;5], I have no idea if it's real gamma *//* dBrightness should be in [-1;1], 0 for no change *//* dContrast should be in [-1;1], 0 for no change */const __u8 * zc030x_gamma_create(const char * acGamma, const char * acBrightness, const char * acContrast);/* This function is the same as the above one, except that it directly takes FPNum */const __u8 * zc030x_gamma_create_FPNum(FPNum dGamma, FPNum dBrightness, FPNum dContrast);/* Initialize the arrays (should be done once) */int zc030x_gamma_init(void);#endif

⌨️ 快捷键说明

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