Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
![]() |
Data Structures | |
struct | bflb_cam_config_s |
CAM configuration structure. More... | |
Functions | |
void | bflb_cam_init (struct bflb_device_s *dev, const struct bflb_cam_config_s *config) |
Initialize cam. More... | |
void | bflb_cam_start (struct bflb_device_s *dev) |
Enable cam. More... | |
void | bflb_cam_stop (struct bflb_device_s *dev) |
Disable cam. More... | |
void | bflb_cam_int_mask (struct bflb_device_s *dev, uint32_t int_type, bool mask) |
Mask or unmask cam interrupt. More... | |
void | bflb_cam_int_clear (struct bflb_device_s *dev, uint32_t int_type) |
Clear cam interrupt. More... | |
void | bflb_cam_crop_vsync (struct bflb_device_s *dev, uint16_t start_line, uint16_t end_line) |
Crop vsync. More... | |
void | bflb_cam_crop_hsync (struct bflb_device_s *dev, uint16_t start_pixel, uint16_t end_pixel) |
Crop hsync. More... | |
void | bflb_cam_pop_one_frame (struct bflb_device_s *dev) |
Pop one frame. More... | |
void | bflb_cam_swap_input_yu_order (struct bflb_device_s *dev, bool enable) |
Swap input order of y and uv. More... | |
void | bflb_cam_filter_frame_period (struct bflb_device_s *dev, uint8_t frame_count, uint32_t frame_valid) |
Set frame filter, if frame_count = 3, frame_valid = 101b, second frame will be dropped every 3 frames. More... | |
uint8_t | bflb_cam_get_frame_count (struct bflb_device_s *dev) |
Get frame count. More... | |
uint32_t | bflb_cam_get_frame_info (struct bflb_device_s *dev, uint8_t **pic) |
Get frame information. More... | |
uint32_t | bflb_cam_get_intstatus (struct bflb_device_s *dev) |
Get interrupt status. More... | |
int | bflb_cam_feature_control (struct bflb_device_s *dev, int cmd, size_t arg) |
Control cam feature. More... | |
void bflb_cam_crop_hsync | ( | struct bflb_device_s * | dev, |
uint16_t | start_pixel, | ||
uint16_t | end_pixel | ||
) |
Crop hsync.
[in] | dev | device handle |
[in] | start_pixel | start pixel of each line |
[in] | end_pixel | end pixel of each line, not include |
void bflb_cam_crop_vsync | ( | struct bflb_device_s * | dev, |
uint16_t | start_line, | ||
uint16_t | end_line | ||
) |
Crop vsync.
[in] | dev | device handle |
[in] | start_line | start line of window |
[in] | end_line | end line of window, not include |
int bflb_cam_feature_control | ( | struct bflb_device_s * | dev, |
int | cmd, | ||
size_t | arg | ||
) |
Control cam feature.
[in] | dev | device handle |
[in] | cmd | feature command |
[in] | arg | user data |
void bflb_cam_filter_frame_period | ( | struct bflb_device_s * | dev, |
uint8_t | frame_count, | ||
uint32_t | frame_valid | ||
) |
Set frame filter, if frame_count = 3, frame_valid = 101b, second frame will be dropped every 3 frames.
[in] | dev | device handle |
[in] | frame_count | frame filter period |
[in] | frame_valid | frame valid |
uint8_t bflb_cam_get_frame_count | ( | struct bflb_device_s * | dev | ) |
Get frame count.
[in] | dev | device handle |
uint32_t bflb_cam_get_frame_info | ( | struct bflb_device_s * | dev, |
uint8_t ** | pic | ||
) |
Get frame information.
[in] | dev | device handle |
[out] | pic | pointer to frame start address |
uint32_t bflb_cam_get_intstatus | ( | struct bflb_device_s * | dev | ) |
Get interrupt status.
[in] | dev | device handle |
void bflb_cam_init | ( | struct bflb_device_s * | dev, |
const struct bflb_cam_config_s * | config | ||
) |
Initialize cam.
[in] | dev | device handle |
[in] | config | pointer to cam configure structure |
void bflb_cam_int_clear | ( | struct bflb_device_s * | dev, |
uint32_t | int_type | ||
) |
Clear cam interrupt.
[in] | dev | device handle |
[in] | int_type | int_type cam interrupt clear type, use CAMERA interrupt clear definition |
void bflb_cam_int_mask | ( | struct bflb_device_s * | dev, |
uint32_t | int_type, | ||
bool | mask | ||
) |
Mask or unmask cam interrupt.
[in] | dev | device handle |
[in] | int_type | cam interrupt mask type, use CAMERA interrupt mask definition |
[in] | mask | mask or unmask |
void bflb_cam_pop_one_frame | ( | struct bflb_device_s * | dev | ) |
Pop one frame.
[in] | dev | device handle |
void bflb_cam_start | ( | struct bflb_device_s * | dev | ) |
Enable cam.
[in] | dev | device handle |
void bflb_cam_stop | ( | struct bflb_device_s * | dev | ) |
Disable cam.
[in] | dev | device handle |
void bflb_cam_swap_input_yu_order | ( | struct bflb_device_s * | dev, |
bool | enable | ||
) |
Swap input order of y and uv.
[in] | dev | device handle |
[in] | enable | enable or disable |