public class BurstHolder extends Object
Constructor and Description |
---|
BurstHolder(int requestId,
boolean repeating,
CaptureRequest[] requests,
Collection<Long> jpegSurfaceIds)
Immutable container for a burst of capture results.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfRequests()
Return the number of requests in this burst sequence.
|
int |
getRequestId()
Get the id of this request.
|
boolean |
isRepeating()
Return true if this repeating.
|
List<RequestHolder> |
produceRequestHolders(long frameNumber)
Create a list of
RequestHolder objects encapsulating the requests in this burst. |
public BurstHolder(int requestId, boolean repeating, CaptureRequest[] requests, Collection<Long> jpegSurfaceIds)
requestId
- id of the burst request.repeating
- true if this burst is repeating.requests
- the array of CaptureRequest
s for this burst.jpegSurfaceIds
- a Collection
of IDs for the surfaces that have jpeg outputs.public int getRequestId()
public boolean isRepeating()
public int getNumberOfRequests()
public List<RequestHolder> produceRequestHolders(long frameNumber)
RequestHolder
objects encapsulating the requests in this burst.frameNumber
- the starting framenumber for this burst.RequestHolder
objects.