lkml.org 
[lkml]   [2021]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4 07/15] media: mtk-vcodec: vdec: add media device if using stateless api
From
Date
Le jeudi 13 mai 2021 à 17:05 +0900, Alexandre Courbot a écrit :
> Hi Hans, thanks for the review!
>
> On Thu, Apr 29, 2021 at 4:28 PM Hans Verkuil <hverkuil-cisco@xs4all.nl> wrote:
> >
> > On 27/04/2021 13:15, Alexandre Courbot wrote:
> > > From: Yunfei Dong <yunfei.dong@mediatek.com>
> > >
> > > The stateless API requires a media device for issuing requests. Add one
> > > if we are being instantiated as a stateless decoder.
> >
> > Why for the stateless decoder only? Why not create one for all?
> >
> > It's not a blocker, but I would recommend looking at this.
>
> Would there be any use in creating a media device for a stateful
> decoder that does not need to use requests?

The only thing I can think of is classification. In GStreamer support for
stateless decoders, I use the topology to classify what is a decoder by walking
the toplogy and making sure it's what I expect, and that there is no other
branches or functions that I may not support. This makes it more strict, so less
likely to confuse driver function.

Note that v4l2-compliance just use the same old heuristic we have used for
stateful, which is to check that one side have only RAW format, and the other
side have only encoded formats. It works too, it's just less strict.

>
> Cheers,
> Alex.


\
 
 \ /
  Last update: 2021-05-13 17:08    [W:0.058 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site