Searched refs:previewSize (Results 1 – 7 of 7) sorted by relevance
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/ |
D | CameraConnectionFragment.java | 149 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 …]
|
D | CameraActivity.java | 116 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()
|
D | LegacyCameraConnectionFragment.java | 95 Size previewSize = 98 parameters.setPreviewSize(previewSize.getWidth(), previewSize.getHeight());
|
/external/tensorflow/tensorflow/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/ |
D | Camera2BasicFragment.java | 151 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/ |
D | Camera1Session.java | 144 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/ |
D | ShadowCamera.java | 306 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/ |
D | WebCamFacade.java | 290 Size previewSize = in openCamera() local 293 mPreviewHeight = previewSize.height; in openCamera() 294 mPreviewWidth = previewSize.width; in openCamera()
|