• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // dvr_api_entries.h
2 //
3 // Defines the DVR platform library API entries.
4 //
5 // Do not include this header directly.
6 
7 #ifndef DVR_V1_API_ENTRY
8 #error Do not include this header directly.
9 #endif
10 
11 #ifndef DVR_V1_API_ENTRY_DEPRECATED
12 #error Do not include this header directly.
13 #endif
14 
15 // Do not delete this line: BEGIN CODEGEN OUTPUT
16 // Display manager client
17 DVR_V1_API_ENTRY(DisplayManagerCreate);
18 DVR_V1_API_ENTRY(DisplayManagerDestroy);
19 DVR_V1_API_ENTRY(DisplayManagerGetEventFd);
20 DVR_V1_API_ENTRY(DisplayManagerTranslateEpollEventMask);
21 DVR_V1_API_ENTRY(DisplayManagerGetSurfaceState);
22 DVR_V1_API_ENTRY(DisplayManagerGetReadBufferQueue);
23 DVR_V1_API_ENTRY(ConfigurationDataGet);
24 DVR_V1_API_ENTRY(ConfigurationDataDestroy);
25 DVR_V1_API_ENTRY(SurfaceStateCreate);
26 DVR_V1_API_ENTRY(SurfaceStateDestroy);
27 DVR_V1_API_ENTRY(SurfaceStateGetSurfaceCount);
28 DVR_V1_API_ENTRY(SurfaceStateGetUpdateFlags);
29 DVR_V1_API_ENTRY(SurfaceStateGetSurfaceId);
30 DVR_V1_API_ENTRY(SurfaceStateGetProcessId);
31 DVR_V1_API_ENTRY(SurfaceStateGetQueueCount);
32 DVR_V1_API_ENTRY(SurfaceStateGetQueueIds);
33 DVR_V1_API_ENTRY(SurfaceStateGetZOrder);
34 DVR_V1_API_ENTRY(SurfaceStateGetVisible);
35 DVR_V1_API_ENTRY(SurfaceStateGetAttributeCount);
36 DVR_V1_API_ENTRY(SurfaceStateGetAttributes);
37 
38 // Write buffer
39 DVR_V1_API_ENTRY_DEPRECATED(WriteBufferCreateEmpty);
40 DVR_V1_API_ENTRY(WriteBufferDestroy);
41 DVR_V1_API_ENTRY(WriteBufferIsValid);
42 DVR_V1_API_ENTRY_DEPRECATED(WriteBufferClear);
43 DVR_V1_API_ENTRY(WriteBufferGetId);
44 DVR_V1_API_ENTRY(WriteBufferGetAHardwareBuffer);
45 DVR_V1_API_ENTRY_DEPRECATED(WriteBufferPost);
46 DVR_V1_API_ENTRY_DEPRECATED(WriteBufferGain);
47 DVR_V1_API_ENTRY_DEPRECATED(WriteBufferGainAsync);
48 DVR_V1_API_ENTRY_DEPRECATED(WriteBufferGetNativeHandle);
49 
50 // Read buffer
51 DVR_V1_API_ENTRY_DEPRECATED(ReadBufferCreateEmpty);
52 DVR_V1_API_ENTRY(ReadBufferDestroy);
53 DVR_V1_API_ENTRY(ReadBufferIsValid);
54 DVR_V1_API_ENTRY_DEPRECATED(ReadBufferClear);
55 DVR_V1_API_ENTRY(ReadBufferGetId);
56 DVR_V1_API_ENTRY(ReadBufferGetAHardwareBuffer);
57 DVR_V1_API_ENTRY_DEPRECATED(ReadBufferAcquire);
58 DVR_V1_API_ENTRY_DEPRECATED(ReadBufferRelease);
59 DVR_V1_API_ENTRY_DEPRECATED(ReadBufferReleaseAsync);
60 DVR_V1_API_ENTRY_DEPRECATED(ReadBufferGetNativeHandle);
61 
62 // Buffer
63 DVR_V1_API_ENTRY(BufferDestroy);
64 DVR_V1_API_ENTRY(BufferGetAHardwareBuffer);
65 DVR_V1_API_ENTRY_DEPRECATED(BufferGetNativeHandle);
66 DVR_V1_API_ENTRY(BufferGlobalLayoutVersionGet);
67 
68 // Write buffer queue
69 DVR_V1_API_ENTRY(WriteBufferQueueDestroy);
70 DVR_V1_API_ENTRY(WriteBufferQueueGetCapacity);
71 DVR_V1_API_ENTRY(WriteBufferQueueGetId);
72 DVR_V1_API_ENTRY_DEPRECATED(WriteBufferQueueGetExternalSurface);
73 DVR_V1_API_ENTRY(WriteBufferQueueCreateReadQueue);
74 DVR_V1_API_ENTRY_DEPRECATED(WriteBufferQueueDequeue);
75 DVR_V1_API_ENTRY(WriteBufferQueueResizeBuffer);
76 
77 // Read buffer queue
78 DVR_V1_API_ENTRY(ReadBufferQueueDestroy);
79 DVR_V1_API_ENTRY(ReadBufferQueueGetCapacity);
80 DVR_V1_API_ENTRY(ReadBufferQueueGetId);
81 DVR_V1_API_ENTRY(ReadBufferQueueCreateReadQueue);
82 DVR_V1_API_ENTRY_DEPRECATED(ReadBufferQueueDequeue);
83 DVR_V1_API_ENTRY(ReadBufferQueueSetBufferAvailableCallback);
84 DVR_V1_API_ENTRY(ReadBufferQueueSetBufferRemovedCallback);
85 DVR_V1_API_ENTRY(ReadBufferQueueHandleEvents);
86 
87 // V-Sync client
88 DVR_V1_API_ENTRY_DEPRECATED(VSyncClientCreate);
89 DVR_V1_API_ENTRY_DEPRECATED(VSyncClientDestroy);
90 DVR_V1_API_ENTRY_DEPRECATED(VSyncClientGetSchedInfo);
91 
92 // Display surface
93 DVR_V1_API_ENTRY(SurfaceCreate);
94 DVR_V1_API_ENTRY(SurfaceDestroy);
95 DVR_V1_API_ENTRY(SurfaceGetId);
96 DVR_V1_API_ENTRY(SurfaceSetAttributes);
97 DVR_V1_API_ENTRY(SurfaceCreateWriteBufferQueue);
98 DVR_V1_API_ENTRY(SetupGlobalBuffer);
99 DVR_V1_API_ENTRY(DeleteGlobalBuffer);
100 DVR_V1_API_ENTRY(GetGlobalBuffer);
101 
102 // Pose client
103 DVR_V1_API_ENTRY(PoseClientCreate);
104 DVR_V1_API_ENTRY(PoseClientDestroy);
105 DVR_V1_API_ENTRY(PoseClientGet);
106 DVR_V1_API_ENTRY(PoseClientGetVsyncCount);
107 DVR_V1_API_ENTRY(PoseClientGetController);
108 
109 // Virtual touchpad client
110 DVR_V1_API_ENTRY(VirtualTouchpadCreate);
111 DVR_V1_API_ENTRY(VirtualTouchpadDestroy);
112 DVR_V1_API_ENTRY(VirtualTouchpadAttach);
113 DVR_V1_API_ENTRY(VirtualTouchpadDetach);
114 DVR_V1_API_ENTRY(VirtualTouchpadTouch);
115 DVR_V1_API_ENTRY(VirtualTouchpadButtonState);
116 
117 // VR HWComposer client
118 DVR_V1_API_ENTRY(HwcClientCreate);
119 DVR_V1_API_ENTRY(HwcClientDestroy);
120 DVR_V1_API_ENTRY(HwcFrameDestroy);
121 DVR_V1_API_ENTRY(HwcFrameGetDisplayId);
122 DVR_V1_API_ENTRY(HwcFrameGetDisplayWidth);
123 DVR_V1_API_ENTRY(HwcFrameGetDisplayHeight);
124 DVR_V1_API_ENTRY(HwcFrameGetDisplayRemoved);
125 DVR_V1_API_ENTRY(HwcFrameGetActiveConfig);
126 DVR_V1_API_ENTRY(HwcFrameGetColorMode);
127 DVR_V1_API_ENTRY(HwcFrameGetColorTransform);
128 DVR_V1_API_ENTRY(HwcFrameGetPowerMode);
129 DVR_V1_API_ENTRY(HwcFrameGetVsyncEnabled);
130 DVR_V1_API_ENTRY(HwcFrameGetLayerCount);
131 DVR_V1_API_ENTRY(HwcFrameGetLayerId);
132 DVR_V1_API_ENTRY(HwcFrameGetLayerBuffer);
133 DVR_V1_API_ENTRY(HwcFrameGetLayerFence);
134 DVR_V1_API_ENTRY(HwcFrameGetLayerDisplayFrame);
135 DVR_V1_API_ENTRY(HwcFrameGetLayerCrop);
136 DVR_V1_API_ENTRY(HwcFrameGetLayerBlendMode);
137 DVR_V1_API_ENTRY(HwcFrameGetLayerAlpha);
138 DVR_V1_API_ENTRY(HwcFrameGetLayerType);
139 DVR_V1_API_ENTRY(HwcFrameGetLayerApplicationId);
140 DVR_V1_API_ENTRY(HwcFrameGetLayerZOrder);
141 DVR_V1_API_ENTRY(HwcFrameGetLayerCursor);
142 DVR_V1_API_ENTRY(HwcFrameGetLayerTransform);
143 DVR_V1_API_ENTRY(HwcFrameGetLayerDataspace);
144 DVR_V1_API_ENTRY(HwcFrameGetLayerColor);
145 DVR_V1_API_ENTRY(HwcFrameGetLayerNumVisibleRegions);
146 DVR_V1_API_ENTRY(HwcFrameGetLayerVisibleRegion);
147 DVR_V1_API_ENTRY(HwcFrameGetLayerNumDamagedRegions);
148 DVR_V1_API_ENTRY(HwcFrameGetLayerDamagedRegion);
149 
150 // New entries added at the end to allow the DVR platform library API
151 // to be updated before updating VrCore.
152 
153 // Virtual touchpad client
154 DVR_V1_API_ENTRY(VirtualTouchpadScroll);
155 
156 // Read the native display metrics from the hardware composer
157 DVR_V1_API_ENTRY(GetNativeDisplayMetrics);
158 
159 // Performance
160 DVR_V1_API_ENTRY(PerformanceSetSchedulerPolicy);
161 
162 // Pose client
163 DVR_V1_API_ENTRY(PoseClientSensorsEnable);
164 
165 // Read buffer queue
166 DVR_V1_API_ENTRY(ReadBufferQueueGetEventFd);
167 
168 // Create write buffer queue locally
169 DVR_V1_API_ENTRY(WriteBufferQueueCreate);
170 
171 // Gets an ANativeWindow from DvrWriteBufferQueue.
172 DVR_V1_API_ENTRY(WriteBufferQueueGetANativeWindow);
173 
174 // Dvr{Read,Write}BufferQueue API for asynchronous IPC.
175 DVR_V1_API_ENTRY(WriteBufferQueueGainBuffer);
176 DVR_V1_API_ENTRY(WriteBufferQueuePostBuffer);
177 DVR_V1_API_ENTRY(ReadBufferQueueAcquireBuffer);
178 DVR_V1_API_ENTRY(ReadBufferQueueReleaseBuffer);
179 
180 // Pose client
181 DVR_V1_API_ENTRY(PoseClientGetDataReader);
182 DVR_V1_API_ENTRY(PoseClientDataCapture);
183 DVR_V1_API_ENTRY(PoseClientDataReaderDestroy);
184 
185 // Tracking
186 DVR_V1_API_ENTRY(TrackingCameraCreate);
187 DVR_V1_API_ENTRY(TrackingCameraDestroy);
188 DVR_V1_API_ENTRY(TrackingCameraStart);
189 DVR_V1_API_ENTRY(TrackingCameraStop);
190 
191 DVR_V1_API_ENTRY(TrackingFeatureExtractorCreate);
192 DVR_V1_API_ENTRY(TrackingFeatureExtractorDestroy);
193 DVR_V1_API_ENTRY(TrackingFeatureExtractorStart);
194 DVR_V1_API_ENTRY(TrackingFeatureExtractorStop);
195 DVR_V1_API_ENTRY(TrackingFeatureExtractorProcessBuffer);
196 
197 DVR_V1_API_ENTRY(TrackingSensorsCreate);
198 DVR_V1_API_ENTRY(TrackingSensorsDestroy);
199 DVR_V1_API_ENTRY(TrackingSensorsStart);
200 DVR_V1_API_ENTRY(TrackingSensorsStop);
201