summaryrefslogtreecommitdiffstats
path: root/hwc/hal_public.h
diff options
context:
space:
mode:
Diffstat (limited to 'hwc/hal_public.h')
-rw-r--r--hwc/hal_public.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/hwc/hal_public.h b/hwc/hal_public.h
index 3d64c4c..a7dfb08 100644
--- a/hwc/hal_public.h
+++ b/hwc/hal_public.h
@@ -164,4 +164,25 @@ typedef struct IMG_buffer_format_public_t
}
IMG_buffer_format_public_t;
+/*
+ * These are vendor specific pixel formats, by (informal) convention IMGTec
+ * formats start from the top of the range, TI formats start from the bottom
+ */
+#define HAL_PIXEL_FORMAT_BGRX_8888 0x1FF
+#define HAL_PIXEL_FORMAT_TI_NV12 0x100
+#define HAL_PIXEL_FORMAT_TI_UNUSED 0x101 /* Free for use */
+#define HAL_PIXEL_FORMAT_TI_NV12_1D 0x102
+
+#ifndef GRALLOC_USAGE_SYSTEM_HEAP
+#define GRALLOC_USAGE_SYSTEM_HEAP GRALLOC_USAGE_PRIVATE_0
+#else
+#error GRALLOC_USAGE_SYSTEM_HEAP should only be defined by hal_public.h
+#endif
+
+#ifndef GRALLOC_USAGE_PHYS_CONTIG
+#define GRALLOC_USAGE_PHYS_CONTIG GRALLOC_USAGE_PRIVATE_1
+#else
+#error GRALLOC_USAGE_PHYS_CONTIG should only be defined by hal_public.h
+#endif
#endif /* HAL_PUBLIC_H */
+