Searched defs:previewSize (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DLegacyRequest.java35 public final Size previewSize; field in class:LegacyRequest
44 * @param previewSize immutable internal preview size used for {@link Camera#setPreviewSurface}
48 Size previewSize, Camera.Parameters parameters) {
51 this.previewSize = checkNotNull(previewSize, "previewSize must not be null");
47 LegacyRequest(CameraCharacteristics characteristics, CaptureRequest captureRequest, Size previewSize, Camera.Parameters parameters) argument
H A DParameterUtils.java483 * @param previewSize size of the preview buffer render target, in pixels (not in sensor space)
490 * if {@code previewSize} is wider or taller than {@code activeArray}
492 private static Rect getPreviewCropRectangleUnzoomed(Rect activeArray, Size previewSize) { argument
493 if (previewSize.getWidth() > activeArray.width()) {
494 throw new IllegalArgumentException("previewSize must not be wider than activeArray");
495 } else if (previewSize.getHeight() > activeArray.height()) {
496 throw new IllegalArgumentException("previewSize must not be taller than activeArray");
500 float aspectRatioPreview = previewSize.getWidth() * 1.0f / previewSize.getHeight();
622 Rect activeArray, Size previewSize) {
621 getAvailablePreviewZoomCropRectangles(Camera.Parameters params, Rect activeArray, Size previewSize) argument
749 convertScalerCropRegion(Rect activeArraySize, Rect cropRegion, Size previewSize, Camera.Parameters params) argument
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java550 * @param previewSize Size of the preview buffer render target, in pixels (not in sensor space).
557 private static Rect effectiveCropRectFromRequested(Rect requestedCrop, Size previewSize) { argument
559 float aspectRatioPreview = previewSize.width() * 1.0f / previewSize.height();
H A DCameraSettings.java229 * @param previewSize The size to use for preview.
232 public boolean setPreviewSize(Size previewSize) { argument
238 mCurrentPreviewSize = new Size(previewSize);
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
H A DBitmapRegionTileSource.java165 public BitmapSource(int previewSize) { argument
166 mPreviewSize = previewSize;
184 int previewSize = Math.min(mPreviewSize, MAX_PREVIEW_SIZE);
189 float scale = (float) previewSize / Math.max(width, height);
226 public FilePathBitmapSource(String path, int previewSize) { argument
227 super(previewSize);
261 public UriBitmapSource(Context context, Uri uri, int previewSize) { argument
262 super(previewSize);
326 public ResourceBitmapSource(Resources res, int resId, int previewSize) { argument
327 super(previewSize);
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2ReprocessCaptureTest.java192 testReprocessingAllCombinations(id, /*previewSize*/null,
215 /* previewSize */null, CaptureTestCase.SINGLE_SHOT);
226 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase)
235 reprocessOutputFormat, previewSize, NUM_REPROCESS_CAPTURES);
260 private void testReprocessingAllCombinations(String cameraId, Size previewSize, argument
283 reprocessOutputSize, reprocessOutputFormat, previewSize,
288 reprocessOutputSize, reprocessOutputFormat, previewSize,
293 reprocessOutputSize, reprocessOutputFormat, previewSize,
309 Size reprocessOutputSize, int reprocessOutputFormat, Size previewSize,
315 " previewSize
225 testReprocessingMaxSizes(String cameraId, int inputFormat, int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) argument
308 testReprocessMixedBurst(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat, Size previewSize, int numBurst) argument
380 testReprocessBurst(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat, Size previewSize, int numBurst) argument
439 testReprocess(String cameraId, Size inputSize, int inputFormat, Size reprocessOutputSize, int reprocessOutputFormat, Size previewSize, int numReprocessCaptures) argument
[all...]

Completed in 141 milliseconds