android: camera_device: Generate RAW resolutions
The resolutions supported for the RAW formats cannot be tested from a list of known sizes like the processed ones. This is mainly due to the fact RAW streams are produced by capturing frames at the CSI-2 receiver output and their size corresponds to the sensor's native sizes. In order to obtain the RAW frame size generate a temporary CameraConfiguration for the Role::StillCaptureRAW role and inspect the map of StreamFormats returned by the pipeline handler. Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -97,6 +97,8 @@ private:
|
||||
getYUVResolutions(libcamera::CameraConfiguration *cameraConfig,
|
||||
const libcamera::PixelFormat &pixelFormat,
|
||||
const std::vector<libcamera::Size> &resolutions);
|
||||
std::vector<libcamera::Size>
|
||||
getRawResolutions(const libcamera::PixelFormat &pixelFormat);
|
||||
|
||||
std::tuple<uint32_t, uint32_t> calculateStaticMetadataSize();
|
||||
libcamera::FrameBuffer *createFrameBuffer(const buffer_handle_t camera3buffer);
|
||||
|
||||
Reference in New Issue
Block a user