Home
last modified time | relevance | path

Searched refs:previewSize (Results 1 – 22 of 22) sorted by relevance

/cts/tests/camera/src/android/hardware/camera2/cts/
DNativeCameraDeviceTest.java96 Size previewSize = new Size(640, 480); in testCameraDeviceSharedOutputUpdate() local
97 updatePreviewSurface(previewSize); in testCameraDeviceSharedOutputUpdate()
99 outputTexture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testCameraDeviceSharedOutputUpdate()
109 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalStreaming() local
110 updatePreviewSurface(previewSize); in testCameraDeviceLogicalPhysicalStreaming()
118 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalStreamingWithV2Callbacks() local
119 updatePreviewSurface(previewSize); in testCameraDeviceLogicalPhysicalStreamingWithV2Callbacks()
128 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalSettings() local
129 updatePreviewSurface(previewSize); in testCameraDeviceLogicalPhysicalSettings()
137 Size previewSize = new Size(640, 480); in testCameraDeviceLogicalPhysicalSettingsWithV2Callbacks() local
[all …]
DMultiViewTest.java125 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testTextureViewPreviewWithImageReader() local
127 new ImageVerifierListener(previewSize, ImageFormat.YUV_420_888); in testTextureViewPreviewWithImageReader()
128 yuvReader = makeImageReader(previewSize, in testTextureViewPreviewWithImageReader()
206 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testDualTextureViewAndImageReaderPreview() local
208 new ImageVerifierListener(previewSize, ImageFormat.YUV_420_888); in testDualTextureViewAndImageReaderPreview()
209 yuvReader = makeImageReader(previewSize, in testDualTextureViewAndImageReaderPreview()
310 Size previewSize = getOrderedPreviewSizes(cameraId).get(0); in testSharedSurfaceBasicByCamera() local
324 previewTexture[i].setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in testSharedSurfaceBasicByCamera()
326 updatePreviewDisplayRotation(previewSize, mTextureView[i]); in testSharedSurfaceBasicByCamera()
374 Size textureSize = previewSize; in testSharedSurfaceBasicByCamera()
[all …]
DReprocessCaptureTest.java596 int reprocessOutputFormat, Size previewSize, CaptureTestCase captureTestCase) in testReprocessingMaxSizes() argument
605 reprocessOutputFormat, previewSize, NUM_REPROCESS_CAPTURES); in testReprocessingMaxSizes()
630 private void testReprocessingAllCombinations(String cameraId, Size previewSize, in testReprocessingAllCombinations() argument
664 if ((previewSize != null) && in testReprocessingAllCombinations()
665 ((previewSize.getWidth() > FULL_HD.getWidth()) || ( in testReprocessingAllCombinations()
666 previewSize.getHeight() > FULL_HD.getHeight())) && in testReprocessingAllCombinations()
668 previewSize = VGA; in testReprocessingAllCombinations()
674 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations()
679 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations()
684 reprocessOutputSize, reprocessOutputFormat, previewSize, in testReprocessingAllCombinations()
[all …]
DOfflineSessionTest.java130 Size previewSize = mOrderedPreviewSizes.get(0); in testInvalidOutput() local
135 startPreview(previewRequest, previewSize, resultListener); in testInvalidOutput()
562 Size previewSize = mOrderedPreviewSizes.get(0); in camera2OfflineSessionTest() local
566 previewSize = sz; in camera2OfflineSessionTest()
570 Size privateSize = previewSize; in camera2OfflineSessionTest()
590 updatePreviewSurface(previewSize); in camera2OfflineSessionTest()
705 yuvCallbackReader = makeImageReader(previewSize, ImageFormat.YUV_420_888, in camera2OfflineSessionTest()
805 Size previewSize = mOrderedPreviewSizes.get(0); in camera2UnsupportedOfflineOutputTest() local
807 updatePreviewSurface(previewSize); in camera2UnsupportedOfflineOutputTest()
DLogicalCameraDeviceTest.java211 Size previewSize = findCommonPreviewSize(id, dualPhysicalCameraIds, in testBasicPhysicalStreaming() local
213 if (previewSize == null) { in testBasicPhysicalStreaming()
219 id, dualPhysicalCameraIds, previewSize); in testBasicPhysicalStreaming()
997 for (Size previewSize : previewSizes) { in findCommonPreviewSize()
1000 if (previewSize.getWidth() > windowWidth in findCommonPreviewSize()
1001 || previewSize.getHeight() > windowHeight) { in findCommonPreviewSize()
1006 ImageFormat.YUV_420_888, previewSize); in findCommonPreviewSize()
1011 if (physicalPreviewSizes != null && physicalPreviewSizes.contains(previewSize)) { in findCommonPreviewSize()
1014 ImageFormat.YUV_420_888, previewSize); in findCommonPreviewSize()
1018 return previewSize; in findCommonPreviewSize()
[all …]
DFastBasicsTest.java94 Size previewSize = mOrderedPreviewSizes.get(0); in camera2TestByCamera() local
100 previewSize, stillSize, resultListener, imageListener, false /*isHeic*/); in camera2TestByCamera()
DBurstCaptureTest.java140 final Size previewSize = mOrderedPreviewSizes.get(0); in burstTestByCamera() local
200 previewSize, stillSize, in burstTestByCamera()
DBurstCaptureRawTest.java506 Size previewSize = mOrderedPreviewSizes.get(0); in initCaptureSetupForPreviewAndRaw() local
520 CaptureSetup setup = new CaptureSetup(previewSize, rawSize, previewCaptureBuilder, in initCaptureSetupForPreviewAndRaw()
DCaptureRequestTest.java1073 Size previewSize = in dynamicBlackWhiteLevelTestByCamera() local
1088 prepareRawCaptureAndStartPreview(previewBuilder, rawBuilder, previewSize, rawSize, in dynamicBlackWhiteLevelTestByCamera()
1091 startPreview(previewBuilder, previewSize, resultListener); in dynamicBlackWhiteLevelTestByCamera()
2761 private void digitalZoomTestByCamera(Size previewSize, boolean repeating) throws Exception {
2817 updatePreviewSurface(previewSize);
2884 " Preview size is " + previewSize + ", repeating is " + repeating);
2983 private void zoomRatioTestByCamera(Size previewSize) throws Exception {
3001 updatePreviewSurface(previewSize);
3033 Log.v(TAG, "Testing Zoom ratio " + zoomFactor + " Preview size is " + previewSize);
DCaptureResultTest.java295 Size previewSize = mOrderedPreviewSizes.get(0); in testResultTimestamps() local
299 previewReader = makeImageReader(previewSize, ImageFormat.YUV_420_888, in testResultTimestamps()
DDngCreatorTest.java346 Size previewSize = mOrderedPreviewSizes.get(mOrderedPreviewSizes.size() - 1); in testSingleImageThumbnail() local
358 captureReaders.add(createImageReader(previewSize, ImageFormat.YUV_420_888, 2, in testSingleImageThumbnail()
DStillCaptureTest.java147 Size previewSize = mOrderedPreviewSizes.get(0); in testHeicExif() local
148 stillExifTestByCamera(ImageFormat.HEIC, previewSize); in testHeicExif()
DCameraExtensionSessionTest.java2718 Size previewSize = repeatingSizes.get(0); in testFlash() local
2720 mSurfaceTexture.setDefaultBufferSize(previewSize.getWidth(), in testFlash()
2721 previewSize.getHeight()); in testFlash()
DExtendedCameraCharacteristicsTest.java943 Size previewSize = mOrderedPreviewSizes.get(0); in checkFormatLatency() local
944 previewReader = createImageReader(previewSize, ImageFormat.YUV_420_888, in checkFormatLatency()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java448 private void setPreviewTransform(Size previewSize) { in setPreviewTransform() argument
452 selectedPreviewAspectRatio = (float) previewSize.width in setPreviewTransform()
453 / (float) previewSize.height; in setPreviewTransform()
455 selectedPreviewAspectRatio = (float) previewSize.height in setPreviewTransform()
456 / (float) previewSize.width; in setPreviewTransform()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java770 Size previewSize = previewSizes.get(0); in assertParameters() local
824 parameters.setPreviewSize(previewSize.width, previewSize.height); in assertParameters()
825 assertEquals(previewSize.width, parameters.getPreviewSize().width); in assertParameters()
826 assertEquals(previewSize.height, parameters.getPreviewSize().height); in assertParameters()
835 assertEquals(previewSize.width, paramActual.getPreviewSize().width); in assertParameters()
836 assertEquals(previewSize.height, paramActual.getPreviewSize().height); in assertParameters()
1999 private boolean isWaivedCombination(Size previewSize, Size pictureSize) { in isWaivedCombination() argument
2002 if (previewSize.equals(QCIF) && (pictureSize.width > FULL_HD.width || in isWaivedCombination()
2006 if (pictureSize.equals(QCIF) && (previewSize.width > FULL_HD.width || in isWaivedCombination()
2007 previewSize.height > FULL_HD.height)) { in isWaivedCombination()
[all …]
DCameraGLTest.java690 public void setCameraSizing(Camera.Size previewSize) { in setCameraSizing() argument
691 mCameraRatio = (float)previewSize.width/previewSize.height; in setCameraSizing()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/
DCameraBokehActivity.java672 Size previewSize; in setUpCamera() local
675 previewSize = maxYuvSize; in setUpCamera()
677 previewSize = maxStreamingSize; in setUpCamera()
681 index, bokehCap.getMode(), previewSize.getWidth(), in setUpCamera()
682 previewSize.getHeight(), mCameraId, in setUpCamera()
694 index, bokehCap.getMode(), previewSize.getWidth(), in setUpCamera()
695 previewSize.getHeight(), mCameraId, in setUpCamera()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java151 protected void updatePreviewDisplayRotation(Size previewSize, TextureView textureView) { in updatePreviewDisplayRotation() argument
184 int effectiveWidth = previewSize.getWidth(); in updatePreviewDisplayRotation()
185 int effectiveHeight = previewSize.getHeight(); in updatePreviewDisplayRotation()
187 effectiveWidth = previewSize.getHeight(); in updatePreviewDisplayRotation()
188 effectiveHeight = previewSize.getWidth(); in updatePreviewDisplayRotation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DPreviewRecorder.java155 PreviewRecorder(int cameraId, Size previewSize, int maxFps, int sensorOrientation, in PreviewRecorder() argument
164 int currentResolution = previewSize.getHeight() * previewSize.getWidth(); in PreviewRecorder()
171 mPreviewSize = previewSize; in PreviewRecorder()
DItsUtils.java590 public static int calculateBitrate(int cameraId, Size previewSize, int maxFps) in calculateBitrate() argument
592 int previewResolution = previewSize.getHeight() * previewSize.getWidth(); in calculateBitrate()
647 Logt.w(TAG, "Could not find bitrate for any resolution >= " + previewSize in calculateBitrate()
DItsService.java3201 Size previewSize = Size.parseSize(params.getString("previewSize"));
3206 + " previewSize: " + previewSize + " frameNum: " + frameNumToCapture
3217 String outputFilePath = getOutputMediaFile(cameraDeviceId, previewSize,
3222 try (PreviewRecorder pr = new PreviewRecorder(cameraDeviceId, previewSize, aeTargetFpsMax,
3497 Size previewSize = extensionSizes.stream()
3503 ": " + previewSize.toString());
3504 return previewSize;
3534 Size previewSize = pickPreviewResolution(captureSize, extension);
3536 previewSize.getWidth(),
3537 previewSize.getHeight(),