summaryrefslogtreecommitdiff
path: root/include/video/adf_format.h
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2013-05-22 14:23:10 -0700
committerGreg Hackmann <ghackmann@google.com>2013-10-11 16:40:50 -0700
commitaa431ca700139dbaaddd14e689f58625469f94d0 (patch)
tree4b3735650bf6be4b3cbe906424939f501ccabde7 /include/video/adf_format.h
parent3eeae661f1c26431dd03d2760e2373620bb488ca (diff)
video: add atomic display framework
Change-Id: I693257e269a99012cd0dbb57576ac222869cf4c7 Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'include/video/adf_format.h')
-rw-r--r--include/video/adf_format.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/video/adf_format.h b/include/video/adf_format.h
new file mode 100644
index 000000000000..e03182cdcb06
--- /dev/null
+++ b/include/video/adf_format.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2013 Google, Inc.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef _VIDEO_ADF_FORMAT_H
+#define _VIDEO_ADF_FORMAT_H
+
+bool adf_format_is_standard(u32 format);
+bool adf_format_is_rgb(u32 format);
+u8 adf_format_num_planes(u32 format);
+u8 adf_format_bpp(u32 format);
+u8 adf_format_plane_cpp(u32 format, int plane);
+u8 adf_format_horz_chroma_subsampling(u32 format);
+u8 adf_format_vert_chroma_subsampling(u32 format);
+
+#endif /* _VIDEO_ADF_FORMAT_H */