primarily unify dvp APIs with rt
This commit is contained in:
@@ -25,14 +25,23 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define REG_SCCB_READ 0x12U
|
||||
#define REG_SCCB_WRITE 0x13U
|
||||
#define REG_SCCB_READ 0xA2U
|
||||
#define REG_SCCB_WRITE 0xA3U
|
||||
#define SCCB_REG_LENGTH 0x08U
|
||||
#define IOCTRL_CAMERA_START_SHOT (20)
|
||||
#define SET_DISPLAY_ADDR (21)
|
||||
#define SET_AI_ADDR (22)
|
||||
|
||||
#define SET_DISPLAY_ADDR (0xD1)
|
||||
#define SET_AI_ADDR (0xD2)
|
||||
#define FLAG_CHECK (0xD4)
|
||||
|
||||
#define IOCTRL_CAMERA_START_SHOT (22) // start shoot
|
||||
#define IOCTRL_CAMERA_OUT_SIZE_RESO (23)
|
||||
#define FLAG_CHECK (24)
|
||||
#define IOCTRL_CAMERA_SET_WINDOWS_SIZE (21) // user set specific windows outsize
|
||||
#define IOCTRL_CAMERA_SET_LIGHT (24) //set light mode
|
||||
#define IOCTRL_CAMERA_SET_COLOR (25) //set color saturation
|
||||
#define IOCTRL_CAMERA_SET_BRIGHTNESS (26) //set color brightness
|
||||
#define IOCTRL_CAMERA_SET_CONTRAST (27) //set contrast
|
||||
#define IOCTRL_CAMERA_SET_EFFECT (28) //set effect
|
||||
#define IOCTRL_CAMERA_SET_EXPOSURE (29) //set auto exposure
|
||||
|
||||
|
||||
typedef struct
|
||||
|
||||
@@ -34,5 +34,17 @@ struct CameraCfg
|
||||
int ov2640_init(void);
|
||||
int ov2640_read_id(uint16_t *manuf_id, uint16_t *device_id);
|
||||
int SensorConfigure(struct CameraCfg* cfg_info);
|
||||
void ov2640_jpeg_mode(void);
|
||||
void ov2640_rgb565_mode(void);
|
||||
void ov2640_set_auto_exposure(uint8_t level);
|
||||
void ov2640_set_light_mode(uint8_t mode);
|
||||
void ov2640_set_color_saturation(uint8_t sat);
|
||||
void ov2640_set_brightness(uint8_t bright);
|
||||
void ov2640_set_contrast(uint8_t contrast);
|
||||
void ov2640_set_special_effects(uint8_t eft);
|
||||
void ov2640_set_window_size(uint16_t sx,uint16_t sy,uint16_t width,uint16_t height);
|
||||
uint8_t ov2640_set_image_out_size(uint16_t width,uint16_t height);
|
||||
uint8_t ov2640_set_image_window_size(uint16_t offx, uint16_t offy, uint16_t width, uint16_t height);
|
||||
uint8_t ov2640_set_image_size(uint16_t width ,uint16_t height);
|
||||
|
||||
#endif /* _OV2640_H */
|
||||
|
||||
Reference in New Issue
Block a user