mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-22 16:15:09 +03:00
android: camera_device: Use HAL_PIXEL_FORMAT_* defines for formats
The documentation says the HAL_PIXEL_FORMAT_* defines shall be used for formats instead of ANDROID_SCALER_AVAILABLE_FORMATS_* for the ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS and ANDROID_SCALER_AVAILABLE_MIN_FRAME_DURATIONS tags. This have worked in the past as the numerical value of the two sets are the same for the formats supported. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
3530614fbf
commit
142a9ee3f8
2 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ private:
|
|||
|
||||
struct Camera3StreamConfiguration {
|
||||
libcamera::Size resolution;
|
||||
int androidScalerCode;
|
||||
int androidFormat;
|
||||
};
|
||||
|
||||
int initializeStreamConfigurations();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue