#ifndef CAMERA_MODEL_H #define CAMERA_MODEL_H #include /** * 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