| 32 | | * Version number of API. |
|---|
| 33 | | */ |
|---|
| 34 | | #define CC3_API_VERSION 1 |
|---|
| 35 | | |
|---|
| 36 | | |
|---|
| 37 | | /** |
|---|
| 38 | | * Mark a boolean expression as "likely". |
|---|
| 39 | | * This is sometimes useful for assisting the compiler in predicting branches. |
|---|
| 40 | | */ |
|---|
| 41 | | #define likely(x) __builtin_expect(x,1) |
|---|
| 42 | | |
|---|
| 43 | | /** |
|---|
| 44 | | * Mark a boolean expression as "unlikely". |
|---|
| 45 | | * This is sometimes useful for assisting the compiler in predicting branches. |
|---|
| 46 | | */ |
|---|
| 47 | | #define unlikely(x) __builtin_expect(x,0) |
|---|
| | 32 | * Major version number of API. This is incremented when |
|---|
| | 33 | * backwards-incompatible changes are made in a release. |
|---|
| | 34 | */ |
|---|
| | 35 | #define CC3_API_MAJOR_VERSION 1 |
|---|
| | 36 | |
|---|
| | 37 | /** |
|---|
| | 38 | * Minor version number of API. This is incremented when compatible |
|---|
| | 39 | * new features are added in a release. |
|---|
| | 40 | */ |
|---|
| | 41 | #define CC3_API_MINOR_VERSION 0 |
|---|
| | 42 | |
|---|
| 296 | | * Turn off power to the camera and pixbuf. To use the camera again, |
|---|
| 297 | | * call cc3_camera_init(). |
|---|
| 298 | | * \note This may cause the image to evaporate. |
|---|
| 299 | | */ |
|---|
| 300 | | void cc3_camera_disable (void); |
|---|
| | 291 | * Set the power state of the camera and (possibly) pixbuf. Used to |
|---|
| | 292 | * conserve power when the camera is not being used. |
|---|
| | 293 | * |
|---|
| | 294 | * \note If state is set to \a false, the camera will not work. |
|---|
| | 295 | * |
|---|
| | 296 | * @param[in] state Set to \a true for normal operation, |
|---|
| | 297 | * set to \a false to disable power to the camera. |
|---|
| | 298 | */ |
|---|
| | 299 | void cc3_camera_set_power_state (bool state); |
|---|