OSDN Git Service

gralloc0_register_buffer: initialize gralloc0 when needed
[android-x86/external-minigbm.git] / cros_gralloc / cros_gralloc_handle.h
index 4cb554d..4759599 100644 (file)
@@ -26,12 +26,25 @@ struct cros_gralloc_handle {
        uint32_t format_modifiers[2 * DRV_MAX_PLANES];
        uint32_t width;
        uint32_t height;
-       uint32_t format;   /* DRM format */
-       uint32_t flags[2]; /* driver creation time flags */
+       uint32_t format;       /* DRM format */
+       uint32_t tiling_mode;
+       uint32_t use_flags[2]; /* Buffer creation flags */
        uint32_t magic;
        uint32_t pixel_stride;
        int32_t droid_format;
        int32_t usage; /* Android usage. */
+       uint32_t consumer_usage;
+       uint32_t producer_usage;
+       uint32_t yuv_color_range;   // YUV Color range.
+       uint32_t is_updated;        // frame updated flag
+       uint32_t is_encoded;        // frame encoded flag
+       uint32_t is_encrypted;
+       uint32_t is_key_frame;
+       uint32_t is_interlaced;
+       uint32_t is_mmc_capable;
+       uint32_t compression_mode;
+       uint32_t compression_hint;
+       uint32_t codec;
 };
 
 typedef const struct cros_gralloc_handle *cros_gralloc_handle_t;