22#ifndef LIBOPENRAW_RAWFILE_H_
23#define LIBOPENRAW_RAWFILE_H_
25#include <libopenraw/types.h>
26#include <libopenraw/consts.h>
27#include <libopenraw/rawdata.h>
28#include <libopenraw/thumbnails.h>
29#include <libopenraw/metadata.h>
30#include <libopenraw/bitmapdata.h>
41or_get_file_extensions();
44or_rawfile_new(
const char* filename, or_rawfile_type type);
47or_rawfile_new_from_memory(
const uint8_t *buffer, uint32_t len, or_rawfile_type type);
50or_rawfile_release(ORRawFileRef rawfile);
53or_rawfile_get_type(ORRawFileRef rawfile);
57or_rawfile_get_typeid(ORRawFileRef rawfile);
65or_rawfile_get_thumbnail_sizes(ORRawFileRef rawfile,
69or_rawfile_get_thumbnail(ORRawFileRef rawfile, uint32_t preferred_size,
70 ORThumbnailRef thumb);
73or_rawfile_get_rawdata(ORRawFileRef rawfile, ORRawDataRef rawdata,
82or_rawfile_get_rendered_image(ORRawFileRef rawfile, ORBitmapDataRef rawdata,
92or_rawfile_get_orientation(ORRawFileRef rawfile);
102or_rawfile_get_colourmatrix1(ORRawFileRef rawfile,
double* matrix, uint32_t* size);
105or_rawfile_get_colourmatrix2(ORRawFileRef rawfile,
double* matrix, uint32_t* size);
110ExifLightsourceValue or_rawfile_get_calibration_illuminant1(ORRawFileRef rawfile);
111ExifLightsourceValue or_rawfile_get_calibration_illuminant2(ORRawFileRef rawfile);
118or_rawfile_get_metavalue(ORRawFileRef rawfile, int32_t meta_index);
127or_rawfile_get_xmp(ORRawFileRef rawfile);