[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Laurent Pinchart
Hi Ville, On Tuesday 07 Jun 2016 16:20:17 Ville Syrjälä wrote: > On Tue, Jun 07, 2016 at 02:33:11AM +0300, Laurent Pinchart wrote: > > Various pieces of information about DRM formats (number of planes, color > > depth, chroma subsampling, ...) are scattered across different helper > > functions

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Ville Syrjälä
On Tue, Jun 07, 2016 at 02:33:11AM +0300, Laurent Pinchart wrote: > Various pieces of information about DRM formats (number of planes, color > depth, chroma subsampling, ...) are scattered across different helper > functions in the DRM core. Callers of those functions often need to > access more th

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Laurent Pinchart
Hi Tomi, On Tuesday 07 Jun 2016 12:25:08 Tomi Valkeinen wrote: > On 07/06/16 02:33, Laurent Pinchart wrote: > > Various pieces of information about DRM formats (number of planes, color > > depth, chroma subsampling, ...) are scattered across different helper > > functions in the DRM core. Callers

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Laurent Pinchart
Hi Tomi, On Tuesday 07 Jun 2016 12:18:34 Tomi Valkeinen wrote: > On 07/06/16 02:33, Laurent Pinchart wrote: > > +/** > > + * struct drm_format_info - information about a DRM format > > + * @format: 4CC format identifier (DRM_FORMAT_*) > > + * @depth: color depth (number of bits per pixel excluding

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Tomi Valkeinen
On 07/06/16 02:33, Laurent Pinchart wrote: > Various pieces of information about DRM formats (number of planes, color > depth, chroma subsampling, ...) are scattered across different helper > functions in the DRM core. Callers of those functions often need to > access more than a single parameter o

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Tomi Valkeinen
On 07/06/16 02:33, Laurent Pinchart wrote: > +/** > + * struct drm_format_info - information about a DRM format > + * @format: 4CC format identifier (DRM_FORMAT_*) > + * @depth: color depth (number of bits per pixel excluding padding bits) > + * @bpp: number of bits per pixel including padding > +

[PATCH 1/4] drm: Centralize format information

2016-06-07 Thread Laurent Pinchart
Various pieces of information about DRM formats (number of planes, color depth, chroma subsampling, ...) are scattered across different helper functions in the DRM core. Callers of those functions often need to access more than a single parameter of the format, leading to inefficiencies due to mult