📄 api_def.h
字号:
/* the strip to be written to the I43 by the I43_SetOSDStrip API. */
I43_OSD_STRING_MEM_LOCATION = (short )0x05,
/* Place Holder. */
I43_PLACE_HOLDER_06_MEM_LOCATION = (short )0x06,
/* I43_SetCCD. */
I43_CCD_TG_MEM_LOCATION = (short )0x07,
/* I43_UartLibWrite. */
I43_UART_LIB_WRITE_MEM_LOCATION = (short )0x08,
/* I43_UartLibRead. */
I43_UART_LIB_READ_MEM_LOCATION = (short )0x09,
/* I43_SetImageTitle. */
I43_IMAGE_TITLE_MEM_LOCATION = (short )0x0A,
/* the array of parameters to be written using the I43_GetParamArray API. */
I43_SET_PARAM_ARRAY_MEM_LOCATION = (short )0x0B,
/* the array of parameters to read using the I43_GetParamArray API. */
I43_GET_PARAM_ARRAY_MEM_LOCATION = (short )0x0C,
/* Place Holder. */
I43_PLACE_HOLDER_0D_MEM_LOCATION = (short )0x0D,
/* the data to write to the I43 memory. */
I43_SET_MEM_MEM_LOCATION = (short )0x0E,
/* the data to read from the I43 memory. */
I43_GET_MEM_MEM_LOCATION = (short )0x0F,
/* the image read from the I43 DRAM using the I43_GetImage function. */
I43_GET_IMAGE_MEM_LOCATION = (short )0x10,
/* Place Holder. */
I43_PLACE_HOLDER_11_MEM_LOCATION = (short )0x11,
/* Place Holder. */
I43_PLACE_HOLDER_12_MEM_LOCATION = (short )0x12,
/* the Time/Date information to write to the I43 (I43_SetDateTime). */
I43_DATE_TIME_MEM_LOCATION = (short )0x13,
/* the data to be written to the flash memory using the I43_WriteFlashBurst API. */
I43_FLASH_BURST_MEM_LOCATION = (short )0x14,
/* the Path to be set using the I43_SetCurrentPath API. */
I43_CURRENT_PATH_MEM_LOCATION = (short )0x15,
/* Place Holder */
I43_PLACE_HOLDER_16_MEM_LOCATION = (short )0x16,
/* the returned Luma Histogram from the I43_GetLumaHistogram API. */
I43_LUMA_HISTOGRAM_MEM_LOCATION = (short )0x17,
/* Place Holder */
I43_PLACE_HOLDER_18_MEM_LOCATION = (short )0x18,
/* the Time/Date information read from the I43 using the I43_GetImageDateTime API. */
I43_GET_DATE_TIME_MEM_LOCATION = (short )0x19,
/* the parameters read from the I43 using the I43_GetFreeParams function. */
I43_GET_FPARAMS_MEM_LOCATION = (short )0x1A,
/* the parameters written to the I43 using the I43_SetFreeParams function. */
I43_SET_FPARAMS_MEM_LOCATION = (short )0x1B,
/* the AWB LUT written to the I43 using the I43_SetAWBWeightLUTs API. */
I43_AWB_LUTS_MEM_LOCATION = (short )0x1C,
/* the file read from the I43 using the I43_XMTFile function. */
I43_XMT_FILE_MEM_LOCATION = (short )0x1D,
/* the Thumbnails read from the I43 using the I43_XMTThumbnails function. */
I43_XMT_THUMBNAIL_MEM_LOCATION = (short )0x1E,
/* placeholder */
I43_PLACE_HOLDER_1F_MEM_LOCATION = (short )0x1F,
/* placeholder */
I43_PLACE_HOLDER_20_MEM_LOCATION = (short )0x20,
/* the data to be written to the I43 using the I43_SetImageExif function. */
I43_SET_EXIF_MEM_LOCATION = (short )0x21,
/* the data that was read from the I43 using the I43_GetImageExif function. */
I43_GET_EXIF_MEM_LOCATION = (short )0x22,
/* placeholder */
I43_PLACE_HOLDER_23_MEM_LOCATION = (short )0x23,
/* the file to be uploaded to the I43. */
I43_RCV_FILE_MEM_LOCATION = (short )0x24,
/* the DPOF attributes to be uploaded to the I43. */
I43_SET_DPOF_ATTR_MEM_LOCATION = (short )0x25,
/* the DPOF attributes read from the I43. */
I43_GET_DPOF_ATTR_MEM_LOCATION = (short )0x26,
/* the strip to be written to the I43 by the I43_OSDTextOut API. */
I43_OSD_TEXT_OUT_MEM_LOCATION = (short )0x27,
/* the strip to be written to the I43 by the I43_OSDDrawText API. */
I43_OSD_DRAW_TEXT_MEM_LOCATION = (short )0x28,
/* the data to be written to the I43 by the I43_WriteI2CBurst API. */
I43_WRITE_I2C_MEM_LOCATION = (short )0x29,
/* the data to be read from the I43 by the I43_ReadI2CBurst API. */
I43_READ_I2C_MEM_LOCATION = (short )0x2A,
/* The text strip to be written to the I43 by the I43_DrawText API: */
I43_DRAW_TEXT_MEM_LOCATION = (short )0x2B,
} I43_MEMORY_LOCATION;
#define NUMBER_OF_MEM_LOCATIONS 0x30
#define FILE_NAME_SIZE 256
/* ****************************************************************** */
/* Global Enumerators */
/* ****************************************************************** */
typedef enum _I43_RGB
{
I43_R = (short )0x0000,
I43_G = (short )0x0001,
I43_B = (short )0x0002
} I43_RGB;
typedef enum _I43_YUV
{
I43_Y = (short )0x0000,
I43_U = (short )0x0001,
I43_V = (short )0x0002
} I43_YUV;
/* ****************************************************************** */
/* DPOF Modes */
/* ****************************************************************** */
typedef enum _I43_DPOF_MODE
{
I43_DPOF_MODE_STANDARD = (I43_UINT8)0x00,
I43_DPOF_MODE_INDEX = (I43_UINT8)0x01
} I43_DPOF_MODE;
/* ****************************************************************** */
/* Config Auto Focus */
/* ****************************************************************** */
typedef enum _I43_CONFIG_AF
{
I43CAF_SET_ROI = (char )0x00,
I43CAF_SET_MODE_ULC = (char )0x10,
I43CAF_SET_MODE_LC = (char )0x11
} I43_CONFIG_AF;
/* ****************************************************************** */
/* Display Modes */
/* ****************************************************************** */
typedef enum _I43_DISPLAY_MODE
{
I43DM_DISABLE = (char )0x00,
I43DM_IMAGE_ONLY = (char )0x01,
I43DM_OSD_ONLY = (char )0x02,
I43DM_ENABLE = (char )0x03
} I43_DISPLAY_MODE;
/* ****************************************************************** */
/* Video Standards */
/* ****************************************************************** */
typedef enum _I43_VIDEO_STD
{
I43VS_NTSC = (char )0x00,
I43VS_PAL = (char )0x01
} I43_VIDEO_STD;
/* ****************************************************************** */
/* Video Formats */
/* ****************************************************************** */
typedef enum _I43_VIDEO_FORMAT
{
I43VF_CVBS = (char )0x00,
I43VF_Y_C = (char )0x01,
I43VF_RGB = (char )0x02,
I43VF_RGB_G = (char )0x03,
I43VF_EPSON_DLCD = (char )0x04,
I43VF_UNIPAC_2_DLCD = (char )0x06,
I43VF_UNIPAC_1_8_DLCD = (char )0x07,
I43VF_STN_AT3210 = (char )0x08
} I43_VIDEO_FORMAT;
/* ****************************************************************** */
/* Config Sys field enumarator */
/* ****************************************************************** */
#define I43_CONFIGSYS_VIDEO_DISPLAY (char )0x00
#define I43_CONFIGSYS_VIDEO_OUT_FORMAT (char )0x10
#define I43_CONFIGSYS_VIDEO_STANDARD (char )0x20
/* ****************************************************************** */
/* Compression Ratios */
/* ****************************************************************** */
typedef enum _I43_COMPRESSION_RATIO
{
I43CR_4_0 = (short )0x0000,
I43CR_4_5 = (short )0x0001,
I43CR_5_0 = (short )0x0002,
I43CR_5_5 = (short )0x0003,
I43CR_6_0 = (short )0x0004,
I43CR_6_5 = (short )0x0005,
I43CR_7_0 = (short )0x0006,
I43CR_7_5 = (short )0x0007,
I43CR_8_0 = (short )0x0008,
I43CR_8_5 = (short )0x0009,
I43CR_9_0 = (short )0x000A,
I43CR_9_5 = (short )0x000B,
I43CR_10_0 = (short )0x000C,
I43CR_12_0 = (short )0x000D,
I43CR_14_0 = (short )0x000E,
I43CR_16_0 = (short )0x000F,
I43CR_17_0 = (short )0x0010,
I43CR_18_0 = (short )0x0011,
I43CR_19_0 = (short )0x0012,
I43CR_20_0 = (short )0x0013,
I43CR_21_0 = (short )0x0014,
I43CR_22_0 = (short )0x0015,
I43CR_23_0 = (short )0x0016,
I43CR_24_0 = (short )0x0017,
I43CR_25_0 = (short )0x0018,
I43CR_26_0 = (short )0x0019,
I43CR_27_0 = (short )0x001A,
I43CR_28_0 = (short )0x001B,
I43CR_29_0 = (short )0x001C,
I43CR_30_0 = (short )0x001D,
I43CR_31_0 = (short )0x001E,
I43CR_32_0 = (short )0x001F,
I43CR_33_0 = (short )0x0020,
I43CR_34_0 = (short )0x0021,
I43CR_35_0 = (short )0x0022,
I43CR_36_0 = (short )0x0023,
I43CR_37_0 = (short )0x0024,
I43CR_38_0 = (short )0x0025,
I43CR_39_0 = (short )0x0026,
I43CR_40_0 = (short )0x0027
} I43_COMPRESSION_RATIO;
typedef void (*I43_PF_BLE_FUNC)(I43_UINT32[], I43_UINT16*);
typedef struct _I43_SET_BLE {
I43_UINT16 uwStartX;
I43_UINT16 uwStartY;
I43_UINT16 uwWidth;
I43_UINT16 uwHeight;
I43_UINT16 uwMin;
I43_UINT16 uwMax;
I43_PF_BLE_FUNC pfBlefunc;
I43_MODE bMode;
} I43_SET_BLE;
/* ****************************************************************** */
/* Mean Black Noise Mode */
/* ****************************************************************** */
typedef enum _I43_BLACK_NOISE_MODE
{
I43BNM_RGB_MODE = (char )0x01,
I43BNM_AUTO_MODE = (char )0x02
} I43_BLACK_NOISE_MODE;
/* ****************************************************************** */
/* ISSPU Block ID */
/* ****************************************************************** */
typedef enum _I43_BLOCK_ID
{
I43BID_LENS_SHADING = (char )0x02,
I43BID_GAMMA_CORRECTION = (char )0x03,
I43BID_EDGE_ENHANCEMENT = (char )0x04,
I43BID_COLOR_LPF = (char )0x05,
I43BID_CCLK_GEN = (char )0x06
} I43_BLOCK_ID;
/* ****************************************************************** */
/* Image Quality LUT */
/* ****************************************************************** */
typedef enum _I43_TABLE_TYPE
{
I43TT_GAMMA_LUT = (char )0x00,
I43TT_NLGF_LUT = (char )0x01,
I43TT_BRIGHTNESS_LUT = (char )0x02,
I43TT_LSC_LUT = (char )0x03,
} I43_TABLE_TYPE;
/* ****************************************************************** */
/* White Balance Modes */
/* ****************************************************************** */
typedef enum _I43_WB_MODE
{
I43WBM_MANUAL = (char )0x00,
I43WBM_MANUAL_DAYLIGHT = (char )0x01,
I43WBM_MANUAL_DAYLIGHT_SCALE = (char )0x21,
I43WBM_MANUAL_OFFICE = (char )0x02,
I43WBM_MANUAL_OFFICE_SCALE = (char )0x22,
I43WBM_MANUAL_SUNSET = (char )0x03,
I43WBM_MANUAL_SUNSET_SCALE = (char )0x23,
I43WBM_MANUAL_FLASH = (char )0x04,
I43WBM_MANUAL_FLASH_SCALE = (char )0x24,
I43WBM_AUTO = (char )0x10,
I43WBM_AUTO_RGB_CAPTURE = (char )0x50,
I43WBM_LOCKED = (char )0xFF
} I43_WB_MODE;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -