Lines Matching +full:sub +full:- +full:block
54 * struct drm_format_info - information about a DRM format
86 * Number of bytes per block (per plane), where blocks are
99 * block and non-block formats in the same way.
101 * For formats that are intended to be used only with non-linear
113 * Block width in pixels, this is intended to be accessed through
121 * Block height in pixels, this is intended to be accessed through
139 * struct drm_format_name_buf - name of a DRM format
147 * drm_format_info_is_yuv_packed - check that the format info matches a YUV
157 return info->is_yuv && info->num_planes == 1; in drm_format_info_is_yuv_packed()
161 * drm_format_info_is_yuv_semiplanar - check that the format info matches a YUV
171 return info->is_yuv && info->num_planes == 2; in drm_format_info_is_yuv_semiplanar()
175 * drm_format_info_is_yuv_planar - check that the format info matches a YUV
185 return info->is_yuv && info->num_planes == 3; in drm_format_info_is_yuv_planar()
189 * drm_format_info_is_yuv_sampling_410 - check that the format info matches a
190 * YUV format with 4:1:0 sub-sampling
195 * sub-sampling.
200 return info->is_yuv && info->hsub == 4 && info->vsub == 4; in drm_format_info_is_yuv_sampling_410()
204 * drm_format_info_is_yuv_sampling_411 - check that the format info matches a
205 * YUV format with 4:1:1 sub-sampling
210 * sub-sampling.
215 return info->is_yuv && info->hsub == 4 && info->vsub == 1; in drm_format_info_is_yuv_sampling_411()
219 * drm_format_info_is_yuv_sampling_420 - check that the format info matches a
220 * YUV format with 4:2:0 sub-sampling
225 * sub-sampling.
230 return info->is_yuv && info->hsub == 2 && info->vsub == 2; in drm_format_info_is_yuv_sampling_420()
234 * drm_format_info_is_yuv_sampling_422 - check that the format info matches a
235 * YUV format with 4:2:2 sub-sampling
240 * sub-sampling.
245 return info->is_yuv && info->hsub == 2 && info->vsub == 1; in drm_format_info_is_yuv_sampling_422()
249 * drm_format_info_is_yuv_sampling_444 - check that the format info matches a
250 * YUV format with 4:4:4 sub-sampling
255 * sub-sampling.
260 return info->is_yuv && info->hsub == 1 && info->vsub == 1; in drm_format_info_is_yuv_sampling_444()
264 * drm_format_info_plane_width - width of the plane given the first plane
276 if (!info || plane >= info->num_planes) in drm_format_info_plane_width()
282 return width / info->hsub; in drm_format_info_plane_width()
286 * drm_format_info_plane_height - height of the plane given the first plane
298 if (!info || plane >= info->num_planes) in drm_format_info_plane_height()
304 return height / info->vsub; in drm_format_info_plane_height()