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:
@@ -75,7 +75,7 @@ private:
|
||||
|
||||
struct Camera3StreamConfiguration {
|
||||
libcamera::Size resolution;
|
||||
int androidScalerCode;
|
||||
int androidFormat;
|
||||
};
|
||||
|
||||
int initializeStreamConfigurations();
|
||||
|
||||
Reference in New Issue
Block a user