Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/
DCameraConnectionFragment.java149 private Size previewSize; field in CameraConnectionFragment
383 previewSize = in setUpCameraOutputs()
391 textureView.setAspectRatio(previewSize.getWidth(), previewSize.getHeight()); in setUpCameraOutputs()
393 textureView.setAspectRatio(previewSize.getHeight(), previewSize.getWidth()); in setUpCameraOutputs()
407 cameraConnectionCallback.onPreviewSizeChosen(previewSize, sensorOrientation); in setUpCameraOutputs()
502 texture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in createCameraPreviewSession()
511 LOGGER.i("Opening camera preview: " + previewSize.getWidth() + "x" + previewSize.getHeight()); in createCameraPreviewSession()
516 previewSize.getWidth(), previewSize.getHeight(), ImageFormat.YUV_420_888, 2); in createCameraPreviewSession()
574 if (null == textureView || null == previewSize || null == activity) { in configureTransform()
580 final RectF bufferRect = new RectF(0, 0, previewSize.getHeight(), previewSize.getWidth()); in configureTransform()
[all …]
DCameraActivity.java116 Camera.Size previewSize = camera.getParameters().getPreviewSize(); in onPreviewFrame() local
117 previewHeight = previewSize.height; in onPreviewFrame()
118 previewWidth = previewSize.width; in onPreviewFrame()
120 onPreviewSizeChosen(new Size(previewSize.width, previewSize.height), 90); in onPreviewFrame()
DLegacyCameraConnectionFragment.java95 Size previewSize =
98 parameters.setPreviewSize(previewSize.getWidth(), previewSize.getHeight());
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/
DCamera2BasicFragment.java151 private Size previewSize; field in Camera2BasicFragment
564 previewSize = in setUpCameraOutputs()
576 textureView.setAspectRatio(previewSize.getWidth(), previewSize.getHeight()); in setUpCameraOutputs()
578 textureView.setAspectRatio(previewSize.getHeight(), previewSize.getWidth()); in setUpCameraOutputs()
724 texture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in createCameraPreviewSession()
783 if (null == textureView || null == previewSize || null == activity) { in configureTransform()
789 RectF bufferRect = new RectF(0, 0, previewSize.getHeight(), previewSize.getWidth()); in configureTransform()
797 (float) viewHeight / previewSize.getHeight(), in configureTransform()
798 (float) viewWidth / previewSize.getWidth()); in configureTransform()
/external/webrtc/sdk/android/src/java/org/webrtc/
DCamera1Session.java144 final Size previewSize = CameraEnumerationAndroid.getClosestSupportedSize( in findClosestCaptureFormat() local
146 CameraEnumerationAndroid.reportCameraResolution(camera1ResolutionHistogram, previewSize); in findClosestCaptureFormat()
148 return new CaptureFormat(previewSize.width, previewSize.height, fpsRange); in findClosestCaptureFormat()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCamera.java306 Camera.Size previewSize = newInstanceOf(Camera.class).new Size(0, 0); in getPreviewSize() local
307 previewSize.width = previewWidth; in getPreviewSize()
308 previewSize.height = previewHeight; in getPreviewSize()
309 return previewSize; in getPreviewSize()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/webcam/
DWebCamFacade.java290 Size previewSize = in openCamera() local
293 mPreviewHeight = previewSize.height; in openCamera()
294 mPreviewWidth = previewSize.width; in openCamera()