hwcomposer_defs.h File Reference
#include <stdint.h>
#include <sys/cdefs.h>
#include <hardware/gralloc.h>
#include <hardware/hardware.h>
#include <cutils/native_handle.h>

Go to the source code of this file.

Data Structures

struct  hwc_color
 
struct  hwc_frect
 
struct  hwc_rect
 
struct  hwc_region
 

Macros

#define HWC_HEADER_VERSION   1
 
#define HWC_MODULE_API_VERSION_0_1   HARDWARE_MODULE_API_VERSION(0, 1)
 
#define HWC_DEVICE_API_VERSION_1_0   HARDWARE_DEVICE_API_VERSION_2(1, 0, HWC_HEADER_VERSION)
 
#define HWC_DEVICE_API_VERSION_1_1   HARDWARE_DEVICE_API_VERSION_2(1, 1, HWC_HEADER_VERSION)
 
#define HWC_DEVICE_API_VERSION_1_2   HARDWARE_DEVICE_API_VERSION_2(1, 2, HWC_HEADER_VERSION)
 
#define HWC_DEVICE_API_VERSION_1_3   HARDWARE_DEVICE_API_VERSION_2(1, 3, HWC_HEADER_VERSION)
 
#define HWC_DEVICE_API_VERSION_1_4   HARDWARE_DEVICE_API_VERSION_2(1, 4, HWC_HEADER_VERSION)
 
#define HWC_DEVICE_API_VERSION_1_5   HARDWARE_DEVICE_API_VERSION_2(1, 5, HWC_HEADER_VERSION)
 
#define HWC_DEVICE_API_VERSION_2_0   HARDWARE_DEVICE_API_VERSION_2(2, 0, HWC_HEADER_VERSION)
 
#define HWC_HARDWARE_MODULE_ID   "hwcomposer"
 
#define HWC_HARDWARE_COMPOSER   "composer"
 

Typedefs

typedef struct hwc_color hwc_color_t
 
typedef struct hwc_frect hwc_frect_t
 
typedef struct hwc_rect hwc_rect_t
 
typedef struct hwc_region hwc_region_t
 

Enumerations

enum  hwc_transform_t {
  HWC_TRANSFORM_FLIP_H = HAL_TRANSFORM_FLIP_H, HWC_TRANSFORM_FLIP_V = HAL_TRANSFORM_FLIP_V, HWC_TRANSFORM_ROT_90 = HAL_TRANSFORM_ROT_90, HWC_TRANSFORM_ROT_180 = HAL_TRANSFORM_ROT_180,
  HWC_TRANSFORM_ROT_270 = HAL_TRANSFORM_ROT_270, HWC_TRANSFORM_FLIP_H_ROT_90 = HAL_TRANSFORM_FLIP_H | HAL_TRANSFORM_ROT_90, HWC_TRANSFORM_FLIP_V_ROT_90 = HAL_TRANSFORM_FLIP_V | HAL_TRANSFORM_ROT_90
}
 
enum  { HWC_EGL_ERROR = -1 }
 
enum  { HWC_HINT_TRIPLE_BUFFER = 0x00000001, HWC_HINT_CLEAR_FB = 0x00000002 }
 
enum  { HWC_SKIP_LAYER = 0x00000001, HWC_IS_CURSOR_LAYER = 0x00000002 }
 
enum  {
  HWC_FRAMEBUFFER = 0, HWC_OVERLAY = 1, HWC_BACKGROUND = 2, HWC_FRAMEBUFFER_TARGET = 3,
  HWC_SIDEBAND = 4, HWC_CURSOR_OVERLAY = 5
}
 
enum  { HWC_BLENDING_NONE = 0x0100, HWC_BLENDING_PREMULT = 0x0105, HWC_BLENDING_COVERAGE = 0x0405 }
 
enum  { HWC_BACKGROUND_LAYER_SUPPORTED = 0, HWC_VSYNC_PERIOD = 1, HWC_DISPLAY_TYPES_SUPPORTED = 2 }
 
enum  {
  HWC_DISPLAY_NO_ATTRIBUTE = 0, HWC_DISPLAY_VSYNC_PERIOD = 1, HWC_DISPLAY_WIDTH = 2, HWC_DISPLAY_HEIGHT = 3,
  HWC_DISPLAY_DPI_X = 4, HWC_DISPLAY_DPI_Y = 5, HWC_DISPLAY_COLOR_TRANSFORM = 6
}
 
enum  { HWC_EVENT_VSYNC = 0 }
 
enum  {
  HWC_DISPLAY_PRIMARY = 0, HWC_DISPLAY_EXTERNAL = 1, HWC_DISPLAY_VIRTUAL = 2, HWC_NUM_PHYSICAL_DISPLAY_TYPES = 2,
  HWC_NUM_DISPLAY_TYPES = 3
}
 
enum  { HWC_DISPLAY_PRIMARY_BIT = 1 << HWC_DISPLAY_PRIMARY, HWC_DISPLAY_EXTERNAL_BIT = 1 << HWC_DISPLAY_EXTERNAL, HWC_DISPLAY_VIRTUAL_BIT = 1 << HWC_DISPLAY_VIRTUAL }
 
enum  { HWC_POWER_MODE_OFF = 0, HWC_POWER_MODE_DOZE = 1, HWC_POWER_MODE_NORMAL = 2, HWC_POWER_MODE_DOZE_SUSPEND = 3 }
 

Macro Definition Documentation

#define HWC_DEVICE_API_VERSION_1_0   HARDWARE_DEVICE_API_VERSION_2(1, 0, HWC_HEADER_VERSION)

Definition at line 35 of file hwcomposer_defs.h.

#define HWC_DEVICE_API_VERSION_1_1   HARDWARE_DEVICE_API_VERSION_2(1, 1, HWC_HEADER_VERSION)

Definition at line 36 of file hwcomposer_defs.h.

#define HWC_DEVICE_API_VERSION_1_2   HARDWARE_DEVICE_API_VERSION_2(1, 2, HWC_HEADER_VERSION)

Definition at line 37 of file hwcomposer_defs.h.

#define HWC_DEVICE_API_VERSION_1_3   HARDWARE_DEVICE_API_VERSION_2(1, 3, HWC_HEADER_VERSION)

Definition at line 38 of file hwcomposer_defs.h.

#define HWC_DEVICE_API_VERSION_1_4   HARDWARE_DEVICE_API_VERSION_2(1, 4, HWC_HEADER_VERSION)

Definition at line 39 of file hwcomposer_defs.h.

#define HWC_DEVICE_API_VERSION_1_5   HARDWARE_DEVICE_API_VERSION_2(1, 5, HWC_HEADER_VERSION)

Definition at line 40 of file hwcomposer_defs.h.

#define HWC_DEVICE_API_VERSION_2_0   HARDWARE_DEVICE_API_VERSION_2(2, 0, HWC_HEADER_VERSION)

Definition at line 42 of file hwcomposer_defs.h.

#define HWC_HARDWARE_COMPOSER   "composer"

Name of the sensors device to open

Definition at line 52 of file hwcomposer_defs.h.

#define HWC_HARDWARE_MODULE_ID   "hwcomposer"

The id of this module

Definition at line 47 of file hwcomposer_defs.h.

#define HWC_HEADER_VERSION   1

Definition at line 31 of file hwcomposer_defs.h.

#define HWC_MODULE_API_VERSION_0_1   HARDWARE_MODULE_API_VERSION(0, 1)

Definition at line 33 of file hwcomposer_defs.h.

Typedef Documentation

typedef struct hwc_color hwc_color_t
typedef struct hwc_frect hwc_frect_t
typedef struct hwc_rect hwc_rect_t
typedef struct hwc_region hwc_region_t

Enumeration Type Documentation

anonymous enum
Enumerator
HWC_EGL_ERROR 

Definition at line 105 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_HINT_TRIPLE_BUFFER 
HWC_HINT_CLEAR_FB 

Definition at line 114 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_SKIP_LAYER 
HWC_IS_CURSOR_LAYER 

Definition at line 137 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_FRAMEBUFFER 
HWC_OVERLAY 
HWC_BACKGROUND 
HWC_FRAMEBUFFER_TARGET 
HWC_SIDEBAND 
HWC_CURSOR_OVERLAY 

Definition at line 159 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_BLENDING_NONE 
HWC_BLENDING_PREMULT 
HWC_BLENDING_COVERAGE 

Definition at line 187 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_BACKGROUND_LAYER_SUPPORTED 
HWC_VSYNC_PERIOD 
HWC_DISPLAY_TYPES_SUPPORTED 

Definition at line 199 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_DISPLAY_NO_ATTRIBUTE 
HWC_DISPLAY_VSYNC_PERIOD 
HWC_DISPLAY_WIDTH 
HWC_DISPLAY_HEIGHT 
HWC_DISPLAY_DPI_X 
HWC_DISPLAY_DPI_Y 
HWC_DISPLAY_COLOR_TRANSFORM 

Definition at line 221 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_EVENT_VSYNC 

Definition at line 249 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_DISPLAY_PRIMARY 
HWC_DISPLAY_EXTERNAL 
HWC_DISPLAY_VIRTUAL 
HWC_NUM_PHYSICAL_DISPLAY_TYPES 
HWC_NUM_DISPLAY_TYPES 

Definition at line 254 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_DISPLAY_PRIMARY_BIT 
HWC_DISPLAY_EXTERNAL_BIT 
HWC_DISPLAY_VIRTUAL_BIT 

Definition at line 263 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_POWER_MODE_OFF 
HWC_POWER_MODE_DOZE 
HWC_POWER_MODE_NORMAL 
HWC_POWER_MODE_DOZE_SUSPEND 

Definition at line 270 of file hwcomposer_defs.h.

Enumerator
HWC_TRANSFORM_FLIP_H 
HWC_TRANSFORM_FLIP_V 
HWC_TRANSFORM_ROT_90 
HWC_TRANSFORM_ROT_180 
HWC_TRANSFORM_ROT_270 
HWC_TRANSFORM_FLIP_H_ROT_90 
HWC_TRANSFORM_FLIP_V_ROT_90 

Definition at line 83 of file hwcomposer_defs.h.