Lines Matching +full:sub +full:- +full:block

30  * DRM_FORMAT_MAX_PLANES - maximum number of planes a DRM format can have
60 * struct drm_format_info - information about a DRM format
92 * Number of bytes per block (per plane), where blocks are
105 * block and non-block formats in the same way.
107 * For formats that are intended to be used only with non-linear
119 * Block width in pixels, this is intended to be accessed through
127 * Block height in pixels, this is intended to be accessed through
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
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
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
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
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
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
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
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
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
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
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()