diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2021-06-30 13:52:14 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2021-07-27 12:57:34 +0200 |
commit | e1d43481b9fee7675b117952e331e20c7bfbf248 (patch) | |
tree | caba73597bd1e198859b29187284a174513618dd /src/qcam/assets/feathericons/rewind.svg | |
parent | 9c2f6b973c2c09327c39fee99451286b09be2a99 (diff) |
android: capabilities: Use a throw-away config for YUV stream building
When building the list of supported YUV streams in getYUVResolutions()
the CameraConfiguration provided by the caller as first parameters is used.
As the CameraConfiguration will be later actually applied to the Camera,
avoid any possible overlap of the configuration parameters by using a
throw-away CameraConfiguration generated for the Viewfinder stream role
in getYUVResolutions().
It's also nicer to avoid having two functions with a similar purpose
such as getYUVResolutions() and getRawResolutions() with different
parameter lists, as the presence of a CameraConfiguration as first
parameter might be confusing to the reader.
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/feathericons/rewind.svg')
0 files changed, 0 insertions, 0 deletions