LegacyRequestpublic class LegacyRequest extends Object Hold important data necessary to build the camera1 parameters up from a capture request. |
Fields Summary |
---|
public final android.hardware.camera2.CameraCharacteristics | characteristicsImmutable characteristics for the camera corresponding to this request | public final android.hardware.camera2.CaptureRequest | captureRequestImmutable capture request, as requested by the user | public final android.util.Size | previewSizeImmutable api1 preview buffer size at the time of the request | public final Camera.Parameters | parametersMutable camera parameters |
Constructors Summary |
---|
public LegacyRequest(android.hardware.camera2.CameraCharacteristics characteristics, android.hardware.camera2.CaptureRequest captureRequest, android.util.Size previewSize, Camera.Parameters parameters)Create a new legacy request; the parameters are copied.
this.characteristics = checkNotNull(characteristics, "characteristics must not be null");
this.captureRequest = checkNotNull(captureRequest, "captureRequest must not be null");
this.previewSize = checkNotNull(previewSize, "previewSize must not be null");
checkNotNull(parameters, "parameters must not be null");
this.parameters = Camera.getParametersCopy(parameters);
|
Methods Summary |
---|
public void | setParameters(Camera.Parameters parameters)Update the current parameters in-place to be a copy of the new parameters.
checkNotNull(parameters, "parameters must not be null");
this.parameters.copyFrom(parameters);
|
|