https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 7a5246384c2b8035f496d0f264c701e53e8731aa authored by a1ex on 19 June 2016, 18:13:26 UTC
Close branch cr2hdr_ports.
Tip revision: 7a52463
exiftool-bridge.h
#ifndef _EXIFTOOL_BRIDGE_H
#define _EXIFTOOL_BRIDGE_H

void copy_tags_from_source(const char* source, const char* dest);
unsigned int get_model_id(const char* filename);

/*
This function uses EXIF information to calculate the following two ratios:
  Red balance is the ratio G/R for a neutral color (typically > 1)
  Blue balance is the ratio G/B for a neutral color (typically > 1)
Use only on dual ISO shots!
*/
void read_white_balance(const char* filename, float* red_balance, float* blue_balance);

void set_white_level(const char* file, int level);

void embed_original_raw(const char* dng_file, const char* raw_file, int delete_original);

int dng_has_original_raw(const char* dng_file);

int extract_original_raw(const char* dng_file, const char* raw_file);

void dng_backup_metadata(const char* dng_file);
void dng_restore_metadata(const char* dng_file);

#endif
back to top