Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camera-server: Add ability to support taking image in video mode and video in image mode #2351

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

jnomikos
Copy link
Contributor

@jnomikos jnomikos commented Jul 13, 2024

One limitation I ran into with camera-server was the inability to be able to set the capability flags for CAMERA_CAP_FLAGS_CAN_CAPTURE_IMAGE_IN_VIDEO_MODE and CAMERA_CAP_FLAGS_CAN_CAPTURE_VIDEO_IN_IMAGE_MODE. However, there are situations where a user may want to support this functionality. In an application I was working on, I wanted to be able to send these flags since the camera likely supported it.

This PR adds two new functions, support_image_in_video_mode and support_video_in_image_mode. A user can use these to enable the associated capability flags.

Please let me know if this is a good approach, or if there is a better way to support this functionality. Thank you!

(Proto PR: mavlink/MAVSDK-Proto#349)

@jnomikos jnomikos changed the title camera-server: Add ability to support taking image in photo mode and photo in image mode camera-server: Add ability to support taking image in video mode and video in image mode Jul 13, 2024
@julianoes
Copy link
Collaborator

Looks like you have to rebase both the proto branch and this one and point to it again.

@jnomikos
Copy link
Contributor Author

jnomikos commented Aug 10, 2024

Looks like you have to rebase both the proto branch and this one and point to it again.

Will do

…photo in image mode

Made image in video mode and video in image mode support definable in set_information
@julianoes
Copy link
Collaborator

I've merged the proto PR, and rebased (and squashed) everything here. Let's check CI and get it in.

Copy link

@jnomikos
Copy link
Contributor Author

I've merged the proto PR, and rebased (and squashed) everything here. Let's check CI and get it in.

Thank you. Apologies for not doing it myself. Got distracted with other things

@julianoes julianoes merged commit 1f36a7e into mavlink:main Aug 14, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants