1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #pragma once
- #include "camera.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];
- MPCameraMode capture_mode;
- MPCameraMode 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;
- float focallength;
- float cropfactor;
- double fnumber;
- int iso_min;
- int iso_max;
- };
- 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);
|