Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/examples/android/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/examples/android/app/src/main/java/org/tensorflow/demo/
DCameraConnectionFragment.java149 private Size previewSize; field in CameraConnectionFragment
377 previewSize = in setUpCameraOutputs()
385 textureView.setAspectRatio(previewSize.getWidth(), previewSize.getHeight()); in setUpCameraOutputs()
387 textureView.setAspectRatio(previewSize.getHeight(), previewSize.getWidth()); in setUpCameraOutputs()
401 cameraConnectionCallback.onPreviewSizeChosen(previewSize, sensorOrientation); in setUpCameraOutputs()
496 texture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in createCameraPreviewSession()
505 LOGGER.i("Opening camera preview: " + previewSize.getWidth() + "x" + previewSize.getHeight()); in createCameraPreviewSession()
510 previewSize.getWidth(), previewSize.getHeight(), ImageFormat.YUV_420_888, 2); in createCameraPreviewSession()
568 if (null == textureView || null == previewSize || null == activity) { in configureTransform()
574 final RectF bufferRect = new RectF(0, 0, previewSize.getHeight(), previewSize.getWidth()); in configureTransform()
[all …]
DCameraActivity.java115 Camera.Size previewSize = camera.getParameters().getPreviewSize(); in onPreviewFrame() local
116 previewHeight = previewSize.height; in onPreviewFrame()
117 previewWidth = previewSize.width; in onPreviewFrame()
119 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
572 previewSize = in setUpCameraOutputs()
584 textureView.setAspectRatio(previewSize.getWidth(), previewSize.getHeight()); in setUpCameraOutputs()
586 textureView.setAspectRatio(previewSize.getHeight(), previewSize.getWidth()); in setUpCameraOutputs()
732 texture.setDefaultBufferSize(previewSize.getWidth(), previewSize.getHeight()); in createCameraPreviewSession()
791 if (null == textureView || null == previewSize || null == activity) { in configureTransform()
797 RectF bufferRect = new RectF(0, 0, previewSize.getHeight(), previewSize.getWidth()); in configureTransform()
805 (float) viewHeight / previewSize.getHeight(), in configureTransform()
806 (float) viewWidth / previewSize.getWidth()); in configureTransform()
/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()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DVideoCapturerAndroid.java500 final android.hardware.Camera.Size previewSize = in startPreviewOnCameraThread() local
504 previewSize.width, previewSize.height, in startPreviewOnCameraThread()