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:
Niklas Söderlund 2020-07-23 18:32:23 +02:00
parent 3530614fbf
commit 142a9ee3f8
2 changed files with 5 additions and 5 deletions

View file

@ -75,7 +75,7 @@ private:
struct Camera3StreamConfiguration {
libcamera::Size resolution;
int androidScalerCode;
int androidFormat;
};
int initializeStreamConfigurations();