Re: DRM Format Modifiers in v4l2

2017-09-03 Thread Daniel Vetter
On Fri, Sep 1, 2017 at 2:43 PM, Rob Clark wrote: > On Fri, Sep 1, 2017 at 3:13 AM, Laurent Pinchart > wrote: >> Hi Nicolas, >> >> On Thursday, 31 August 2017 19:12:58 EEST Nicolas Dufresne wrote: >>> Le jeudi 31 août 2017 à 17:28 +0300, Laurent Pinchart a écrit : >>> >> e.g. if I have two devices

Re: DRM Format Modifiers in v4l2

2017-09-01 Thread Rob Clark
On Fri, Sep 1, 2017 at 3:13 AM, Laurent Pinchart wrote: > Hi Nicolas, > > On Thursday, 31 August 2017 19:12:58 EEST Nicolas Dufresne wrote: >> Le jeudi 31 août 2017 à 17:28 +0300, Laurent Pinchart a écrit : >> >> e.g. if I have two devices which support MODIFIER_FOO, I could attempt >> >> to share

Re: DRM Format Modifiers in v4l2

2017-09-01 Thread Laurent Pinchart
Hi Nicolas, On Thursday, 31 August 2017 19:12:58 EEST Nicolas Dufresne wrote: > Le jeudi 31 août 2017 à 17:28 +0300, Laurent Pinchart a écrit : > >> e.g. if I have two devices which support MODIFIER_FOO, I could attempt > >> to share a buffer between them which uses MODIFIER_FOO without > >> neces

Re: DRM Format Modifiers in v4l2

2017-08-31 Thread Nicolas Dufresne
Le jeudi 31 août 2017 à 17:28 +0300, Laurent Pinchart a écrit : > > e.g. if I have two devices which support MODIFIER_FOO, I could attempt > > to share a buffer between them which uses MODIFIER_FOO without > > necessarily knowing exactly what it is/does. > > Userspace could certainly set modifiers

Re: DRM Format Modifiers in v4l2

2017-08-31 Thread Brian Starkey
Hi Laurent, On Thu, Aug 31, 2017 at 05:51:33PM +0300, Laurent Pinchart wrote: Hi Brian, On Wednesday, 30 August 2017 13:32:01 EEST Brian Starkey wrote: On Wed, Aug 30, 2017 at 11:53:58AM +0200, Hans Verkuil wrote: > On 30/08/17 11:36, Brian Starkey wrote: >> On Wed, Aug 30, 2017 at 10:10:01AM

Re: DRM Format Modifiers in v4l2

2017-08-31 Thread Laurent Pinchart
Hi Brian, On Wednesday, 30 August 2017 13:32:01 EEST Brian Starkey wrote: > On Wed, Aug 30, 2017 at 11:53:58AM +0200, Hans Verkuil wrote: > > On 30/08/17 11:36, Brian Starkey wrote: > >> On Wed, Aug 30, 2017 at 10:10:01AM +0200, Hans Verkuil wrote: > >>> On 30/08/17 09:50, Daniel Vetter wrote: > >

Re: DRM Format Modifiers in v4l2

2017-08-31 Thread Laurent Pinchart
gt;>> Hi all, > >>>>>>> > >>>>>>> I couldn't find this topic talked about elsewhere, but apologies if > >>>>>>> it's a duplicate - I'll be glad to be steered in the direction of a > >>>>>>> thread

Re: DRM Format Modifiers in v4l2

2017-08-31 Thread Laurent Pinchart
; >>> > >>> I couldn't find this topic talked about elsewhere, but apologies if > >>> it's a duplicate - I'll be glad to be steered in the direction of a > >>> thread. > >>> > >>> We'd like to support DRM format mo

Re: DRM Format Modifiers in v4l2

2017-08-30 Thread Brian Starkey
On Wed, Aug 30, 2017 at 11:53:58AM +0200, Hans Verkuil wrote: On 30/08/17 11:36, Brian Starkey wrote: On Wed, Aug 30, 2017 at 10:10:01AM +0200, Hans Verkuil wrote: On 30/08/17 09:50, Daniel Vetter wrote: On Tue, Aug 29, 2017 at 10:47:01AM +0100, Brian Starkey wrote: The fact is, adding specia

Re: DRM Format Modifiers in v4l2

2017-08-30 Thread Hans Verkuil
On 30/08/17 11:36, Brian Starkey wrote: > On Wed, Aug 30, 2017 at 10:10:01AM +0200, Hans Verkuil wrote: >> On 30/08/17 09:50, Daniel Vetter wrote: >>> On Tue, Aug 29, 2017 at 10:47:01AM +0100, Brian Starkey wrote: The fact is, adding special formats for each combination is unmanageable -

Re: DRM Format Modifiers in v4l2

2017-08-30 Thread Brian Starkey
On Wed, Aug 30, 2017 at 10:10:01AM +0200, Hans Verkuil wrote: On 30/08/17 09:50, Daniel Vetter wrote: On Tue, Aug 29, 2017 at 10:47:01AM +0100, Brian Starkey wrote: The fact is, adding special formats for each combination is unmanageable - we're talking dozens in the case of our hardware. Hm

Re: DRM Format Modifiers in v4l2

2017-08-30 Thread Hans Verkuil
On 30/08/17 09:50, Daniel Vetter wrote: > On Tue, Aug 29, 2017 at 10:47:01AM +0100, Brian Starkey wrote: >> On Mon, Aug 28, 2017 at 10:49:07PM +0200, Daniel Vetter wrote: >>> On Mon, Aug 28, 2017 at 8:07 PM, Nicolas Dufresne >>> wrote: Le jeudi 24 ao??t 2017 ?? 13:26 +0100, Brian Starkey a ?

Re: DRM Format Modifiers in v4l2

2017-08-30 Thread Daniel Vetter
On Tue, Aug 29, 2017 at 10:47:01AM +0100, Brian Starkey wrote: > On Mon, Aug 28, 2017 at 10:49:07PM +0200, Daniel Vetter wrote: > > On Mon, Aug 28, 2017 at 8:07 PM, Nicolas Dufresne > > wrote: > > > Le jeudi 24 ao??t 2017 ?? 13:26 +0100, Brian Starkey a ??crit : > > > > > What I mean was: an appl

Re: DRM Format Modifiers in v4l2

2017-08-29 Thread Brian Starkey
On Mon, Aug 28, 2017 at 10:49:07PM +0200, Daniel Vetter wrote: On Mon, Aug 28, 2017 at 8:07 PM, Nicolas Dufresne wrote: Le jeudi 24 ao??t 2017 ?? 13:26 +0100, Brian Starkey a ??crit : > What I mean was: an application can use the modifier to give buffers from > one device to another without ne

Re: DRM Format Modifiers in v4l2

2017-08-29 Thread Brian Starkey
:01 PM, Daniel Vetter wrote: On Mon, Aug 21, 2017 at 5:52 PM, Brian Starkey wrote: Hi all, I couldn't find this topic talked about elsewhere, but apologies if it's a duplicate - I'll be glad to be steered in the direction of a thread. We'd like to support DRM format modifi

Re: DRM Format Modifiers in v4l2

2017-08-28 Thread Nicolas Dufresne
Le jeudi 24 août 2017 à 13:26 +0100, Brian Starkey a écrit : > > What I mean was: an application can use the modifier to give buffers from > > one device to another without needing to understand it. > > > > But a generic video capture application that processes the video itself > > cannot be expec

Re: DRM Format Modifiers in v4l2

2017-08-28 Thread Daniel Vetter
On Mon, Aug 28, 2017 at 8:07 PM, Nicolas Dufresne wrote: > Le jeudi 24 août 2017 à 13:26 +0100, Brian Starkey a écrit : >> > What I mean was: an application can use the modifier to give buffers from >> > one device to another without needing to understand it. >> > >> > But a generic video capture

Re: DRM Format Modifiers in v4l2

2017-08-25 Thread Hans Verkuil
06:01 PM, Daniel Vetter wrote: >>>>> On Mon, Aug 21, 2017 at 5:52 PM, Brian Starkey >>>>> wrote: >>>>>> Hi all, >>>>>> >>>>>> I couldn't find this topic talked about elsewhere, but apologies if >>>>

Re: DRM Format Modifiers in v4l2

2017-08-24 Thread Brian Starkey
couldn't find this topic talked about elsewhere, but apologies if it's a duplicate - I'll be glad to be steered in the direction of a thread. We'd like to support DRM format modifiers in v4l2 in order to share the description of different (mostly proprietary) buffer formats between e.

Re: DRM Format Modifiers in v4l2

2017-08-24 Thread Hans Verkuil
>>> >>>> I couldn't find this topic talked about elsewhere, but apologies if >>>> it's a duplicate - I'll be glad to be steered in the direction of a >>>> thread. >>>> >>>> We'd like to support DRM format modifiers

Re: DRM Format Modifiers in v4l2

2017-08-24 Thread Brian Starkey
d to be steered in the direction of a thread. We'd like to support DRM format modifiers in v4l2 in order to share the description of different (mostly proprietary) buffer formats between e.g. a v4l2 device and a DRM device. DRM format modifiers are defined in include/uapi/drm/drm_fourc

Re: DRM Format Modifiers in v4l2

2017-08-21 Thread Hans Verkuil
of a >> thread. >> >> We'd like to support DRM format modifiers in v4l2 in order to share >> the description of different (mostly proprietary) buffer formats >> between e.g. a v4l2 device and a DRM device. >> >> DRM format modifiers are defined in i

Re: DRM Format Modifiers in v4l2

2017-08-21 Thread Brian Starkey
27;d like to support DRM format modifiers in v4l2 in order to share the description of different (mostly proprietary) buffer formats between e.g. a v4l2 device and a DRM device. DRM format modifiers are defined in include/uapi/drm/drm_fourcc.h and are a vendor-namespaced 64-bit value used to des

Re: DRM Format Modifiers in v4l2

2017-08-21 Thread Daniel Vetter
On Mon, Aug 21, 2017 at 5:52 PM, Brian Starkey wrote: > Hi all, > > I couldn't find this topic talked about elsewhere, but apologies if > it's a duplicate - I'll be glad to be steered in the direction of a > thread. > > We'd like to support DRM format

DRM Format Modifiers in v4l2

2017-08-21 Thread Brian Starkey
Hi all, I couldn't find this topic talked about elsewhere, but apologies if it's a duplicate - I'll be glad to be steered in the direction of a thread. We'd like to support DRM format modifiers in v4l2 in order to share the description of different (mostly proprietary) bu