Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * This file is part of Aptdec.
  3. * Copyright (c) 2004-2009 Thierry Leconte (F4DWV), Xerbo (xerbo@protonmail.com) 2019-2020
  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-2020"
  21. #define MAX_HEIGHT 3000
  22. // Useful macros
  23. #define CLIP(v, lo, hi) (v > hi ? hi : (v > lo ? v : lo))
  24. #define CONTAINS(str, char) (strchr(str, (int) char) != NULL)
  25. // Typedefs
  26. typedef struct {
  27. float r, g, b;
  28. } rgb_t;
  29. typedef struct {
  30. float *prow[MAX_HEIGHT]; // Row buffers
  31. int nrow; // Number of rows
  32. int chA, chB; // ID of each channel
  33. char name[256]; // Stripped filename
  34. } image_t;
  35. typedef struct {
  36. char *type; // Output image type
  37. char *effects; // Effects on the image
  38. int satnum; // The satellite number
  39. char *map; // Path to a map file
  40. char *path; // Output directory
  41. int realtime; // Realtime decoding
  42. char *filename; // Output filename
  43. } options_t;