Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DClassifierActivity.java104 previewWidth = size.getWidth(); 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.java67 protected int previewWidth = 0; field in CameraActivity
117 previewWidth = previewSize.width; in onPreviewFrame()
118 rgbBytes = new int[previewWidth * previewHeight]; in onPreviewFrame()
128 yRowStride = previewWidth; 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()
188 previewWidth, in onImageAvailable()
361 previewWidth = size.getWidth(); in setFragment()
DDetectorActivity.java127 previewWidth = size.getWidth(); 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()
210 previewWidth, 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.java124 previewWidth = size.getWidth(); 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.java67 protected int previewWidth = 0; field in CameraActivity
118 previewWidth = previewSize.width; in onPreviewFrame()
119 rgbBytes = new int[previewWidth * previewHeight]; in onPreviewFrame()
130 yRowStride = previewWidth; 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()
190 previewWidth, in onImageAvailable()
367 previewWidth = size.getWidth(); in setFragment()
DDetectorActivity.java169 previewWidth = size.getWidth(); 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()
252 previewWidth, in processImage()
268 rgbFrameBitmap.setPixels(getRgbBytes(), 0, previewWidth, 0, 0, previewWidth, previewHeight); in processImage() local
DStylizeActivity.java367 previewWidth = size.getWidth(); 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.java253 private int previewWidth = 640; field in ShadowCamera.ShadowParameters
307 previewSize.width = previewWidth; in getPreviewSize()
407 previewWidth = width; in setPreviewSize()
466 return previewWidth; in getPreviewWidth()