Commit 8ca34303 authored by Bastien Nocera's avatar Bastien Nocera

lib: Transform fp_img_driver flags into a FpiImgDriverFlags enum

And document it.
parent 882fc8ab
...@@ -234,7 +234,7 @@ fp_driver_type ...@@ -234,7 +234,7 @@ fp_driver_type
<SECTION> <SECTION>
<INCLUDE>fpi-core.h</INCLUDE> <INCLUDE>fpi-core.h</INCLUDE>
<FILE>fpi-core-img</FILE> <FILE>fpi-core-img</FILE>
FP_IMGDRV_SUPPORTS_UNCONDITIONAL_CAPTURE FpiImgDriverFlags
fp_img_driver fp_img_driver
</SECTION> </SECTION>
......
...@@ -55,12 +55,20 @@ struct fp_driver { ...@@ -55,12 +55,20 @@ struct fp_driver {
int (*capture_stop)(struct fp_dev *dev); int (*capture_stop)(struct fp_dev *dev);
}; };
/* flags for fp_img_driver.flags */ /**
#define FP_IMGDRV_SUPPORTS_UNCONDITIONAL_CAPTURE (1 << 0) * FpiImgDriverFlags:
* @FP_IMGDRV_SUPPORTS_UNCONDITIONAL_CAPTURE: Whether the driver supports
* unconditional image capture. No driver currently does.
*
* Flags used in the #fp_img_driver to advertise the capabilities of drivers.
*/
typedef enum {
FP_IMGDRV_SUPPORTS_UNCONDITIONAL_CAPTURE = 1 << 0
} FpiImgDriverFlags;
struct fp_img_driver { struct fp_img_driver {
struct fp_driver driver; struct fp_driver driver;
uint16_t flags; FpiImgDriverFlags flags;
int img_width; int img_width;
int img_height; int img_height;
int bz3_threshold; int bz3_threshold;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment