Lines Matching refs:info

149  * drm_format_info_is_yuv_packed - check that the format info matches a YUV
151 * @info: format info
154 * A boolean indicating whether the format info matches a packed YUV format.
157 drm_format_info_is_yuv_packed(const struct drm_format_info *info)
159 return info->is_yuv && info->num_planes == 1;
163 * drm_format_info_is_yuv_semiplanar - check that the format info matches a YUV
165 * @info: format info
168 * A boolean indicating whether the format info matches a semiplanar YUV format.
171 drm_format_info_is_yuv_semiplanar(const struct drm_format_info *info)
173 return info->is_yuv && info->num_planes == 2;
177 * drm_format_info_is_yuv_planar - check that the format info matches a YUV
179 * @info: format info
182 * A boolean indicating whether the format info matches a planar YUV format.
185 drm_format_info_is_yuv_planar(const struct drm_format_info *info)
187 return info->is_yuv && info->num_planes == 3;
191 * drm_format_info_is_yuv_sampling_410 - check that the format info matches a
193 * @info: format info
196 * A boolean indicating whether the format info matches a YUV format with 4:1:0
200 drm_format_info_is_yuv_sampling_410(const struct drm_format_info *info)
202 return info->is_yuv && info->hsub == 4 && info->vsub == 4;
206 * drm_format_info_is_yuv_sampling_411 - check that the format info matches a
208 * @info: format info
211 * A boolean indicating whether the format info matches a YUV format with 4:1:1
215 drm_format_info_is_yuv_sampling_411(const struct drm_format_info *info)
217 return info->is_yuv && info->hsub == 4 && info->vsub == 1;
221 * drm_format_info_is_yuv_sampling_420 - check that the format info matches a
223 * @info: format info
226 * A boolean indicating whether the format info matches a YUV format with 4:2:0
230 drm_format_info_is_yuv_sampling_420(const struct drm_format_info *info)
232 return info->is_yuv && info->hsub == 2 && info->vsub == 2;
236 * drm_format_info_is_yuv_sampling_422 - check that the format info matches a
238 * @info: format info
241 * A boolean indicating whether the format info matches a YUV format with 4:2:2
245 drm_format_info_is_yuv_sampling_422(const struct drm_format_info *info)
247 return info->is_yuv && info->hsub == 2 && info->vsub == 1;
251 * drm_format_info_is_yuv_sampling_444 - check that the format info matches a
253 * @info: format info
256 * A boolean indicating whether the format info matches a YUV format with 4:4:4
260 drm_format_info_is_yuv_sampling_444(const struct drm_format_info *info)
262 return info->is_yuv && info->hsub == 1 && info->vsub == 1;
267 * @info: pixel format info
275 int drm_format_info_plane_width(const struct drm_format_info *info, int width,
278 if (!info || plane >= info->num_planes)
284 return width / info->hsub;
289 * @info: pixel format info
297 int drm_format_info_plane_height(const struct drm_format_info *info, int height,
300 if (!info || plane >= info->num_planes)
306 return height / info->vsub;
317 unsigned int drm_format_info_block_width(const struct drm_format_info *info,
319 unsigned int drm_format_info_block_height(const struct drm_format_info *info,
321 uint64_t drm_format_info_min_pitch(const struct drm_format_info *info,