Home
last modified time | relevance | path

Searched refs:CaptureRequest (Results 1 – 25 of 217) sorted by relevance

123456789

/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/
DCamera2UtilsTest.java29 import android.hardware.camera2.CaptureRequest;
30 import android.hardware.camera2.CaptureRequest.Key;
107 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_LOCK, false); in requestSettingsSet()
108 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_LOCK, true); in requestSettingsSet()
110 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_MODE, 1); in requestSettingsSet()
111 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_MODE, -1); in requestSettingsSet()
112 requestSettingsSetAndForget(setUp, CaptureRequest.CONTROL_AE_MODE, 0); in requestSettingsSet()
114 requestSettingsSetAndForget(setUp, CaptureRequest.SENSOR_TEST_PATTERN_DATA, new int[] {1}); in requestSettingsSet()
115 requestSettingsSetAndForget(setUp, CaptureRequest.SENSOR_TEST_PATTERN_DATA, in requestSettingsSet()
122 requestSettingsSetAndForget(setUp, CaptureRequest.SENSOR_TEST_PATTERN_DATA, new int[] {1}); in requestSettingsSetNullValue()
[all …]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/pos/
DAutoFocusStateMachine.java20 import android.hardware.camera2.CaptureRequest;
217 public synchronized void lockAutoFocus(CaptureRequest.Builder repeatingBuilder, in lockAutoFocus()
218 CaptureRequest.Builder requestBuilder) { in lockAutoFocus()
228 mCurrentAfTrigger = CaptureRequest.CONTROL_AF_TRIGGER_START; in lockAutoFocus()
230 repeatingBuilder.set(CaptureRequest.CONTROL_AF_MODE, mCurrentAfMode); in lockAutoFocus()
231 requestBuilder.set(CaptureRequest.CONTROL_AF_MODE, mCurrentAfMode); in lockAutoFocus()
233 repeatingBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, in lockAutoFocus()
234 CaptureRequest.CONTROL_AF_TRIGGER_IDLE); in lockAutoFocus()
235 requestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER, in lockAutoFocus()
236 CaptureRequest.CONTROL_AF_TRIGGER_START); in lockAutoFocus()
[all …]
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/serviceforward/
DPlatformApi.java20 import android.hardware.camera2.CaptureRequest;
26 public static CaptureRequest createCaptureRequest( in createCaptureRequest()
27 Map<CaptureRequest.Key<?>, Object> parameters) { in createCaptureRequest()
29 CaptureRequest.Builder builder = in createCaptureRequest()
30 new CaptureRequest.Builder(metadataNative, false, -1, "0", null); in createCaptureRequest()
32 for (CaptureRequest.Key<?> key : parameters.keySet()) { in createCaptureRequest()
33 CaptureRequest.Key<Object> objKey = (CaptureRequest.Key<Object>) key; in createCaptureRequest()
39 public static CaptureRequest createCaptureRequest(CameraMetadataNative cameraMetadataNative) { in createCaptureRequest()
40 CaptureRequest.Builder builder = in createCaptureRequest()
41 new CaptureRequest.Builder(cameraMetadataNative, false, -1, "0", null); in createCaptureRequest()
[all …]
DCaptureStageImplAdapter.java19 import android.hardware.camera2.CaptureRequest;
40 public List<Pair<CaptureRequest.Key, Object>> getParameters() { in getParameters()
41 CaptureRequest request = mCaptureStageImplWrapper.parameters.toCaptureRequest(); in getParameters()
42 List<Pair<CaptureRequest.Key, Object>> result = new ArrayList<>(); in getParameters()
43 for (CaptureRequest.Key<?> key : request.getKeys()) { in getParameters()
/frameworks/av/camera/include/camera/camera2/
DCaptureRequest.h32 struct CaptureRequest : public Parcelable { struct
38 CaptureRequest();
39 CaptureRequest(const CaptureRequest& rhs);
40 CaptureRequest(CaptureRequest&& rhs) noexcept;
41 virtual ~CaptureRequest();
80 struct CaptureRequest : struct
81 public RefBase, public hardware::camera2::CaptureRequest {
/frameworks/base/core/java/android/hardware/camera2/
DExtensionCaptureRequest.java21 import android.hardware.camera2.CaptureRequest;
22 import android.hardware.camera2.CaptureRequest.Key;
80 public static final Key<Float> EFV_PADDING_ZOOM_FACTOR = CaptureRequest.EFV_PADDING_ZOOM_FACTOR;
105 public static final Key<Boolean> EFV_AUTO_ZOOM = CaptureRequest.EFV_AUTO_ZOOM;
131 …public static final Key<Float> EFV_MAX_PADDING_ZOOM_FACTOR = CaptureRequest.EFV_MAX_PADDING_ZOOM_F…
158 public static final Key<Integer> EFV_STABILIZATION_MODE = CaptureRequest.EFV_STABILIZATION_MODE;
182 …nal Key<android.util.Pair<Integer,Integer>> EFV_TRANSLATE_VIEWPORT = CaptureRequest.EFV_TRANSLATE_…
199 public static final Key<Float> EFV_ROTATE_VIEWPORT = CaptureRequest.EFV_ROTATE_VIEWPORT;
211 public static final int EFV_STABILIZATION_MODE_OFF = CaptureRequest.EFV_STABILIZATION_MODE_OFF;
218 …public static final int EFV_STABILIZATION_MODE_GIMBAL = CaptureRequest.EFV_STABILIZATION_MODE_GIMB…
[all …]
DCameraCaptureSession.java363 public abstract int capture(@NonNull CaptureRequest request, in capture()
408 public int captureSingleRequest(@NonNull CaptureRequest request, in captureSingleRequest()
478 public abstract int captureBurst(@NonNull List<CaptureRequest> requests, in captureBurst()
526 public int captureBurstRequests(@NonNull List<CaptureRequest> requests, in captureBurstRequests()
601 public abstract int setRepeatingRequest(@NonNull CaptureRequest request, in setRepeatingRequest()
641 public int setSingleRepeatingRequest(@NonNull CaptureRequest request, in setSingleRepeatingRequest()
721 public abstract int setRepeatingBurst(@NonNull List<CaptureRequest> requests, in setRepeatingBurst()
763 public int setRepeatingBurstRequests(@NonNull List<CaptureRequest> requests, in setRepeatingBurstRequests()
1232 @NonNull CaptureRequest request, long timestamp, long frameNumber) { in onCaptureStarted()
1284 @NonNull CaptureRequest request, long timestamp, long frameNumber) { in onReadoutStarted()
[all …]
DCameraExtensionSession.java86 @NonNull CaptureRequest request, long timestamp) { in onCaptureStarted()
108 @NonNull CaptureRequest request) { in onCaptureProcessStarted()
133 @NonNull CaptureRequest request) { in onCaptureFailed()
161 @NonNull CaptureRequest request, @CaptureFailure.FailureReason int failure) { in onCaptureFailed()
232 @NonNull CaptureRequest request, @NonNull TotalCaptureResult result) { in onCaptureResultAvailable()
267 @NonNull CaptureRequest request, @IntRange(from = 0, to = 100) int progress) { in onCaptureProcessProgressed()
386 public int capture(@NonNull CaptureRequest request, in capture()
440 public int setRepeatingRequest(@NonNull CaptureRequest request, in setRepeatingRequest()
/frameworks/ex/camera2/extensions/advancedSample/src/java/androidx/camera/extensions/impl/advanced/
DBokehAdvancedExtenderImpl.java26 import android.hardware.camera2.CaptureRequest;
47 protected static final int AWB_MODE_SHADE = CaptureRequest.CONTROL_AWB_MODE_SHADE;
79 builder.addSessionParameter(CaptureRequest.CONTROL_AWB_MODE, AWB_MODE_SHADE); in addSessionParameter()
86 build.setParameters(CaptureRequest.CONTROL_AWB_MODE, AWB_MODE_SHADE); in addCaptureRequestParameters()
99 public List<CaptureRequest.Key> getAvailableCaptureRequestKeys() { in getAvailableCaptureRequestKeys()
100 final CaptureRequest.Key [] CAPTURE_REQUEST_SET = {CaptureRequest.CONTROL_AE_MODE, in getAvailableCaptureRequestKeys()
101 CaptureRequest.CONTROL_AE_PRECAPTURE_TRIGGER, CaptureRequest.CONTROL_AE_LOCK, in getAvailableCaptureRequestKeys()
102 CaptureRequest.FLASH_MODE, CaptureRequest.JPEG_QUALITY, in getAvailableCaptureRequestKeys()
103 CaptureRequest.JPEG_ORIENTATION}; in getAvailableCaptureRequestKeys()
DHdrAdvancedExtenderImpl.java31 import android.hardware.camera2.CaptureRequest;
104 builderUnder.setParameters(CaptureRequest.CONTROL_AE_MODE, in addCaptureRequestParameters()
105 CaptureRequest.CONTROL_AE_MODE_OFF); in addCaptureRequestParameters()
106 builderUnder.setParameters(CaptureRequest.SENSOR_EXPOSURE_TIME, in addCaptureRequestParameters()
113 builderNormal.setParameters(CaptureRequest.SENSOR_EXPOSURE_TIME, in addCaptureRequestParameters()
120 builderOver.setParameters(CaptureRequest.SENSOR_EXPOSURE_TIME, in addCaptureRequestParameters()
261 if (mParameters.get(CaptureRequest.JPEG_ORIENTATION) != null) { in processImageCapture()
263 (Integer) mParameters.get(CaptureRequest.JPEG_ORIENTATION); in processImageCapture()
314 public List<CaptureRequest.Key> getAvailableCaptureRequestKeys() { in getAvailableCaptureRequestKeys()
315 final CaptureRequest.Key [] CAPTURE_REQUEST_SET = {CaptureRequest.CONTROL_ZOOM_RATIO, in getAvailableCaptureRequestKeys()
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraConstrainedHighSpeedCaptureSessionImpl.java26 import android.hardware.camera2.CaptureRequest;
83 public List<CaptureRequest> createHighSpeedRequestList(CaptureRequest request) in createHighSpeedRequestList()
90 Integer sensorPixelMode = request.get(CaptureRequest.SENSOR_PIXEL_MODE); in createHighSpeedRequestList()
96 Range<Integer> fpsRange = request.get(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE); in createHighSpeedRequestList()
128 List<CaptureRequest> requestList = new ArrayList<CaptureRequest>(); in createHighSpeedRequestList()
135 CaptureRequest.Builder singleTargetRequestBuilder = new CaptureRequest.Builder( in createHighSpeedRequestList()
146 singleTargetRequestBuilder.set(CaptureRequest.CONTROL_CAPTURE_INTENT, in createHighSpeedRequestList()
147 CaptureRequest.CONTROL_CAPTURE_INTENT_PREVIEW); in createHighSpeedRequestList()
150 singleTargetRequestBuilder.set(CaptureRequest.CONTROL_CAPTURE_INTENT, in createHighSpeedRequestList()
151 CaptureRequest.CONTROL_CAPTURE_INTENT_VIDEO_RECORD); in createHighSpeedRequestList()
[all …]
DCaptureCallback.java22 import android.hardware.camera2.CaptureRequest;
66 CaptureRequest request, long timestamp, long frameNumber); in onCaptureStarted()
73 CaptureRequest request, long timestamp, long frameNumber); in onReadoutStarted()
82 CaptureRequest request, CaptureResult result); in onCapturePartial()
90 CaptureRequest request, CaptureResult partialResult); in onCaptureProgressed()
97 CaptureRequest request, TotalCaptureResult result); in onCaptureCompleted()
105 CaptureRequest request, CaptureFailure failure); in onCaptureFailed()
130 CaptureRequest request, Surface target, long frameNumber); in onCaptureBufferLost()
DFrameNumberTracker.java20 import android.hardware.camera2.CaptureRequest;
39 private long[] mCompletedFrameNumber = new long[CaptureRequest.REQUEST_TYPE_COUNT];
46 new LinkedList[CaptureRequest.REQUEST_TYPE_COUNT];
51 new LinkedList[CaptureRequest.REQUEST_TYPE_COUNT];
59 for (int i = 0; i < CaptureRequest.REQUEST_TYPE_COUNT; i++) { in FrameNumberTracker()
84 for (int i = 1; i < CaptureRequest.REQUEST_TYPE_COUNT; i++) { in update()
85 int otherType = (requestType + i) % CaptureRequest.REQUEST_TYPE_COUNT; in update()
97 int otherType1 = (requestType + 1) % CaptureRequest.REQUEST_TYPE_COUNT; in update()
98 int otherType2 = (requestType + 2) % CaptureRequest.REQUEST_TYPE_COUNT; in update()
188 return mCompletedFrameNumber[CaptureRequest.REQUEST_TYPE_REGULAR]; in getCompletedFrameNumber()
[all …]
DCaptureCallbackHolder.java20 import android.hardware.camera2.CaptureRequest;
32 private final List<CaptureRequest> mRequestList;
44 CaptureCallbackHolder(CaptureCallback callback, List<CaptureRequest> requestList, in CaptureCallbackHolder()
52 mRequestList = new ArrayList<CaptureRequest>(requestList); in CaptureCallbackHolder()
60 CaptureRequest request = requestList.get(i); in CaptureCallbackHolder()
84 public CaptureRequest getRequest(int subsequenceId) { in getRequest()
100 public CaptureRequest getRequest() { in getRequest()
DRequestLastFrameNumbersHolder.java20 import android.hardware.camera2.CaptureRequest;
50 public RequestLastFrameNumbersHolder(List<CaptureRequest> requestList, SubmitInfo requestInfo) { in RequestLastFrameNumbersHolder()
65 CaptureRequest request = requestList.get(i); in RequestLastFrameNumbersHolder()
67 if (requestType == CaptureRequest.REQUEST_TYPE_REPROCESS in RequestLastFrameNumbersHolder()
71 } else if (requestType == CaptureRequest.REQUEST_TYPE_ZSL_STILL in RequestLastFrameNumbersHolder()
75 } else if (requestType == CaptureRequest.REQUEST_TYPE_REGULAR in RequestLastFrameNumbersHolder()
123 if (repeatingRequestTypes[i] == CaptureRequest.REQUEST_TYPE_ZSL_STILL in RequestLastFrameNumbersHolder()
127 } else if (repeatingRequestTypes[i] == CaptureRequest.REQUEST_TYPE_REGULAR in RequestLastFrameNumbersHolder()
DCameraCaptureSessionImpl.java23 import android.hardware.camera2.CaptureRequest;
175 public int capture(CaptureRequest request, CaptureCallback callback, in capture()
195 public int captureSingleRequest(CaptureRequest request, Executor executor, in captureSingleRequest()
219 private void checkCaptureRequest(CaptureRequest request) { in checkCaptureRequest()
231 public int captureBurst(List<CaptureRequest> requests, CaptureCallback callback, in captureBurst()
241 CaptureRequest[] requestArray = requests.toArray(new CaptureRequest[0]); in captureBurst()
252 public int captureBurstRequests(List<CaptureRequest> requests, Executor executor, in captureBurstRequests()
267 CaptureRequest[] requestArray = requests.toArray(new CaptureRequest[0]); in captureBurstRequests()
277 private void checkCaptureRequests(List<CaptureRequest> requests) { in checkCaptureRequests()
284 for (CaptureRequest request : requests) { in checkCaptureRequests()
[all …]
/frameworks/ex/camera2/extensions/sample/src/java/androidx/camera/extensions/impl/
DBokehPreviewExtenderImpl.java20 import android.hardware.camera2.CaptureRequest;
41 private static final int MODE = CaptureRequest.CONTROL_AWB_MODE_SHADE;
56 mCaptureStage.addCaptureRequestParameters(CaptureRequest.CONTROL_AWB_MODE, in init()
57 CaptureRequest.CONTROL_AWB_MODE_AUTO); in init()
98 private Integer mWBMode = CaptureRequest.CONTROL_AWB_MODE_AUTO;
106 case CaptureRequest.CONTROL_AWB_MODE_AUTO:
110 mWBMode = CaptureRequest.CONTROL_AWB_MODE_AUTO;
114 mCaptureStage.addCaptureRequestParameters(CaptureRequest.CONTROL_AWB_MODE,
176 captureStage.addCaptureRequestParameters(CaptureRequest.CONTROL_AWB_MODE, MODE); in onPresetSession()
189 captureStage.addCaptureRequestParameters(CaptureRequest.CONTROL_AWB_MODE, MODE); in onEnableSession()
[all …]
DSettableCaptureStage.java19 import android.hardware.camera2.CaptureRequest;
30 private Map<CaptureRequest.Key, Object> mCaptureRequestKeyValueMap = new HashMap<>();
58 public List<Pair<CaptureRequest.Key, Object>> getParameters() { in getParameters()
59 List<Pair<CaptureRequest.Key, Object>> parameters = new ArrayList<>(); in getParameters()
61 for (Map.Entry<CaptureRequest.Key, Object> entry : mCaptureRequestKeyValueMap.entrySet()) { in getParameters()
71 <T> void addCaptureRequestParameters(CaptureRequest.Key<T> key, T value) { in addCaptureRequestParameters()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2StillCaptureTest.java33 import android.hardware.camera2.CaptureRequest;
209 CaptureRequest.Builder previewRequest = in takePictureTestByCamera()
211 CaptureRequest.Builder stillRequest = in takePictureTestByCamera()
218 previewRequest.set(CaptureRequest.CONTROL_AE_MODE, in takePictureTestByCamera()
219 CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH); in takePictureTestByCamera()
220 stillRequest.set(CaptureRequest.CONTROL_AE_MODE, in takePictureTestByCamera()
221 CaptureRequest.CONTROL_AE_MODE_ON_AUTO_FLASH); in takePictureTestByCamera()
235 stillRequest.set(CaptureRequest.CONTROL_AF_REGIONS, afRegions); in takePictureTestByCamera()
250 int currentAfMode = CaptureRequest.CONTROL_AF_MODE_OFF; in takePictureTestByCamera()
254 previewRequest.set(CaptureRequest.CONTROL_AF_MODE, currentAfMode); in takePictureTestByCamera()
[all …]
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java26 import android.hardware.camera2.CaptureRequest;
98 CaptureRequest.Builder mHdrBuilder;
100 CaptureRequest mPreviewRequest;
357 public CaptureRequest.Builder createCaptureRequest(int template) throws CameraAccessException {
368 public void setRepeatingRequest(final CaptureRequest request,
386 public void setRepeatingBurst(final List<CaptureRequest> requests,
492 final CaptureRequest.Builder captureBuilder =
498 captureBuilder.set(CaptureRequest.JPEG_ORIENTATION, currentJpegRotation);
504 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request,
521 private void setRequest(final CaptureRequest request,
[all …]
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraOps.java26 import android.hardware.camera2.CaptureRequest;
92 CaptureRequest.Builder mHdrBuilder;
94 CaptureRequest mPreviewRequest;
392 public CaptureRequest.Builder createCaptureRequest(int template) throws CameraAccessException { in createCaptureRequest()
403 public void setRepeatingRequest(final CaptureRequest request, in setRepeatingRequest()
421 public void setRepeatingBurst(final List<CaptureRequest> requests, in setRepeatingBurst()
528 final CaptureRequest.Builder captureBuilder = in captureStillPicture()
534 captureBuilder.set(CaptureRequest.JPEG_ORIENTATION, currentJpegRotation); in captureStillPicture()
540 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in captureStillPicture()
557 private void setRequest(final CaptureRequest request, in setRequest()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCamera2Focuser.java27 import android.hardware.camera2.CaptureRequest;
65 private CaptureRequest.Builder mRepeatingBuilder;
218 CaptureRequest.Builder requestBuilder = createRequestBuilder(); in cancelAutoFocus()
236 return mRepeatingBuilder.get(CaptureRequest.CONTROL_AF_MODE); in getCurrentAfMode()
247 CaptureRequest.Builder requestBuilder = createRequestBuilder(); in startAutoFocusLocked()
270 CaptureRequest.Builder requestBuilder = createRequestBuilder(); in startAutoFocusFullActiveLocked()
272 if (mRepeatingBuilder.get(CaptureRequest.CONTROL_AF_TRIGGER) in startAutoFocusFullActiveLocked()
273 != CaptureRequest.CONTROL_AF_TRIGGER_IDLE) { in startAutoFocusFullActiveLocked()
276 if (requestBuilder.get(CaptureRequest.CONTROL_AF_TRIGGER) in startAutoFocusFullActiveLocked()
277 != CaptureRequest.CONTROL_AF_TRIGGER_START) { in startAutoFocusFullActiveLocked()
[all …]
/frameworks/ex/camera2/extensions/service_based_sample/extensions_service/src/com/android/oemextensions/
DAdvancedExtenderImplStub.java25 import android.hardware.camera2.CaptureRequest;
155 private Map<CaptureRequest.Key, Object> getSupportedCaptureRequestKeys() { in getSupportedCaptureRequestKeys()
156 Map<CaptureRequest.Key, Object> map = new HashMap<>(); in getSupportedCaptureRequestKeys()
157 map.put(CaptureRequest.CONTROL_ZOOM_RATIO, in getSupportedCaptureRequestKeys()
159 map.put(CaptureRequest.SCALER_CROP_REGION, in getSupportedCaptureRequestKeys()
161 map.put(CaptureRequest.CONTROL_AE_REGIONS, in getSupportedCaptureRequestKeys()
163 map.put(CaptureRequest.CONTROL_AWB_REGIONS, in getSupportedCaptureRequestKeys()
165 map.put(CaptureRequest.JPEG_QUALITY, in getSupportedCaptureRequestKeys()
167 map.put(CaptureRequest.JPEG_ORIENTATION, in getSupportedCaptureRequestKeys()
170 map.put(CaptureRequest.CONTROL_AF_TRIGGER, in getSupportedCaptureRequestKeys()
[all …]
/frameworks/av/camera/camera2/
DCaptureRequest.cpp35 CaptureRequest::CaptureRequest() = default;
36 CaptureRequest::~CaptureRequest() = default;
37 CaptureRequest::CaptureRequest(const CaptureRequest& rhs) = default;
38 CaptureRequest::CaptureRequest(CaptureRequest&& rhs) noexcept = default;
41 status_t CaptureRequest::readFromParcel(const android::Parcel* parcel) { in readFromParcel()
167 status_t CaptureRequest::writeToParcel(android::Parcel* parcel) const { in writeToParcel()
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/advanced/
DCamera2SessionConfigImplBuilder.java22 import android.hardware.camera2.CaptureRequest;
35 Map<CaptureRequest.Key<?>, Object> mSessionParameters = new HashMap<>();
54 CaptureRequest.Key<T> key, T value) { in addSessionParameter()
77 public Map<CaptureRequest.Key<?>, Object> getSessionParameters() { in getSessionParameters()
98 Map<CaptureRequest.Key<?>, Object> mSessionParameters;
113 public Map<CaptureRequest.Key<?>, Object> getSessionParameters() { in getSessionParameters()

123456789