diff options
| author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2012-04-05 14:35:17 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2012-04-20 07:38:00 -0400 |
| commit | 01b68b0483627631c738dcfca0dee7e22892c420 (patch) | |
| tree | 9eead4bda1b134612d0c564a3a6c2ad690291560 /include/drm | |
| parent | 5a86bd552407bd6b3e0df4e88636797484d06430 (diff) | |
drm: Add drm_format_{horz, vert}_chroma_subsampling() utility functions
These functions return the chroma subsampling factors for the specified
pixel format.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
| -rw-r--r-- | include/drm/drm_crtc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 2d128eb4293f..2d63a02571ff 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
| @@ -1028,5 +1028,7 @@ extern void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth, | |||
| 1028 | int *bpp); | 1028 | int *bpp); |
| 1029 | extern int drm_format_num_planes(uint32_t format); | 1029 | extern int drm_format_num_planes(uint32_t format); |
| 1030 | extern int drm_format_plane_cpp(uint32_t format, int plane); | 1030 | extern int drm_format_plane_cpp(uint32_t format, int plane); |
| 1031 | extern int drm_format_horz_chroma_subsampling(uint32_t format); | ||
| 1032 | extern int drm_format_vert_chroma_subsampling(uint32_t format); | ||
| 1031 | 1033 | ||
| 1032 | #endif /* __DRM_CRTC_H__ */ | 1034 | #endif /* __DRM_CRTC_H__ */ |
