You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

61 lines
1.7 KiB

  1. /*
  2. * This file is part of Aptdec.
  3. * Copyright (c) 2004-2009 Thierry Leconte (F4DWV), Xerbo (xerbo@protonmail.com) 2019-2022
  4. *
  5. * Aptdec is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. *
  18. */
  19. // Constants
  20. #define VERSION "Aptdec; (c) 2004-2009 Thierry Leconte F4DWV, Xerbo (xerbo@protonmail.com) 2019-2022"
  21. // Useful macros
  22. #define CLIP(v, lo, hi) (v > hi ? hi : (v > lo ? v : lo))
  23. #define CONTAINS(str, char) (strchr(str, (int) char) != NULL)
  24. // Typedefs
  25. #ifndef STRUCTS_DEFINED
  26. #define STRUCTS_DEFINED
  27. typedef struct {
  28. char *type; // Output image type
  29. char *effects; // Effects on the image
  30. int satnum; // The satellite number
  31. char *path; // Output directory
  32. int realtime; // Realtime decoding
  33. char *filename; // Output filename
  34. char *palette; // Filename of palette
  35. float gamma; // Gamma
  36. } options_t;
  37. enum imagetypes {
  38. Raw_Image='r',
  39. Palleted='p',
  40. Temperature='t',
  41. Channel_A='a',
  42. Channel_B='b',
  43. Distribution='d',
  44. Visible='v'
  45. };
  46. enum effects {
  47. Crop_Telemetry='t',
  48. Histogram_Equalise='h',
  49. Denoise='d',
  50. Precipitation_Overlay='p',
  51. Flip_Image='f',
  52. Linear_Equalise='l',
  53. Crop_Noise='c'
  54. };
  55. #endif