Lines Matching full:preview
43 * (e.g. bottom bar) of the preview size change.
76 public TextureViewHelper(TextureView preview, CaptureLayoutHelper helper,
78 mPreview = preview;
92 * transform matrix will be automatically adjusted based on the preview
123 * Transforms the preview with the identity matrix, ensuring there is no
124 * scaling on the preview. It also calls onPreviewSizeChanged, to trigger
125 * any necessary preview size changing callbacks.
172 * This returns the rect that is available to display the preview, and
186 * @param aspectRatio the aspectRatio that the preview should be
207 Log.e(TAG, "Invalid preview size: " + previewWidth + " x " + previewHeight);
226 * Calculates and updates the preview area rect using the latest transform
255 * {@link android.view.Surface} on which the preview image is
289 // the preview. So, a 4:3 surface that contains 16:9 data will look correct as
315 * TextureView and preview stream aspect ratio.
377 // Notify listeners of preview area change
394 * Returns a new copy of the preview area, to avoid internal data being
402 * Returns a copy of the area of the whole preview, including bits clipped
420 Bitmap preview = mPreview.getBitmap(width, height);
421 return Bitmap.createBitmap(preview, 0, 0, width, height, mPreview.getTransform(null), true);
425 * Adds a listener that will get notified when the preview area changed.
427 * according to the preview area change.
430 * receive a notification of current preview area immediately after being
436 * @param listener the listener that will get notified of preview area
452 * Removes a listener that gets notified when the preview area changed.
454 * @param listener the listener that gets notified of preview area change