[PATCH 0/1] Add StreamRole into StreamConfiguration

Cheng-Hao Yang chenghaoyang at chromium.org
Wed Sep 18 10:33:27 CEST 2024


Sorry Jacopo, my bad to miss the first message:

On Mon, Sep 16, 2024 at 8:45 PM Jacopo Mondi <jacopo.mondi at ideasonboard.com>
wrote:

> Hi Harvey
>
> On Mon, Sep 16, 2024 at 03:51:00PM GMT, Cheng-Hao Yang wrote:
> > Hi Jacopo,
> >
> > On Mon, Sep 16, 2024 at 3:35 PM Jacopo Mondi <
> jacopo.mondi at ideasonboard.com>
> > wrote:
> >
> > > Hi Harvey
> > >
> > > On Mon, Sep 16, 2024 at 04:51:54AM GMT, Harvey Yang wrote:
> > > > Hi folks,
> > > >
> > > > Currently applications set resolutions, pixelFormat, bufferCount,
> etc,
> > > > into StreamConfigurations, and Pipeline Handler decides which streams
> > > > they're assigned to. However, it doesn't allow application to assign
> > > > streams that cannot be distinguished by those arguments into
> > > > VideoRecording or StillCapture (say YUV/NV12 format), which is
> needed in
> > > > mtkisp7.
> > >
> > > Could you explain in a bit more detail why this "is needed" and how
> > > you plan to use StreamRole as part of the stream configuration ?
> > >
>
> Could you explain in a bit more detail why this "is needed" and how
> you plan to use StreamRole as part of the stream configuration ?
>
>
>
In mtkisp7 pipeline handler, both preview (or video) and still capture
streams support the same format (NV12) and bufferCount, and the
maximum resolutions are also the same. Therefore, when calling
`validate()` and `configure()`, mtkisp7 pipeline handler doesn't know
if applications/Android adapter wants the stream to go through the
still captur pipeline or not.

Does that make sense :P?

BR,
Harvey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20240918/c944678f/attachment.htm>


More information about the libcamera-devel mailing list