summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture.cpp
diff options
context:
space:
mode:
authorHan-Lin Chen via libcamera-devel <libcamera-devel@lists.libcamera.org>2022-08-12 17:01:03 +0800
committerJacopo Mondi <jacopo@jmondi.org>2022-08-25 14:04:59 +0200
commitba72e4202f1958028c9b40cd858fdfb46508335b (patch)
tree6ba573117d6c254ae175eb169704f402dfe556ef /src/cam/sdl_texture.cpp
parent45c198da638d603c1a0cac216633933abfbb4153 (diff)
libcamera: ipu3: Use std::max() instead of expandTo() to get the max resolution
Using Size::expandTo() to find the max resolution might generate a non-existent resolution. For example, when application request streams for 1920x1080 and 1600x1200, the max resolution will be wrongly 1920x1200 and fails the configuration. Bug: https://bugs.libcamera.org/show_bug.cgi?id=139 Signed-off-by: Han-Lin Chen <hanlinchen@chromium.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/cam/sdl_texture.cpp')
0 files changed, 0 insertions, 0 deletions