blob: 12b5d1495d4e6ff0596ad361258ddad2f84ca690 [file] [log] [blame]
Pawin Vongmasa120c4da2016-12-19 14:49:56 +07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http: *www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.media.omx@1.0;
18
19import android.hardware.graphics.common@1.0::Dataspace;
20import android.hardware.graphics.common@1.0::PixelFormat;
21
22import android.hardware.media@1.0::types;
23import IOmxProducerListener;
24
25/**
26 * Ref: frameworks/native/include/gui/IGraphicBufferProducer.h:
27 * IGraphicBufferProducer
28 * This is a wrapper/wrapped HAL interface for the actual binder interface.
29 */
30interface IOmxBufferProducer {
31
32 /**
33 * Ref: frameworks/native/include/ui/FenceTime.h: FenceTime::Snapshot
34 *
35 * An atomic snapshot of the FenceTime that is flattenable.
36 */
37 struct FenceTimeSnapshot {
38 enum State : int32_t {
39 EMPTY,
40 FENCE,
41 SIGNAL_TIME,
42 };
43 State state;
44 Fence fence;
45 int64_t signalTimeNs;
46 };
47
48 /**
49 * Ref: frameworks/native/include/gui/FrameTimestamp.h: FrameEventsDelta
50 *
51 * A single frame update from the consumer to producer that can be sent
52 * through a HIDL interface. Although this may be sent multiple times for
53 * the same frame as new timestamps are set, Fences only need to be sent
54 * once.
55 */
56 struct FrameEventsDelta {
57 uint32_t index;
58 uint64_t frameNumber;
59 bool addPostCompositeCalled;
60 bool addRetireCalled;
61 bool addReleaseCalled;
62 int64_t postedTimeNs;
63 int64_t requestedPresentTimeNs;
64 int64_t latchTimeNs;
65 int64_t firstRefreshStartTimeNs;
66 int64_t lastRefreshStartTimeNs;
67 int64_t dequeueReadyTime;
68 FenceTimeSnapshot gpuCompositionDoneFence;
69 FenceTimeSnapshot displayPresentFence;
70 FenceTimeSnapshot displayRetireFence;
71 FenceTimeSnapshot releaseFence;
72 };
73
74 /**
75 * Ref: frameworks/native/include/gui/FrameTimestamp.h: FrameEventHistoryDelta
76 *
77 * A collection of updates from consumer to producer that can be sent
78 * through a HIDL interface.
79 */
80 typedef vec<FrameEventsDelta> FrameEventHistoryDelta;
81
82 /**
83 * Modes for disconnection.
84 */
85 enum DisconnectMode : int32_t {
86 /** Disconnect only the specified API. */
87 API,
88 /** Disconnect any API originally connected from the process calling
89 * disconnect. */
90 ALL_LOCAL
91 };
92
93 struct QueueBufferInput {
94 /** A monotonically increasing value in nanoseconds. */
95 int64_t timestamp;
96 /** Whether the timestamp was synthesized at queue time. */
97 int32_t isAutoTimestamp;
98 /** Description of the contents, interpretation depends on format. */
99 Dataspace dataSpace;
100 /** A crop rectangle that's used as a hint to the consumer. */
101 Rect crop;
102 /** A set of flags from NATIVE_WINDOW_SCALING_* in <window.h>. */
103 int32_t scalingMode;
104 /** A set of flags from NATIVE_WINDOW_TRANSFORM_* in <window.h>. */
105 uint32_t transform;
106 /** The sticky transform set in Surface (only used by the LEGACY camera
107 * mode). */
108 uint32_t stickyTransform;
109 /** A fence that the consumer must wait on before reading the buffer;
110 * set this to Fence::NO_FENCE if the buffer is ready immediately. */
111 Fence fence;
112 Region surfaceDamage;
113 /** Whether or not the latest frame timestamps should be retrieved from
114 * the consumer. */
115 bool getFrameTimestamps;
116 };
117
118 struct QueueBufferOutput {
119 uint32_t width;
120 uint32_t height;
121 uint32_t transformHint;
122 uint32_t numPendingBuffers;
123 uint64_t nextFrameNumber;
124 FrameEventHistoryDelta frameTimestamps;
125 };
126
127 /**
128 * requestBuffer requests a new buffer for the given index. The server (i.e.
129 * the IOmxBufferProducer implementation) assigns the newly created
130 * buffer to the given slot index, and the client is expected to mirror the
131 * slot->buffer mapping so that it's not necessary to transfer an
132 * AnwBuffer for every dequeue operation.
133 *
134 * The slot must be in the range of [0, NUM_BUFFER_SLOTS).
135 *
136 * Return of a value other than NO_ERROR means an error has occurred:
137 * * NO_INIT - the buffer queue has been abandoned or the producer is not
138 * connected.
139 * * BAD_VALUE - one of the two conditions occurred:
140 * * slot was out of range (see above)
141 * * buffer specified by the slot is not dequeued
142 */
143 requestBuffer(
144 int32_t slot
145 ) generates (
146 Status status,
147 AnwBuffer buffer
148 );
149
150 /**
151 * setMaxDequeuedBufferCount sets the maximum number of buffers that can be
152 * dequeued by the producer at one time. If this method succeeds, any new
153 * buffer slots will be both unallocated and owned by the BufferQueue object
154 * (i.e. they are not owned by the producer or consumer). Calling this may
155 * also cause some buffer slots to be emptied. If the caller is caching the
156 * contents of the buffer slots, it should empty that cache after calling
157 * this method.
158 *
159 * This function should not be called with a value of maxDequeuedBuffers
160 * that is less than the number of currently dequeued buffer slots. Doing so
161 * will result in a BAD_VALUE error.
162 *
163 * The buffer count should be at least 1 (inclusive), but at most
164 * (NUM_BUFFER_SLOTS - the minimum undequeued buffer count) (exclusive). The
165 * minimum undequeued buffer count can be obtained by calling
166 * query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS).
167 *
168 * Return of a value other than NO_ERROR means an error has occurred:
169 * * NO_INIT - the buffer queue has been abandoned.
170 * * BAD_VALUE - one of the below conditions occurred:
171 * * bufferCount was out of range (see above).
172 * * client would have more than the requested number of dequeued
173 * buffers after this call.
174 * * this call would cause the maxBufferCount value to be exceeded.
175 * * failure to adjust the number of available slots.
176 */
177 setMaxDequeuedBufferCount(
178 int32_t maxDequeuedBuffers
179 ) generates (
180 Status status
181 );
182
183 /**
184 * Set the async flag if the producer intends to asynchronously queue
185 * buffers without blocking. Typically this is used for triple-buffering
186 * and/or when the swap interval is set to zero.
187 *
188 * Enabling async mode will internally allocate an additional buffer to
189 * allow for the asynchronous behavior. If it is not enabled queue/dequeue
190 * calls may block.
191 *
192 * Return of a value other than NO_ERROR means an error has occurred:
193 * * NO_INIT - the buffer queue has been abandoned.
194 * * BAD_VALUE - one of the following has occurred:
195 * * this call would cause the maxBufferCount value to be
196 * exceeded
197 * * failure to adjust the number of available slots.
198 */
199 setAsyncMode(
200 bool async
201 ) generates (
202 Status status
203 );
204
205 /**
206 * dequeueBuffer requests a new buffer slot for the client to use. Ownership
207 * of the slot is transfered to the client, meaning that the server will not
208 * use the contents of the buffer associated with that slot.
209 *
210 * The slot index returned may or may not contain a buffer (client-side).
211 * If the slot is empty the client should call requestBuffer to assign a new
212 * buffer to that slot.
213 *
214 * Once the client is done filling this buffer, it is expected to transfer
215 * buffer ownership back to the server with either cancelBuffer on
216 * the dequeued slot or to fill in the contents of its associated buffer
217 * contents and call queueBuffer.
218 *
219 * If dequeueBuffer returns the BUFFER_NEEDS_REALLOCATION flag, the client is
220 * expected to call requestBuffer immediately.
221 *
222 * If dequeueBuffer returns the RELEASE_ALL_BUFFERS flag, the client is
223 * expected to release all of the mirrored slot->buffer mappings.
224 *
225 * The fence parameter will be updated to hold the fence associated with
226 * the buffer. The contents of the buffer must not be overwritten until the
227 * fence signals. If the fence is Fence::NO_FENCE, the buffer may be written
228 * immediately.
229 *
230 * The width and height parameters must be no greater than the minimum of
231 * GL_MAX_VIEWPORT_DIMS and GL_MAX_TEXTURE_SIZE (see: glGetIntegerv).
232 * An error due to invalid dimensions might not be reported until
233 * updateTexImage() is called. If width and height are both zero, the
234 * default values specified by setDefaultBufferSize() are used instead.
235 *
236 * If the format is 0, the default format will be used.
237 *
238 * The usage argument specifies gralloc buffer usage flags. The values
239 * are enumerated in <gralloc.h>, e.g. GRALLOC_USAGE_HW_RENDER. These
240 * will be merged with the usage flags specified by
241 * IGraphicBufferConsumer::setConsumerUsageBits.
242 *
243 * This call will block until a buffer is available to be dequeued. If
244 * both the producer and consumer are controlled by the app, then this call
245 * can never block and will return WOULD_BLOCK if no buffer is available.
246 *
247 * A non-negative value with flags set (see above) will be returned upon
248 * success as status.
249 *
250 * Return of a negative means an error has occurred:
251 * * NO_INIT - the buffer queue has been abandoned or the producer is not
252 * connected.
253 * * BAD_VALUE - both in async mode and buffer count was less than the
254 * max numbers of buffers that can be allocated at once.
255 * * INVALID_OPERATION - cannot attach the buffer because it would cause
256 * too many buffers to be dequeued, either because
257 * the producer already has a single buffer dequeued
258 * and did not set a buffer count, or because a
259 * buffer count was set and this call would cause
260 * it to be exceeded.
261 * * WOULD_BLOCK - no buffer is currently available, and blocking is disabled
262 * since both the producer/consumer are controlled by app
263 * * NO_MEMORY - out of memory, cannot allocate the graphics buffer.
264 * * TIMED_OUT - the timeout set by setDequeueTimeout was exceeded while
265 * waiting for a buffer to become available.
266 *
267 * All other negative values are an unknown error returned downstream
268 * from the graphics allocator (typically errno).
269 */
270 dequeueBuffer(
271 uint32_t width,
272 uint32_t height,
273 PixelFormat format,
274 uint32_t usage,
275 bool getFrameTimestamps
276 ) generates (
277 Status status,
278 int32_t slot,
279 Fence fence,
280 FrameEventHistoryDelta outTimestamps
281 );
282
283 /**
284 * detachBuffer attempts to remove all ownership of the buffer in the given
285 * slot from the buffer queue. If this call succeeds, the slot will be
286 * freed, and there will be no way to obtain the buffer from this interface.
287 * The freed slot will remain unallocated until either it is selected to
288 * hold a freshly allocated buffer in dequeueBuffer or a buffer is attached
289 * to the slot. The buffer must have already been dequeued, and the caller
290 * must already possesses the sp<AnwBuffer> (i.e., must have called
291 * requestBuffer).
292 *
293 * Return of a value other than NO_ERROR means an error has occurred:
294 * * NO_INIT - the buffer queue has been abandoned or the producer is not
295 * connected.
296 * * BAD_VALUE - the given slot number is invalid, either because it is
297 * out of the range [0, NUM_BUFFER_SLOTS), or because the slot
298 * it refers to is not currently dequeued and requested.
299 */
300 detachBuffer(
301 int32_t slot
302 ) generates (
303 Status status
304 );
305
306 /**
307 * detachNextBuffer is equivalent to calling dequeueBuffer, requestBuffer,
308 * and detachBuffer in sequence, except for two things:
309 *
310 * 1) It is unnecessary to know the dimensions, format, or usage of the
311 * next buffer.
312 * 2) It will not block, since if it cannot find an appropriate buffer to
313 * return, it will return an error instead.
314 *
315 * Only slots that are free but still contain an AnwBuffer will be
316 * considered, and the oldest of those will be returned. buffer is
317 * equivalent to buffer from the requestBuffer call, and fence is
318 * equivalent to fence from the dequeueBuffer call.
319 *
320 * Return of a value other than NO_ERROR means an error has occurred:
321 * * NO_INIT - the buffer queue has been abandoned or the producer is not
322 * connected.
323 * * BAD_VALUE - either outBuffer or outFence were NULL.
324 * * NO_MEMORY - no slots were found that were both free and contained a
325 * AnwBuffer.
326 */
327 detachNextBuffer(
328 ) generates (
329 Status status,
330 AnwBuffer buffer,
331 Fence fence
332 );
333
334 /**
335 * attachBuffer attempts to transfer ownership of a buffer to the buffer
336 * queue. If this call succeeds, it will be as if this buffer was dequeued
337 * from the returned slot number. As such, this call will fail if attaching
338 * this buffer would cause too many buffers to be simultaneously dequeued.
339 *
340 * If attachBuffer returns the RELEASE_ALL_BUFFERS flag, the caller is
341 * expected to release all of the mirrored slot->buffer mappings.
342 *
343 * A non-negative value with flags set (see above) will be returned upon
344 * success.
345 *
346 * Return of a negative value means an error has occurred:
347 * * NO_INIT - the buffer queue has been abandoned or the producer is not
348 * connected.
349 * * BAD_VALUE - outSlot or buffer were NULL, invalid combination of
350 * async mode and buffer count override, or the generation
351 * number of the buffer did not match the buffer queue.
352 * * INVALID_OPERATION - cannot attach the buffer because it would cause
353 * too many buffers to be dequeued, either because
354 * the producer already has a single buffer dequeued
355 * and did not set a buffer count, or because a
356 * buffer count was set and this call would cause
357 * it to be exceeded.
358 * * WOULD_BLOCK - no buffer slot is currently available, and blocking is
359 * disabled since both the producer/consumer are
360 * controlled by the app.
361 * * TIMED_OUT - the timeout set by setDequeueTimeout was exceeded while
362 * waiting for a slot to become available.
363 */
364 attachBuffer(
365 AnwBuffer buffer
366 ) generates (
367 Status status,
368 int32_t slot
369 );
370
371 /**
372 * queueBuffer indicates that the client has finished filling in the
373 * contents of the buffer associated with slot and transfers ownership of
374 * that slot back to the server.
375 *
376 * It is not valid to call queueBuffer on a slot that is not owned
377 * by the client or one for which a buffer associated via requestBuffer
378 * (an attempt to do so will fail with a return value of BAD_VALUE).
379 *
380 * In addition, the input must be described by the client (as documented
381 * below). Any other properties (zero point, etc)
382 * are client-dependent, and should be documented by the client.
383 *
384 * The slot must be in the range of [0, NUM_BUFFER_SLOTS).
385 *
386 * Upon success, the output will be filled with meaningful values
387 * (refer to the documentation below).
388 *
389 * Return of a value other than NO_ERROR means an error has occurred:
390 * * NO_INIT - the buffer queue has been abandoned or the producer is not
391 * connected.
392 * * BAD_VALUE - one of the below conditions occurred:
393 * * fence was NULL
394 * * scaling mode was unknown
395 * * both in async mode and buffer count was less than the
396 * max numbers of buffers that can be allocated at once
397 * * slot index was out of range (see above).
398 * * the slot was not in the dequeued state
399 * * the slot was enqueued without requesting a buffer
400 * * crop rect is out of bounds of the buffer dimensions
401 */
402 queueBuffer(
403 int32_t slot,
404 QueueBufferInput input
405 ) generates (
406 Status status,
407 QueueBufferOutput output
408 );
409
410 /**
411 * cancelBuffer indicates that the client does not wish to fill in the
412 * buffer associated with slot and transfers ownership of the slot back to
413 * the server.
414 *
415 * The buffer is not queued for use by the consumer.
416 *
417 * The slot must be in the range of [0, NUM_BUFFER_SLOTS).
418 *
419 * The buffer will not be overwritten until the fence signals. The fence
420 * will usually be the one obtained from dequeueBuffer.
421 *
422 * Return of a value other than NO_ERROR means an error has occurred:
423 * * NO_INIT - the buffer queue has been abandoned or the producer is not
424 * connected.
425 * * BAD_VALUE - one of the below conditions occurred:
426 * * fence was NULL
427 * * slot index was out of range (see above).
428 * * the slot was not in the dequeued state
429 */
430 cancelBuffer(
431 int32_t slot,
432 Fence fence
433 ) generates (
434 Status status
435 );
436
437 /**
438 * query retrieves some information for this surface
439 * 'what' tokens allowed are that of NATIVE_WINDOW_* in <window.h>
440 *
441 * Return of a value other than NO_ERROR means an error has occurred:
442 * * NO_INIT - the buffer queue has been abandoned.
443 * * BAD_VALUE - what was out of range
444 */
445 query(
446 int32_t what
447 ) generates (
448 int32_t result,
449 int32_t value
450 );
451
452 /**
453 * connect attempts to connect a client API to the IOmxBufferProducer.
454 * This must be called before any other IOmxBufferProducer methods are
455 * called except for getAllocator. A consumer must be already connected.
456 *
457 * This method will fail if the connect was previously called on the
458 * IOmxBufferProducer and no corresponding disconnect call was made.
459 *
460 * The listener is an optional binder callback object that can be used if
461 * the producer wants to be notified when the consumer releases a buffer
462 * back to the BufferQueue. It is also used to detect the death of the
463 * producer. If only the latter functionality is desired, there is a
464 * DummyProducerListener class in IProducerListener.h that can be used.
465 *
466 * The api should be one of the NATIVE_WINDOW_API_* values in <window.h>
467 *
468 * The producerControlledByApp should be set to true if the producer is hosted
469 * by an untrusted process (typically app_process-forked processes). If both
470 * the producer and the consumer are app-controlled then all buffer queues
471 * will operate in async mode regardless of the async flag.
472 *
473 * Upon success, the output will be filled with meaningful data
474 * (refer to QueueBufferOutput documentation above).
475 *
476 * Return of a value other than NO_ERROR means an error has occurred:
477 * * NO_INIT - one of the following occurred:
478 * * the buffer queue was abandoned
479 * * no consumer has yet connected
480 * * BAD_VALUE - one of the following has occurred:
481 * * the producer is already connected
482 * * api was out of range (see above).
483 * * output was NULL.
484 * * Failure to adjust the number of available slots. This can
485 * happen because of trying to allocate/deallocate the async
486 * buffer in response to the value of producerControlledByApp.
487 * * DEAD_OBJECT - the token is hosted by an already-dead process
488 *
489 * Additional negative errors may be returned by the internals, they
490 * should be treated as opaque fatal unrecoverable errors.
491 */
492 connect(
493 IOmxProducerListener listener,
494 int32_t api,
495 bool producerControlledByApp
496 ) generates (
497 Status status,
498 QueueBufferOutput output
499 );
500
501 /**
502 * disconnect attempts to disconnect a client API from the
503 * IOmxBufferProducer. Calling this method will cause any subsequent
504 * calls to other IOmxBufferProducer methods to fail except for
505 * getAllocator and connect. Successfully calling connect after this will
506 * allow the other methods to succeed again.
507 *
508 * The api should be one of the NATIVE_WINDOW_API_* values in <window.h>
509 *
510 * Alternatively if mode is AllLocal, then the API value is ignored, and any API
511 * connected from the same PID calling disconnect will be disconnected.
512 *
513 * Disconnecting from an abandoned IOmxBufferProducer is legal and
514 * is considered a no-op.
515 *
516 * Return of a value other than NO_ERROR means an error has occurred:
517 * * BAD_VALUE - one of the following has occurred:
518 * * the api specified does not match the one that was connected
519 * * api was out of range (see above).
520 * * DEAD_OBJECT - the token is hosted by an already-dead process
521 */
522 disconnect(
523 int32_t api,
524 DisconnectMode mode /* = DisconnectMode::API */
525 ) generates (
526 Status status
527 );
528
529 /**
530 * Attaches a sideband buffer stream to the IOmxBufferProducer.
531 *
532 * A sideband stream is a device-specific mechanism for passing buffers
533 * from the producer to the consumer without using dequeueBuffer/
534 * queueBuffer. If a sideband stream is present, the consumer can choose
535 * whether to acquire buffers from the sideband stream or from the queued
536 * buffers.
537 *
538 * Passing NULL or a different stream handle will detach the previous
539 * handle if any.
540 */
541 setSidebandStream(
542 handle stream
543 ) generates (
544 Status status
545 );
546
547 /**
548 * Allocates buffers based on the given dimensions/format.
549 *
550 * This function will allocate up to the maximum number of buffers
551 * permitted by the current BufferQueue configuration. It will use the
552 * given format, dimensions, and usage bits, which are interpreted in the
553 * same way as for dequeueBuffer, and the async flag must be set the same
554 * way as for dequeueBuffer to ensure that the correct number of buffers are
555 * allocated. This is most useful to avoid an allocation delay during
556 * dequeueBuffer. If there are already the maximum number of buffers
557 * allocated, this function has no effect.
558 */
559 allocateBuffers(
560 uint32_t width,
561 uint32_t height,
562 PixelFormat format,
563 uint32_t usage
564 );
565
566 /**
567 * Sets whether dequeueBuffer is allowed to allocate new buffers.
568 *
569 * Normally dequeueBuffer does not discriminate between free slots which
570 * already have an allocated buffer and those which do not, and will
571 * allocate a new buffer if the slot doesn't have a buffer or if the slot's
572 * buffer doesn't match the requested size, format, or usage. This method
573 * allows the producer to restrict the eligible slots to those which already
574 * have an allocated buffer of the correct size, format, and usage. If no
575 * eligible slot is available, dequeueBuffer will block or return an error
576 * as usual.
577 */
578 allowAllocation(
579 bool allow
580 ) generates (
581 Status status
582 );
583
584 /**
585 * Sets the current generation number of the BufferQueue.
586 *
587 * This generation number will be inserted into any buffers allocated by the
588 * BufferQueue, and any attempts to attach a buffer with a different
589 * generation number will fail. Buffers already in the queue are not
590 * affected and will retain their current generation number. The generation
591 * number defaults to 0.
592 */
593 setGenerationNumber(
594 uint32_t generationNumber
595 ) generates (
596 Status status
597 );
598
599 /**
600 * Returns the name of the connected consumer.
601 */
602 getConsumerName(
603 ) generates (
604 string name
605 );
606
607 /**
608 * Used to enable/disable shared buffer mode.
609 *
610 * When shared buffer mode is enabled the first buffer that is queued or
611 * dequeued will be cached and returned to all subsequent calls to
612 * dequeueBuffer and acquireBuffer. This allows the producer and consumer to
613 * simultaneously access the same buffer.
614 */
615 setSharedBufferMode(
616 bool sharedBufferMode
617 ) generates (
618 Status status
619 );
620
621 /**
622 * Used to enable/disable auto-refresh.
623 *
624 * Auto refresh has no effect outside of shared buffer mode. In shared
625 * buffer mode, when enabled, it indicates to the consumer that it should
626 * attempt to acquire buffers even if it is not aware of any being
627 * available.
628 */
629 setAutoRefresh(
630 bool autoRefresh
631 ) generates (
632 Status status
633 );
634
635 /**
636 * Sets how long dequeueBuffer will wait for a buffer to become available
637 * before returning an error (TIMED_OUT).
638 *
639 * This timeout also affects the attachBuffer call, which will block if
640 * there is not a free slot available into which the attached buffer can be
641 * placed.
642 *
643 * By default, the BufferQueue will wait forever, which is indicated by a
644 * timeout of -1. If set (to a value other than -1), this will disable
645 * non-blocking mode and its corresponding spare buffer (which is used to
646 * ensure a buffer is always available).
647 *
648 * Return of a value other than NO_ERROR means an error has occurred:
649 * * BAD_VALUE - Failure to adjust the number of available slots. This can
650 * happen because of trying to allocate/deallocate the async
651 * buffer.
652 */
653 setDequeueTimeout(
654 int64_t timeoutNs
655 ) generates (
656 Status status
657 );
658
659 /**
660 * Returns the last queued buffer along with a fence which must signal
661 * before the contents of the buffer are read. If there are no buffers in
662 * the queue, buffer.nativeHandle and fence will be null handles.
663 *
664 * transformMatrix is meaningless if buffer.nativeHandle is null.
665 */
666 getLastQueuedBuffer(
667 ) generates (
668 Status status,
669 AnwBuffer buffer,
670 Fence fence,
671 float[16] transformMatrix
672 );
673
674 /**
675 * Gets the frame events that haven't already been retrieved.
676 */
677 getFrameTimestamps(
678 ) generates (
679 FrameEventHistoryDelta timeStamps
680 );
681
682 /**
683 * Returns a unique id for this BufferQueue.
684 */
685 getUniqueId(
686 ) generates (
687 Status status,
688 uint64_t outId
689 );
690
691};
692
693