Lines Matching +full:pixel +full:- +full:format
30 * DRM_FORMAT_MAX_PLANES - maximum number of planes a DRM format can have
39 * case the format can't be specified otherwise, so we don't end up
40 * with two values describing the same format.
60 * struct drm_format_info - information about a DRM format
63 /** @format: 4CC format identifier (DRM_FORMAT_*) */
64 u32 format; member
69 * Color depth (number of bits per pixel excluding padding bits),
82 * Number of bytes per pixel (per plane), this is aliased with
85 * describing the pixel format.
97 * formats for which the memory needed for a single pixel is not
105 * block and non-block formats in the same way.
107 * For formats that are intended to be used only with non-linear
109 * generic format table. Drivers could supply accurate
137 /** @has_alpha: Does the format embeds an alpha component? */
140 /** @is_yuv: Is it a YUV format? */
143 /** @is_color_indexed: Is it a color-indexed format? */
148 * drm_format_info_is_yuv_packed - check that the format info matches a YUV
149 * format with data laid in a single plane
150 * @info: format info
153 * A boolean indicating whether the format info matches a packed YUV format.
158 return info->is_yuv && info->num_planes == 1; in drm_format_info_is_yuv_packed()
162 * drm_format_info_is_yuv_semiplanar - check that the format info matches a YUV
163 * format with data laid in two planes (luminance and chrominance)
164 * @info: format info
167 * A boolean indicating whether the format info matches a semiplanar YUV format.
172 return info->is_yuv && info->num_planes == 2; in drm_format_info_is_yuv_semiplanar()
176 * drm_format_info_is_yuv_planar - check that the format info matches a YUV
177 * format with data laid in three planes (one for each YUV component)
178 * @info: format info
181 * A boolean indicating whether the format info matches a planar YUV format.
186 return info->is_yuv && info->num_planes == 3; in drm_format_info_is_yuv_planar()
190 * drm_format_info_is_yuv_sampling_410 - check that the format info matches a
191 * YUV format with 4:1:0 sub-sampling
192 * @info: format info
195 * A boolean indicating whether the format info matches a YUV format with 4:1:0
196 * sub-sampling.
201 return info->is_yuv && info->hsub == 4 && info->vsub == 4; in drm_format_info_is_yuv_sampling_410()
205 * drm_format_info_is_yuv_sampling_411 - check that the format info matches a
206 * YUV format with 4:1:1 sub-sampling
207 * @info: format info
210 * A boolean indicating whether the format info matches a YUV format with 4:1:1
211 * sub-sampling.
216 return info->is_yuv && info->hsub == 4 && info->vsub == 1; in drm_format_info_is_yuv_sampling_411()
220 * drm_format_info_is_yuv_sampling_420 - check that the format info matches a
221 * YUV format with 4:2:0 sub-sampling
222 * @info: format info
225 * A boolean indicating whether the format info matches a YUV format with 4:2:0
226 * sub-sampling.
231 return info->is_yuv && info->hsub == 2 && info->vsub == 2; in drm_format_info_is_yuv_sampling_420()
235 * drm_format_info_is_yuv_sampling_422 - check that the format info matches a
236 * YUV format with 4:2:2 sub-sampling
237 * @info: format info
240 * A boolean indicating whether the format info matches a YUV format with 4:2:2
241 * sub-sampling.
246 return info->is_yuv && info->hsub == 2 && info->vsub == 1; in drm_format_info_is_yuv_sampling_422()
250 * drm_format_info_is_yuv_sampling_444 - check that the format info matches a
251 * YUV format with 4:4:4 sub-sampling
252 * @info: format info
255 * A boolean indicating whether the format info matches a YUV format with 4:4:4
256 * sub-sampling.
261 return info->is_yuv && info->hsub == 1 && info->vsub == 1; in drm_format_info_is_yuv_sampling_444()
265 * drm_format_info_plane_width - width of the plane given the first plane
266 * @info: pixel format info
277 if (!info || plane >= info->num_planes) in drm_format_info_plane_width()
283 return DIV_ROUND_UP(width, info->hsub); in drm_format_info_plane_width()
287 * drm_format_info_plane_height - height of the plane given the first plane
288 * @info: pixel format info
299 if (!info || plane >= info->num_planes) in drm_format_info_plane_height()
305 return DIV_ROUND_UP(height, info->vsub); in drm_format_info_plane_height()
308 const struct drm_format_info *__drm_format_info(u32 format);
309 const struct drm_format_info *drm_format_info(u32 format);