android: camera_device: Break out size calculation
As the RAW stream sizes needs to be calculated differently from the processed one, break out the procedure to calculate the processed (RGB/YUV) resolutions from initializeStreamConfigurations() in order to prepare for RAW sizes calculation. Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-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:
@@ -93,6 +93,11 @@ private:
|
||||
};
|
||||
|
||||
int initializeStreamConfigurations();
|
||||
std::vector<libcamera::Size>
|
||||
getYUVResolutions(libcamera::CameraConfiguration *cameraConfig,
|
||||
const libcamera::PixelFormat &pixelFormat,
|
||||
const std::vector<libcamera::Size> &resolutions);
|
||||
|
||||
std::tuple<uint32_t, uint32_t> calculateStaticMetadataSize();
|
||||
libcamera::FrameBuffer *createFrameBuffer(const buffer_handle_t camera3buffer);
|
||||
void notifyShutter(uint32_t frameNumber, uint64_t timestamp);
|
||||
|
||||
Reference in New Issue
Block a user