Home
last modified time | relevance | path

Searched refs:previewHeight (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DClassifierActivity.java105 previewHeight = size.getHeight(); in onPreviewSizeChosen()
110 LOGGER.i("Initializing at size %dx%d", previewWidth, previewHeight); in onPreviewSizeChosen()
111 rgbFrameBitmap = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in onPreviewSizeChosen()
115 previewWidth, previewHeight, in onPreviewSizeChosen()
133 rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight); in processImage() local
188 lines.add("Frame: " + previewWidth + "x" + previewHeight); in renderDebug()
DCameraActivity.java68 protected int previewHeight = 0; field in CameraActivity
116 previewHeight = previewSize.height; in onPreviewFrame()
118 rgbBytes = new int[previewWidth * previewHeight]; in onPreviewFrame()
134 ImageUtils.convertYUV420SPToARGB8888(bytes, previewWidth, previewHeight, rgbBytes); in onPreviewFrame()
155 if (previewWidth == 0 || previewHeight == 0) { in onImageAvailable()
159 rgbBytes = new int[previewWidth * previewHeight]; in onImageAvailable()
189 previewHeight, in onImageAvailable()
360 previewHeight = size.getHeight(); in setFragment()
DDetectorActivity.java128 previewHeight = size.getHeight(); in onPreviewSizeChosen()
133 LOGGER.i("Initializing at size %dx%d", previewWidth, previewHeight); in onPreviewSizeChosen()
134 rgbFrameBitmap = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in onPreviewSizeChosen()
139 previewWidth, previewHeight, in onPreviewSizeChosen()
191 lines.add("Frame: " + previewWidth + "x" + previewHeight); in onPreviewSizeChosen()
211 previewHeight, in processImage()
226 rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight); in processImage() local
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DClassifierActivity.java125 previewHeight = size.getHeight(); in onPreviewSizeChosen()
130 LOGGER.i("Initializing at size %dx%d", previewWidth, previewHeight); in onPreviewSizeChosen()
131 rgbFrameBitmap = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in onPreviewSizeChosen()
135 previewWidth, previewHeight, in onPreviewSizeChosen()
153 rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight); in processImage() local
208 lines.add("Frame: " + previewWidth + "x" + previewHeight); in renderDebug()
DCameraActivity.java68 protected int previewHeight = 0; field in CameraActivity
117 previewHeight = previewSize.height; in onPreviewFrame()
119 rgbBytes = new int[previewWidth * previewHeight]; in onPreviewFrame()
136 ImageUtils.convertYUV420SPToARGB8888(bytes, previewWidth, previewHeight, rgbBytes); in onPreviewFrame()
157 if (previewWidth == 0 || previewHeight == 0) { in onImageAvailable()
161 rgbBytes = new int[previewWidth * previewHeight]; in onImageAvailable()
191 previewHeight, in onImageAvailable()
366 previewHeight = size.getHeight(); in setFragment()
DDetectorActivity.java170 previewHeight = size.getHeight(); in onPreviewSizeChosen()
175 LOGGER.i("Initializing at size %dx%d", previewWidth, previewHeight); in onPreviewSizeChosen()
176 rgbFrameBitmap = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in onPreviewSizeChosen()
181 previewWidth, previewHeight, in onPreviewSizeChosen()
233 lines.add("Frame: " + previewWidth + "x" + previewHeight); in onPreviewSizeChosen()
253 previewHeight, in processImage()
268 rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight); in processImage() local
DStylizeActivity.java368 previewHeight = size.getHeight(); in onPreviewSizeChosen()
475 previewWidth, previewHeight, in resetPreviewBuffers()
491 previewWidth, previewHeight, desiredSize); in processImage()
493 rgbFrameBitmap = Bitmap.createBitmap(previewWidth, previewHeight, Config.ARGB_8888); in processImage()
496 previewWidth, previewHeight, in processImage()
506 rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight); in processImage() local
621 lines.add("Frame: " + previewWidth + "x" + previewHeight); in renderDebug()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCamera.java254 private int previewHeight = 480; field in ShadowCamera.ShadowParameters
308 previewSize.height = previewHeight; in getPreviewSize()
408 previewHeight = height; in setPreviewSize()
470 return previewHeight; in getPreviewHeight()