public class RequestQueue extends Object
This queue maintains the count of frames that have been produced, and is thread safe.
Constructor and Description |
---|
RequestQueue(List<Long> jpegSurfaceIds) |
Modifier and Type | Method and Description |
---|---|
Pair<BurstHolder,Long> |
getNext()
Return and remove the next burst on the queue.
|
long |
stopRepeating()
Cancel a repeating request.
|
long |
stopRepeating(int requestId)
Cancel a repeating request.
|
SubmitInfo |
submit(CaptureRequest[] requests,
boolean repeating)
Add a the given burst to the queue.
|
public Pair<BurstHolder,Long> getNext()
If a repeating burst is returned, it will not be removed.
public long stopRepeating(int requestId)
requestId
- the id of the repeating request to cancel.INVALID_FRAME
if none exists.public long stopRepeating()
INVALID_FRAME
if none exists.public SubmitInfo submit(CaptureRequest[] requests, boolean repeating)
If the burst is repeating, replace the current repeating burst.
requests
- the burst of requests to add to the queue.repeating
- true if the burst is repeating.