• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef ANDROID_VR_HARDWARE_COMPOSER_DEFS_H
2 #define ANDROID_VR_HARDWARE_COMPOSER_DEFS_H
3 
4 #include <inttypes.h>
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
10 // NOTE: These definitions must match the ones in
11 // //hardware/libhardware/include/hardware/hwcomposer2.h. They are used by the
12 // client side which does not have access to hwc2 headers.
13 enum DvrHwcBlendMode {
14   DVR_HWC_BLEND_MODE_INVALID = 0,
15   DVR_HWC_BLEND_MODE_NONE = 1,
16   DVR_HWC_BLEND_MODE_PREMULTIPLIED = 2,
17   DVR_HWC_BLEND_MODE_COVERAGE = 3,
18 };
19 
20 enum DvrHwcComposition {
21   DVR_HWC_COMPOSITION_INVALID = 0,
22   DVR_HWC_COMPOSITION_CLIENT = 1,
23   DVR_HWC_COMPOSITION_DEVICE = 2,
24   DVR_HWC_COMPOSITION_SOLID_COLOR = 3,
25   DVR_HWC_COMPOSITION_CURSOR = 4,
26   DVR_HWC_COMPOSITION_SIDEBAND = 5,
27 };
28 
29 typedef uint64_t DvrHwcDisplay;
30 typedef uint64_t DvrHwcLayer;
31 
32 struct DvrHwcRecti {
33   int32_t left;
34   int32_t top;
35   int32_t right;
36   int32_t bottom;
37 };
38 
39 struct DvrHwcRectf {
40   float left;
41   float top;
42   float right;
43   float bottom;
44 };
45 
46 #ifdef __cplusplus
47 }  // extern "C"
48 #endif
49 
50 #endif  // ANDROID_DVR_HARDWARE_COMPOSER_DEFS_H
51