configfile.h 777 B

12345678910111213141516171819202122232425262728
  1. #ifndef CONFIGFILE_H
  2. #define CONFIGFILE_H
  3. #include <stdbool.h>
  4. ///------ Definition of the different aspect ratios
  5. #define ASPECT_RATIOS \
  6. X(ASPECT_RATIOS_TYPE_MANUAL, "ZOOMED") \
  7. X(ASPECT_RATIOS_TYPE_STRETCHED, "STRETCHED") \
  8. X(ASPECT_RATIOS_TYPE_CROPPED, "CROPPED") \
  9. X(ASPECT_RATIOS_TYPE_SCALED, "SCALED") \
  10. X(NB_ASPECT_RATIOS_TYPES, "")
  11. ////------ Enumeration of the different aspect ratios ------
  12. #undef X
  13. #define X(a, b) a,
  14. typedef enum {ASPECT_RATIOS} ENUM_ASPECT_RATIOS_TYPES;
  15. extern unsigned int aspect_ratio;
  16. extern unsigned int aspect_ratio_factor_percent;
  17. extern const char * aspect_ratio_name[];
  18. extern unsigned int aspect_ratio_factor_step;
  19. void configfile_load(const char *filename);
  20. void configfile_save(const char *filename);
  21. #endif