Skip to content

How to change the default sensor mode that gets selected by the video configuration? #756

Discussion options

You must be logged in to vote

The trouble is that when you ask for a particular output image size, libcamera has to guess which of the sensor modes to use. Within libcamera all it sees are the sensor formats and resolutions, but not the "crop" (which affects the field of view). So from its point of view, 1536x864 is the best match for 800x480. Unfortunately, this is a "cropped" mode.

But as you've seen we can override the behaviour by specifying directly what raw stream size we want. Now it will select the sensor resolution that most closely matches the raw stream size, irrespective of how much scaling happens to produce the final output images. In our case, specifying a raw stream size of 2304x1296 is effectively for…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@alexandrucindea
Comment options

@alexandrucindea
Comment options

Comment options

You must be logged in to vote
1 reply
@alexandrucindea
Comment options

Comment options

You must be logged in to vote
5 replies
@alexandrucindea
Comment options

@davidplowman
Comment options

@alexandrucindea
Comment options

@davidplowman
Comment options

@alexandrucindea
Comment options

Comment options

You must be logged in to vote
1 reply
@alexandrucindea
Comment options

Answer selected by alexandrucindea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants