Re: [RFC PATCH 0/5] vb2/cedrus: add cookie support

2018-11-12 Thread Hans Verkuil
On 11/12/2018 08:07 AM, Alexandre Courbot wrote: > Hi Hans, > > On Fri, Nov 9, 2018 at 6:56 PM Hans Verkuil wrote: >> >> As was discussed here (among other places): >> >> https://lkml.org/lkml/2018/10/19/440 >> >> using capture queue buffer indices to refer to reference frames is >> not a good

Re: [RFC PATCH 0/5] vb2/cedrus: add cookie support

2018-11-11 Thread Alexandre Courbot
Hi Hans, On Fri, Nov 9, 2018 at 6:56 PM Hans Verkuil wrote: > > As was discussed here (among other places): > > https://lkml.org/lkml/2018/10/19/440 > > using capture queue buffer indices to refer to reference frames is > not a good idea. A better idea is to use 'cookies' (a better name is >

Re: [RFC PATCH 0/5] vb2/cedrus: add cookie support

2018-11-09 Thread Hans Verkuil
On 11/09/18 10:56, Hans Verkuil wrote: > As was discussed here (among other places): > > https://lkml.org/lkml/2018/10/19/440 > > using capture queue buffer indices to refer to reference frames is > not a good idea. A better idea is to use 'cookies' (a better name is > welcome!) where the

[RFC PATCH 0/5] vb2/cedrus: add cookie support

2018-11-09 Thread Hans Verkuil
As was discussed here (among other places): https://lkml.org/lkml/2018/10/19/440 using capture queue buffer indices to refer to reference frames is not a good idea. A better idea is to use 'cookies' (a better name is welcome!) where the application can assign a u64 cookie to an output buffer,