Move mode types and functions to a new object (MR 13)

Rename MPCameraMode to a more generic MPMode and move it along
with related functions to a new object in preparation for using
it in the device object.
This commit is contained in:
Yassine Oudjana
2022-02-23 10:23:02 +04:00
committed by Martijn Braam
parent cd4ecdd964
commit a4c2c1ec1f
13 changed files with 381 additions and 364 deletions

View File

@@ -7,7 +7,7 @@
struct mp_main_state {
const struct mp_camera_config *camera;
MPCameraMode mode;
MPMode mode;
int image_width;
int image_height;