Set bridge resolution when setting the mode (MR 31)
sun6i-csi-bridge will return EINVAL if the resolution it is configured with is different than the resolution the camera is configured with. So we have to set it's resolution when changing the camera resolution.
This commit is contained in:
@@ -115,7 +115,7 @@ main(int argc, char *argv[])
|
||||
|
||||
printf("Opening the device took %fms\n", (open_end - find_end) * 1000);
|
||||
|
||||
MPCamera *camera = mp_camera_new(video_fd, subdev_fd);
|
||||
MPCamera *camera = mp_camera_new(video_fd, subdev_fd, -1);
|
||||
|
||||
MPControlList *controls = mp_camera_list_controls(camera);
|
||||
|
||||
|
Reference in New Issue
Block a user