postprocess.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef POSTPROCESSD__POSTPROCESS_H
  2. #define POSTPROCESSD__POSTPROCESS_H
  3. #include <stdint.h>
  4. #include "util.h"
  5. #define DCPTAG_PROFILE_HUE_SAT_MAP_DIMS 50937
  6. #define DCPTAG_PROFILE_HUE_SAT_MAP_DATA_1 50938
  7. #define DCPTAG_PROFILE_HUE_SAT_MAP_DATA_2 50939
  8. #define DCPTAG_PROFILE_TONE_CURVE 50940
  9. #define DCPTAG_FORWARD_MATRIX_1 50964
  10. #define DCPTAG_FORWARD_MATRIX_2 50965
  11. #define JPEG_APP1 JPEG_APP0+1
  12. struct Imagedata {
  13. uint32_t width;
  14. uint32_t height;
  15. uint8_t bitspersample;
  16. char *make;
  17. char *model;
  18. char *software;
  19. int orientation;
  20. char *datetime;
  21. uint16_t exposure_program;
  22. float exposure_time;
  23. uint16_t isospeed;
  24. int flash;
  25. float fnumber;
  26. float focal_length;
  27. uint16_t focal_length_35mm;
  28. float dist_a;
  29. float dist_b;
  30. float dist_c;
  31. float vignette_k1;
  32. float vignette_k2;
  33. float vignette_k3;
  34. };
  35. void
  36. postprocess_internal(char *burst_dir, char *target_dir, int keep);
  37. void
  38. postprocess_single(char *in_path, char *out_path, int quality, int verbose);
  39. void
  40. postprocess_setup();
  41. #endif //POSTPROCESSD__POSTPROCESS_H