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

📄 lv20x0.h

📁 相机传输图像程序源代码 拜耳模式(RAW格式文件)与RGB图像数据互相转换函数库
💻 H
📖 第 1 页 / 共 3 页
字号:

#define LV_PRESET_WRITE_INT_B1       0x1F       // Write zoom, d-zoom and focus to EEPROM - 1 byte of 4-byte record
                                                //   byte 2 - address in EEPROM (0..255)
                                                //   byte 3 - 1 byte of the record
                                                //   record: 0: lens zoom pos. lower byte
                                                //           1: lens focus pos. lower byte
                                                //           2: upper 4 bits - zoom + lower 4 bits - focus (higher bytes)
                                                //           3: digital zoom data
#define LV_PRESET_READ_INT_B1        0xF1       // Read zoom, d-zoom and focus from EEPROM - 1 byte of 4-byte record
                                                //   byte 2 - address in EEPROM (0..255)
                                                //   return value (in pucReturn1): one byte of the record
#define LV_PRESET_STORE_INT_B1       0x79       // Store current zoom, d-zoom and focus to EEPROM
                                                //   byte 2 - index in EEPROM (0..63) ???
#define LV_PRESET_LOAD_INT_B1        0x4D       // Load preset and move zoom (without tracking) and focus to it
                                                //   byte 2 - index in EEPROM (0..7)
#define LV_PRESET_GET_ZOOM_STATUS    0x7F000000 // Get status of zoom tracking in internal preset mode
                                                //   return value (in pucReturn1):
                                                //   0 - completed, 1 - in progress

// ~~~ LV2010 ~~~
#define LV_PRESET_LOAD_INT_SLOW_B1   0x7D       // Load preset and move zoom (with slow tracking) and focus to it
                                                //   byte 2 - index in EEPROM (0..63)
#define LV_PRESET_LOAD_INT_FAST_B1   0x7E       // Load preset and move zoom (with fast tracking) and focus to it
                                                //   byte 2 - index in EEPROM (0..63)
#define LV_PRESET_LOAD_EXT_SLOW_B1   0x7B       // Load and set preset (with slow zoom tracking)
                                                //   byte 2 - index 0..7
#define LV_PRESET_LOAD_EXT_FAST_B1   0x7C       // Load and set preset (with fast zoom tracking)
                                                //   byte 2 - index 0..7

// ~~~ LV2020 ~~~
#define LV_PRESET_LOAD_INT_AUTO_B1   0x7D       // Load preset and move zoom (with auto zoom tracking) and focus to it
                                                //   byte 2 - index in EEPROM (0..63)
#define LV_PRESET_LOAD_INT_MAN_B1    0x7E       // Load preset and move zoom (with manual zoom tracking) and focus to it
                                                //   byte 2 - index in EEPROM (0..63)


// *** ZOOM ********************************************************************
// ~~~ LV2000 ~~~
#define LV_DZOOM_2000_SET_POWER_2    0x52000000 // Set Digital Zoom max. power to 2x (total  32x)
#define LV_DZOOM_2000_SET_POWER_3    0x52010000 // Set Digital Zoom max. power to 3x (total  48x)
#define LV_DZOOM_2000_SET_POWER_4    0x52020000 // Set Digital Zoom max. power to 4x (total  64x)
#define LV_DZOOM_2000_SET_POWER_5    0x52030000 // Set Digital Zoom max. power to 5x (total  80x)
#define LV_DZOOM_2000_SET_POWER_6    0x52040000 // Set Digital Zoom max. power to 6x (total  96x)
#define LV_DZOOM_2000_SET_POWER_7    0x52050000 // Set Digital Zoom max. power to 7x (total 112x)
#define LV_DZOOM_2000_SET_POWER_8    0x52060000 // Set Digital Zoom max. power to 8x (total 128x)

// ~~~ LV2010, LV2020 ~~~
// note that LV2010 has different numbers in comparison with LV2000
#define LV_DZOOM_SET_POWER_2         0x52020000 // Set Digital Zoom max. power to 2x
#define LV_DZOOM_SET_POWER_3         0x52030000 // Set Digital Zoom max. power to 3x
#define LV_DZOOM_SET_POWER_4         0x52040000 // Set Digital Zoom max. power to 4x
#define LV_DZOOM_SET_POWER_5         0x52050000 // Set Digital Zoom max. power to 5x
#define LV_DZOOM_SET_POWER_6         0x52060000 // Set Digital Zoom max. power to 6x
#define LV_DZOOM_SET_POWER_7         0x52070000 // Set Digital Zoom max. power to 7x
#define LV_DZOOM_SET_POWER_8         0x52080000 // Set Digital Zoom max. power to 8x

#define LV_DZOOM_SET_POWER_B1        0x52       // Set Digital Zoom Power - byte 1
                                                //   byte 2 = zoom power 2..8
#define LV_DZOOM_GET_POWER           0xAA8F0000 // Get Digital Zoom Power
                                                //   return value (in pucReturn1):
                                                //   2...8

#define LV_ZOOM_B1                   0xAA       // Zoom commands first byte
#define LV_ZOOM_STOP_B2              0x51       // Stop zoom
#define LV_ZOOM_TELE_B2              0x52       // Zoom to TELE with defined speed
                                                //   3rd byte - speed 1..12
#define LV_ZOOM_WIDE_B2              0x53       // Stop to WIDE with defined speed
                                                //   3rd byte - speed 1..12

#define LV_DZOOM_SET_ON              0xAA6E0100 // Switch digital zoom ON
#define LV_DZOOM_SET_OFF             0xAA6E0000 // Switch digital zoom OFF

// *** DAY&NIGHT MODE **********************************************************
// ~~~ LV2020 ~~~
#define LV_DAY_NIGHT_SET_ON          0x83010000 // Set Day&Night mode on
#define LV_DAY_NIGHT_SET_OFF         0x83000000 // Set Day&Night mode off

#define LV_DAY_NIGHT_GET             0x82000000 // Get Day&Night mode
                                                //   return value (in pucReturn1):
                                                //   0=off, 1=on

// *** INTEGRATION MODE ********************************************************
// ~~~ LV2020 ~~~
#define LV_INTEGRATION_SET_ON        0xAA5F0100 // Set integration mode on
#define LV_INTEGRATION_SET_OFF       0xAA5F0000 // Set integration mode off
                                                // requires AUTO or Iris Fix mode

#define LV_INTEGRATION_SET_FIELDS_B1 0xAA       // Set integration max fields value - byte 1
#define LV_INTEGRATION_SET_FIELDS_B2 0x5E       // Set integration max fields value - byte 2
                                                // byte 3 = number of fields 0..128
                                                // the number must be even (2, 4, 6, ...)

#define LV_INTEGRATION_GET_FIELDS    0xAA5D0000 // Get integration max fields value
                                                //   return value (in pucReturn1):
                                                //   0..128 (even number)

// *** BACKLIGHT ***************************************************************

#define LV_BACKLIGHT_GET             0xAA610000 // Get Backlight level

#define LV_BACKLIGHT_SET_B1          0xAA       // Set backlight level - byte 1
#define LV_BACKLIGHT_SET_B2          0x62       // Set backlight level - byte 2
                                                //   byte 3 - level 10..40 by LV2000
                                                //   byte 3 - level 102..255 by LV2010
// ~~~ LV2010, LV2020 ~~~
#define LV_BACKLIGHT_SET_AUTO_ON     0xAA6D0100 // Set auto backlight mode ON
#define LV_BACKLIGHT_SET_AUTO_OFF    0xAA6D0000 // Set auto backlight mode OFF
#define LV_BACKLIGHT_SET_ON          0xAA700100 // Set backlight mode ON  (only when Auto is OFF)
#define LV_BACKLIGHT_SET_OFF         0xAA700000 // Set backlight mode OFF (only when Auto is OFF)
#define LV_BACKLIGHT_STORE_ON        0xAA560000 // Set backlight mode ON and save it to EEPROM
#define LV_BACKLIGHT_STORE_OFF       0xAA570000 // Save backlight mode OFF and save it to EEPROM

#define LV_BACKLIGHT_GET_AREA        0x84000000 // Get auto backlight area
                                                //   return value (in pucReturn1):
                                                //   bits 0..4 - corresponding area is 1=ON/0=OFF
                                                //  -------------------
                                                //  |        0        |
                                                //  |-----------------|
                                                //  |  2  |  4  |  3  |
                                                //  |-----------------|
                                                //  |        1        |
                                                //  -------------------
#define LV_BACKLIGHT_SET_AREA_B1     0x85       // Set auto backlight area - byte 1
                                                // byte 2 - bits 0..4 - area x is 1=ON/0=OFF

#define LV_BACKLIGHT_DISPLAY_AUTO_AREA  0x86010000 // Set auto backlight area display ON
#define LV_BACKLIGHT_HIDE_AUTO_AREA     0x86000000 // Set auto backlight area display OFF

// *** ON SCREEN DISPLAY *******************************************************
// ~~~ LV2010, LV2020 ~~~
#define LV_OSD_GET_MENU              0xAA8D0000 // Get menu OSD display ON/OFF
                                                //   return value (in pucReturn1):
                                                //   0 - not displayed
                                                //   1 - displayed

#define LV_OSD_SET_MENU_ON           0xAA630100 // Set menu OSD display ON
#define LV_OSD_SET_MENU_OFF          0xAA630000 // Set menu OSD display OFF

#define LV_OSD_SET_ENGLISH           0x87000000 // Set OSD language to English
#define LV_OSD_SET_KOREAN            0x87010000 // Set OSD language to Korean
#define LV_OSD_SET_CHINESE           0x87020000 // Set OSD language to Chinese

#define LV_OSD_GET_MODE              0xAA8E0000 // Get Operating OSD Display mode
                                                //   return value (in pucReturn1):
                                                //   0 - whole OSD is off
                                                //   1 - Only top line ON
                                                //   2 - Only bottom line ON
                                                //   3 - Whole OS is ON (without cam. ID)

#define LV_OSD_SET_MODE_ALL_OFF      0xAA640000 // Set Operating OSD Display mode - whole OSD is off
#define LV_OSD_SET_MODE_TOP          0xAA640100 // Set Operating OSD Display mode - Only top line ON
#define LV_OSD_SET_MODE_BOTTOM       0xAA640200 // Set Operating OSD Display mode - Only bottom line ON
#define LV_OSD_SET_MODE_ALL_ON       0xAA640300 // Set Operating OSD Display mode - Whole OS is ON


// *** SHARPNESS ***************************************************************
// ~~~ LV2010, LV2020 ~~~
#define LV_SHARPNESS_GET             0xAA880000 // Get sharpness
                                                //   return value (in pucReturn1):
                                                //   0..15

#define LV_SHARPNESS_SET_B1          0xAA       // Set sharpness - byte 1
#define LV_SHARPNESS_SET_B2          0x79       // Set sharpness - byte 2
                                                //   byte 3 - sharpness 0..15

// *** BRIGHTNESS **************************************************************
// ~~~ LV2010, LV2020 ~~~
#define LV_BRIGHTNESS_GET            0xAA890000 // Get brightness
                                                //   return value (in pucReturn1):
                                                //   0..99

#define LV_BRIGHTNESS_SET_B1         0xAA       // Set brightness - byte 1
#define LV_BRIGHTNESS_SET_B2         0x7A       // Set brightness - byte 2
                                                //   byte 3 - brightness 0..99 (default=30)

// *** DIGITAL EFFECTS *********************************************************
// ~~~ LV2010, LV2020 ~~~
#define LV_DIGEFF_GET                0xAA820000 // Get digital effect status
                                                //   return value (in pucReturn1):
                                                //   bit 0 - Cinema (1=ON, 0=OFF)
                                                //   bit 1 - Art
                                                //   bit 2 - Mirror
                                                //   bit 4 - 80% Negative - LV2020 only
                                                //   bit 3 - 100% Negative
                                                //   bit 5 - Mono
                                                //   bit 6 - Mosaic

#define LV_DIGEFF_SET_COLOR_ON       0xAA710100 // Set Color mode to ON
#define LV_DIGEFF_SET_COLOR_OFF      0xAA710000 // Set Color mode to OFF

#define LV_DIGEFF_SET_NEG_100_ON     0xAA720100 // Set 100% negative mode to ON
#define LV_DIGEFF_SET_NEG_100_OFF    0xAA720000 // Set 100% negative mode to OFF

#define LV_DIGEFF_SET_MIRROR_ON      0xAA7F0100 // Set full mirror to ON
#define LV_DIGEFF_SET_MIRROR_OFF     0xAA7F0000 // Set full mirror to OFF

#define LV_DIGEFF_SET_FLICKERLESS_ON  0xAA740100 // Set flickerless mode to ON
#define LV_DIGEFF_SET_FLICKERLESS_OFF 0xAA740000 // Set flickerless mode to OFF

#define LV_DIGEFF_SET_FADE_ON        0xAA540000 // Set fade to ON
#define LV_DIGEFF_SET_FADE_OFF       0xAA550000 // Set fade to OFF

// ~~~ LV2020 ~~~
#define LV_DIGEFF_SET_NEG_80_ON      0xAA7E0100 // Set 80% negative mode to ON
#define LV_DIGEFF_SET_NEG_80_OFF     0xAA7E0000 // Set 80% negative mode to OFF



// *** RESET *******************************************************************

#define LV_RESTART                   0x4F000000 // Reset the camera's microcontroller

// *** CAMERA STATUS ***********************************************************
// ~~~ LV2010, LV2020 ~~~
#define LV_STATUS_GET_1              0xAA800000 // Get camera status - part 1
                                                //   return value (in pucReturn1):
                                                //   bit 0 - Initial Menu data (1=yes, 0=not)
                                                //   bit 1 - Digital zoom (1=ON, 0=OFF)
                                                //   bit 2 - Focus (1=Push_Auto, 0=Auto/Manual)
                                                //   bit 3 - FlickerLess (1=ON, 0=OFF)
                                                //   bit 4 - Backlight (1=ON, 0=OFF)
                                                //   bit 5 - AWC (1=Push, 0=Lock)
                                                //   bit 6 - Camera ID Display (1=ON, 0=OFF)
                                                //   bit 7 - Focus (1=manual, 0=auto)

⌨️ 快捷键说明

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