dcp.h 600 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <stdbool.h>
  3. #include <stdio.h>
  4. struct MPCameraCalibration {
  5. float color_matrix_1[9];
  6. float color_matrix_2[9];
  7. float forward_matrix_1[9];
  8. float forward_matrix_2[9];
  9. unsigned short illuminant_1;
  10. unsigned short illuminant_2;
  11. unsigned int hue_sat_map_dims[3];
  12. size_t tone_curve_length;
  13. float *tone_curve;
  14. float *hue_sat_map_data_1;
  15. float *hue_sat_map_data_2;
  16. };
  17. struct MPCameraCalibration parse_calibration_file(const char *path);
  18. bool find_calibration(char *conffile, const char *sensor);