public class RequestHolder extends Object
#failRequest
.Modifier and Type | Class and Description |
---|---|
static class |
RequestHolder.Builder
A builder class for
RequestHolder objects. |
Modifier and Type | Method and Description |
---|---|
void |
failRequest()
Mark this request as failed.
|
long |
getFrameNumber()
Returns the frame number for this request.
|
Collection<Surface> |
getHolderTargets()
Returns a read-only collection of the surfaces targeted by the contained request.
|
CaptureRequest |
getRequest()
Returns the contained request.
|
int |
getRequestId()
Return the request id for the contained
CaptureRequest . |
int |
getSubsequeceId()
Return the subsequence id for this request.
|
boolean |
hasJpegTargets()
Returns true if any of the surfaces targeted by the contained request require jpeg buffers.
|
boolean |
hasPreviewTargets()
Returns true if any of the surfaces targeted by the contained request require a
non-jpeg buffer type.
|
boolean |
isOutputAbandoned()
Return if any of this request's output surface is abandoned.
|
boolean |
isRepeating()
Returns true if the contained request is repeating.
|
boolean |
jpegType(Surface s)
Returns true if the given surface requires jpeg buffers.
|
int |
numJpegTargets()
Return the number of jpeg-type surfaces targeted by this request.
|
int |
numPreviewTargets()
Return the number of non-jpeg-type surfaces targeted by this request.
|
boolean |
requestFailed()
Return
true if this request failed. |
void |
setOutputAbandoned()
Mark at least one of this request's output surfaces is abandoned.
|
public int getRequestId()
CaptureRequest
.public boolean isRepeating()
public int getSubsequeceId()
public long getFrameNumber()
public CaptureRequest getRequest()
public Collection<Surface> getHolderTargets()
public boolean hasJpegTargets()
public boolean hasPreviewTargets()
public int numJpegTargets()
public int numPreviewTargets()
public boolean jpegType(Surface s) throws LegacyExceptionUtils.BufferQueueAbandonedException
s
- a Surface
to check.LegacyExceptionUtils.BufferQueueAbandonedException
public void failRequest()
public boolean requestFailed()
true
if this request failed.public void setOutputAbandoned()
public boolean isOutputAbandoned()