summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/minimize.svg
diff options
context:
tree2c6efb1b224d94596c5808f731b282b40e65907d /src/qcam/assets/feathericons/minimize.svg
parentd3be776654076f7048c4365190535c0a2c39ad51 (diff)
gstreamer: Fix usage of default size for fixation
Pipeline managers sets a default value to StreamConfiguration::size. The original fixation code was attempting to use it, but as it was truncating the caps to its first structure it would never actually find a best match. In this patch, instead of truncating, we weight various matches using the product of the width and height delta. We also split delta from ranges apart and prefer fixed size over them as ranges are not reliable. This patch also removes the related todo, as it seems that libcamera core won't go further then providing this default value and won't be sorting the format and size lists. Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/feathericons/minimize.svg')
0 files changed, 0 insertions, 0 deletions