
Read .dcp files stored in the same directory as the camera configuration files and copy over the calibration curves into the DNG files after taking a picture.
58 lines
1.2 KiB
C
58 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include "dcp.h"
|
|
#include "mode.h"
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
#define MP_MAX_CAMERAS 5
|
|
#define MP_MAX_LINKS 10
|
|
|
|
struct mp_media_link_config {
|
|
char source_name[100];
|
|
char target_name[100];
|
|
int source_port;
|
|
int target_port;
|
|
};
|
|
|
|
struct mp_camera_config {
|
|
size_t index;
|
|
|
|
char cfg_name[100];
|
|
char dev_name[260];
|
|
char media_dev_name[260];
|
|
|
|
MPMode capture_mode;
|
|
MPMode preview_mode;
|
|
int rotate;
|
|
bool mirrored;
|
|
|
|
struct mp_media_link_config media_links[MP_MAX_LINKS];
|
|
int num_media_links;
|
|
|
|
float colormatrix[9];
|
|
float forwardmatrix[9];
|
|
float previewmatrix[9];
|
|
int blacklevel;
|
|
int whitelevel;
|
|
|
|
struct MPCameraCalibration calibration;
|
|
|
|
float focallength;
|
|
float cropfactor;
|
|
double fnumber;
|
|
int iso_min;
|
|
int iso_max;
|
|
|
|
char flash_path[260];
|
|
bool flash_display;
|
|
bool has_flash;
|
|
};
|
|
|
|
bool mp_load_config();
|
|
|
|
const char *mp_get_device_make();
|
|
const char *mp_get_device_model();
|
|
const struct mp_camera_config *mp_get_camera_config(size_t index);
|