| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #ifndef CAMERA_MODEL_H
- #define CAMERA_MODEL_H
- #include <stdint.h>
- /**
- * The dithering algorithms available.
- */
- typedef enum {
- FLOYD_STEINBERG,
- JARVIS_JUDICE_NINKE,
- STUCKI,
- } DitheringAlgorithm;
- typedef struct {
- /**
- * Flag to enable or disable dithering.
- */
- bool isDitheringEnabled;
- /**
- * Flag to represent the flash state when saving pictures to the Flipper.
- */
- bool isFlashEnabled;
- /**
- * Flag to invert pixel colors.
- */
- bool isInvertEnabled;
- /**
- * Flag to stop or start the stream.
- */
- bool isStreamEnabled;
- /**
- * Holds the currently selected dithering algorithm.
- */
- DitheringAlgorithm ditherAlgorithm;
- } CameraModel;
- /** The camera model. */
- extern CameraModel camera_model;
- void initialize_camera_model();
- #endif
|