Android Hardware Abstraction Layer
Macros | Enumerations
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.

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)
 

Enumerations

enum  { HWC_EGL_ERROR = -1 }
 
enum  { HWC_HINT_TRIPLE_BUFFER = 0x00000001, HWC_HINT_CLEAR_FB = 0x00000002 }
 
enum  { HWC_SKIP_LAYER = 0x00000001 }
 
enum  { HWC_FRAMEBUFFER = 0, HWC_OVERLAY = 1, HWC_BACKGROUND = 2, HWC_FRAMEBUFFER_TARGET = 3 }
 
enum  { HWC_BLENDING_NONE = 0x0100, HWC_BLENDING_PREMULT = 0x0105, HWC_BLENDING_COVERAGE = 0x0405 }
 
enum  {
  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
}
 
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
}
 
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 }
 

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_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.

Enumeration Type Documentation

anonymous enum
Enumerator
HWC_EGL_ERROR 

Definition at line 40 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_HINT_TRIPLE_BUFFER 
HWC_HINT_CLEAR_FB 

Definition at line 49 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_SKIP_LAYER 

Definition at line 72 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_FRAMEBUFFER 
HWC_OVERLAY 
HWC_BACKGROUND 
HWC_FRAMEBUFFER_TARGET 

Definition at line 84 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_BLENDING_NONE 
HWC_BLENDING_PREMULT 
HWC_BLENDING_COVERAGE 

Definition at line 103 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_TRANSFORM_FLIP_H 
HWC_TRANSFORM_FLIP_V 
HWC_TRANSFORM_ROT_90 
HWC_TRANSFORM_ROT_180 
HWC_TRANSFORM_ROT_270 

Definition at line 117 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_BACKGROUND_LAYER_SUPPORTED 
HWC_VSYNC_PERIOD 
HWC_DISPLAY_TYPES_SUPPORTED 

Definition at line 131 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 

Definition at line 153 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_EVENT_VSYNC 

Definition at line 177 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 182 of file hwcomposer_defs.h.

anonymous enum
Enumerator
HWC_DISPLAY_PRIMARY_BIT 
HWC_DISPLAY_EXTERNAL_BIT 
HWC_DISPLAY_VIRTUAL_BIT 

Definition at line 191 of file hwcomposer_defs.h.