libdng.h 612 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef LIBDNG_LIBRARY_H
  2. #define LIBDNG_LIBRARY_H
  3. #include <limits.h>
  4. #include <time.h>
  5. #include <stdint.h>
  6. #define EXPORT __attribute__((__visibility__("default")))
  7. typedef struct {
  8. char *camera_make;
  9. char *camera_model;
  10. char *unique_camera_model;
  11. char *software;
  12. uint16_t orientation;
  13. struct tm datetime;
  14. } libdng_info;
  15. EXPORT int
  16. libdng_init();
  17. EXPORT void
  18. libdng_new(libdng_info *dng);
  19. EXPORT void
  20. libdng_free(libdng_info *dng);
  21. EXPORT int
  22. libdng_write(libdng_info *dng, const char *path, unsigned int width, unsigned int height, uint8_t *data,
  23. size_t length);
  24. #endif //LIBDNG_LIBRARY_H