[libcamera-devel] [RFC PATCH] android: camera_device: Drop HAL_PIXEL_FORMAT_RAW_OPAQUE support

Hirokazu Honda hiroh at chromium.org
Tue Jun 15 09:44:24 CEST 2021


Hi Laurent,

On Tue, Jun 15, 2021 at 7:44 AM Laurent Pinchart <
laurent.pinchart at ideasonboard.com> wrote:

> Hi Hiro,
>
> Thank you for the patch.
>
> On Mon, Jun 14, 2021 at 07:45:53PM +0900, Hirokazu Honda wrote:
> > HAL_PIXEL_FORMAT_RAW_OPAQUE is requested only for
> > Zero-Shutter-Lag (ZSL). ZSL requires RAW and YUV reprocessing.
> > Since either of them is not supported by libcamera, supporting
> > RAW_OPAQUE format doesn't make sense. Drop the format from the
> > supported format list.
> >
> > Signed-off-by: Hirokazu Honda <hiroh at chromium.org>
>
> This looks sensible to me. Given that the formats below are specific to
> the IPU3, the code would need to be reworked when we'll implement ZSL
> support anyway.
>
>
Just note:
For ZSL capture request, the format is either RAW_OPAQUE or
IMPLEMENTATION_DEFINED.
In ChromeOS, IMPLEMENTATION_DEFINED is used for ZSL.
Besides, gralloc implementation in ChromeOS doesn't support RAW_OPAQUE.
So we should not list this format in supported formats at least in ChromeOS.
We may want to support RAW_OPAQUE for other platforms though.

-Hiro

> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
>
> I'll wait for a second tag before merging.
>
> > ---
> >  src/android/camera_device.cpp | 11 -----------
> >  1 file changed, 11 deletions(-)
> >
> > diff --git a/src/android/camera_device.cpp
> b/src/android/camera_device.cpp
> > index fe332ec3..14022aed 100644
> > --- a/src/android/camera_device.cpp
> > +++ b/src/android/camera_device.cpp
> > @@ -120,17 +120,6 @@ const std::map<int, const Camera3Format>
> camera3FormatsMap = {
> >                       false,
> >                       "RAW16"
> >               }
> > -     }, {
> > -             HAL_PIXEL_FORMAT_RAW_OPAQUE, {
> > -                     {
> > -                             formats::SBGGR10_IPU3,
> > -                             formats::SGBRG10_IPU3,
> > -                             formats::SGRBG10_IPU3,
> > -                             formats::SRGGB10_IPU3
> > -                     },
> > -                     false,
> > -                     "RAW_OPAQUE"
> > -             }
> >       },
> >  };
> >
>
> --
> Regards,
>
> Laurent Pinchart
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20210615/914de95f/attachment-0001.htm>


More information about the libcamera-devel mailing list