Java Code Examples for android.hardware.camera2.CaptureRequest#getReprocessableSessionId()
The following examples show how to use
android.hardware.camera2.CaptureRequest#getReprocessableSessionId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CameraCaptureSessionImpl.java From android_9.0.0_r45 with Apache License 2.0 | 6 votes |
private void checkCaptureRequests(List<CaptureRequest> requests) { if (requests == null) { throw new IllegalArgumentException("Requests must not be null"); } else if (requests.isEmpty()) { throw new IllegalArgumentException("Requests must have at least one element"); } for (CaptureRequest request : requests) { if (request.isReprocess()) { if (!isReprocessable()) { throw new IllegalArgumentException("This capture session cannot handle " + "reprocess requests"); } else if (request.getReprocessableSessionId() != mId) { throw new IllegalArgumentException("Capture request was created for another " + "session"); } } } }
Example 2
Source File: CameraCaptureSessionImpl.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
private void checkCaptureRequest(CaptureRequest request) { if (request == null) { throw new IllegalArgumentException("request must not be null"); } else if (request.isReprocess() && !isReprocessable()) { throw new IllegalArgumentException("this capture session cannot handle reprocess " + "requests"); } else if (request.isReprocess() && request.getReprocessableSessionId() != mId) { throw new IllegalArgumentException("capture request was created for another session"); } }