summaryrefslogtreecommitdiff
path: root/test/media_device
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2021-06-30 14:11:13 +0200
committerJacopo Mondi <jacopo@jmondi.org>2021-07-27 17:36:20 +0200
commit804c52fce4250f6300cdefa4f31077fc7f8d048d (patch)
treeba6a6b913dd590bb7a31581b0a0868f98f788406 /test/media_device
parent18d61deb3c0aebcf99c9b085f7031cd2f12b4d66 (diff)
android: capabilities: Centralize RAW support check
The validation of RAW stream support is performed in two different places: - At initializeStreamConfigurations() time, by verifying that the libcamera format associated with HAL_PIXEL_FORMAT_BLOB is a Raw format and ensuring the Camera successfully validates it - As initializeStaticMetadata() time by generating a CameraConfiguration for the Raw stream role and ensuring it is a Raw format with a 16 bit depth The first check is used to build the list of supported Raw stream resolutions. The latter is used to register the ANDROID_REQUEST_AVAILABLE_CAPABILITIES_RAW capability. As building the list of supported Raw streams doesn't serve any purpose if the RAW capability is not registered, centralize the Raw format support verification at initializeStreamConfigurations() time by ensuring the supported format is a Raw one with a 16 bit depth. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/media_device')
0 files changed, 0 insertions, 0 deletions