Home
last modified time | relevance | path

Searched refs:ImageReader (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/media/java/android/media/
DImageReader.java76 public class ImageReader implements AutoCloseable { class
175 public static @NonNull ImageReader newInstance( in newInstance()
182 return new ImageReader(width, height, format, maxImages, in newInstance()
286 public static @NonNull ImageReader newInstance( in newInstance()
299 return new ImageReader(width, height, format, maxImages, usage, /*parent*/ null); in newInstance()
305 public static @NonNull ImageReader newInstance( in newInstance()
313 return new ImageReader(width, height, format, maxImages, in newInstance()
351 private ImageReader(int width, int height, int imageFormat, int maxImages, long usage, in ImageReader() method in ImageReader
368 private ImageReader(int width, int height, int maxImages, long usage, in ImageReader() method in ImageReader
770 void onImageAvailable(ImageReader reader); in onImageAvailable()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DMultiResolutionImageReader.java33 import android.media.ImageReader;
155 mReaders = new ImageReader[numImageReaders]; in MultiResolutionImageReader()
159 mReaders[index] = ImageReader.newInstance(streamInfo.getWidth(), in MultiResolutionImageReader()
253 mReaders = new ImageReader[numImageReaders]; in MultiResolutionImageReader()
257 mReaders[index] = ImageReader.newInstance(streamInfo.getWidth(), in MultiResolutionImageReader()
282 @Nullable ImageReader.OnImageAvailableListener listener, in setOnImageAvailableListener()
324 public void flushOther(ImageReader reader) { in flushOther()
346 public @NonNull ImageReader[] getReaders() { in getReaders()
437 @NonNull ImageReader reader) { in getStreamInfoForImageReader()
449 private final ImageReader[] mReaders;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DSurfaceUtilsTest.java21 import android.media.ImageReader;
32 ImageReader reader = ImageReader.newInstance(640, 480, ImageFormat.YUV_420_888, 1); in testInvalidSurfaceException()
DImageReaderTest.java24 import android.media.ImageReader;
25 import android.media.ImageReader.OnImageAvailableListener;
39 private ImageReader mReader;
59 mReader = spy(ImageReader.newInstance(DEFAULT_WIDTH, DEFAULT_HEIGHT, DEFAULT_FORMAT, in setUp()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraExtensionForwardProcessor.java26 import android.media.ImageReader;
46 private ImageReader mIntermediateReader = null;
101 mIntermediateReader = ImageReader.newInstance(mResolution.getWidth(), in initializePipeline()
127 private class ForwardCallback implements ImageReader.OnImageAvailableListener {
128 @Override public void onImageAvailable(ImageReader reader) { in onImageAvailable()
DCameraExtensionJpegProcessor.java30 import android.media.ImageReader;
57 private ImageReader mYuvReader = null;
58 private ImageReader mPostviewYuvReader = null;
263 mYuvReader = ImageReader.newInstance(mResolution.width, mResolution.height, in initializePipeline()
285 mPostviewYuvReader = ImageReader.newInstance(mPostviewResolution.width, in initializePostviewPipeline()
301 private class YuvCallback implements ImageReader.OnImageAvailableListener {
302 private ImageReader mImageReader;
305 public YuvCallback(ImageReader imageReader, ImageWriter imageWriter) { in YuvCallback()
311 public void onImageAvailable(ImageReader reader) { in onImageAvailable()
DCameraExtensionSessionImpl.java54 import android.media.ImageReader;
104 private ImageReader mRepeatingRequestImageReader = null;
105 private ImageReader mBurstCaptureImageReader = null;
106 private ImageReader mStubCaptureImageReader = null;
353 mRepeatingRequestImageReader = ImageReader.newInstance(repeatingSurfaceInfo.mWidth, in initializeRepeatingRequestPipeline()
365 mRepeatingRequestImageReader = ImageReader.newInstance(repeatingSurfaceInfo.mWidth, in initializeRepeatingRequestPipeline()
378 mRepeatingRequestImageReader = ImageReader.newInstance(repeatingSurfaceInfo.mWidth, in initializeRepeatingRequestPipeline()
414 mBurstCaptureImageReader = ImageReader.newInstance(surfaceInfo.mWidth, in initializeBurstCapturePipeline()
421 mBurstCaptureImageReader = ImageReader.newInstance( in initializeBurstCapturePipeline()
427 mStubCaptureImageReader = ImageReader.newInstance( in initializeBurstCapturePipeline()
[all …]
DCameraAdvancedExtensionSessionImpl.java61 import android.media.ImageReader;
95 private final HashMap<Integer, ImageReader> mReaderMap = new HashMap<>();
701 for (ImageReader reader : mReaderMap.values()) { in release()
1079 private static final class ImageReaderHandler implements ImageReader.OnImageAvailableListener {
1093 public void onImageAvailable(ImageReader reader) { in onImageAvailable()
1156 ImageReader reader = mReaderMap.get(outputConfigId.id); in setImageProcessor()
1309 ImageReader reader = ImageReader.newInstance(output.size.width, in initializeSurface()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DPenStylusActivity.kt25 import android.media.ImageReader
42 private val mImageReader: ImageReader
46 mImageReader = ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, 1,
DMyLittleTextureView.java31 import android.media.ImageReader;
47 ImageReader reader = ImageReader.newInstance(100, 100, PixelFormat.RGBA_8888, 3, in onCreate()
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
DCameraTooActivity.java31 import android.media.ImageReader;
74 ImageReader mCaptureBuffer;
253 mCaptureBuffer = ImageReader.newInstance(largestSize.getWidth(),
385 final ImageReader.OnImageAvailableListener mImageCaptureListener =
386 new ImageReader.OnImageAvailableListener() {
388 public void onImageAvailable(ImageReader reader) {
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/service/
DImageWrapper.java27 import android.media.ImageReader;
166 private ImageReader.ImagePlane[] mPlanes;
221 mPlanes = ImageReader.initializeImagePlanes(mImageWrapper.mPlaneCount, in getPlanes()
257 ImageReader.unlockGraphicBuffer(mGraphicBuffer); in close()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarButtonTest.java28 import android.media.ImageReader;
66 private ImageReader mReader;
98 mReader = ImageReader.newInstance(displayInfo.logicalWidth, in createVirtualDisplay()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java43 import android.media.ImageReader;
121 protected ImageReader mReader;
285 ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareStillCaptureAndStartPreview()
304 ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareStillCaptureAndStartPreview()
326 ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareRawCaptureAndStartPreview()
580 ImageReader.OnImageAvailableListener listener) throws Exception { in createImageReader()
583 ImageReader r = makeImageReader(size, format, maxNumImages, listener, in createImageReader()
696 ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareCaptureAndStartPreview()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/scroll/
DScrollCaptureClient.java32 import android.media.ImageReader;
238 IBinder.DeathRecipient, ImageReader.OnImageAvailableListener {
244 private ImageReader mReader;
302 mReader = ImageReader.newInstance(mTileWidth, mTileHeight, PixelFormat.RGBA_8888,
367 public void onImageAvailable(ImageReader reader) {
/frameworks/base/services/core/java/com/android/server/vr/
DVr2dDisplay.java15 import android.media.ImageReader;
96 private ImageReader mImageReader;
243 ImageReader oldImageReader = mImageReader; in setVirtualDisplayProperties()
386 mImageReader = ImageReader.newInstance(mVirtualDisplayWidth, mVirtualDisplayHeight, in startImageReader()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java30 import android.media.ImageReader;
94 private ImageReader mImageReader;
147 mImageReader = ImageReader.newInstance(largest.getWidth(), largest.getHeight(), in resume()
182 private final ImageReader.OnImageAvailableListener mOnImageAvailableListener
183 = new ImageReader.OnImageAvailableListener() {
186 public void onImageAvailable(ImageReader reader) {
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DVirtualDisplayTest.java30 import android.media.ImageReader;
80 private ImageReader mImageReader;
94 mImageReader = ImageReader.newInstance(WIDTH, HEIGHT, PixelFormat.RGBA_8888, 2); in setUp()
426 implements ImageReader.OnImageAvailableListener {
453 public void onImageAvailable(ImageReader reader) { in onImageAvailable()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraOps.java30 import android.media.ImageReader;
88 private ImageReader mImageReader;
161 mImageReader = ImageReader.newInstance(big.getWidth(), big.getHeight(), in resume()
196 private final ImageReader.OnImageAvailableListener mOnImageAvailableListener
197 = new ImageReader.OnImageAvailableListener() {
200 public void onImageAvailable(ImageReader reader) {
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraDeviceBinderTest.java44 import android.media.ImageReader;
86 ImageReader mImageReader;
91 private class ImageDropperListener implements ImageReader.OnImageAvailableListener {
94 public void onImageAvailable(ImageReader reader) { in onImageAvailable()
187 ImageReader.newInstance(DEFAULT_IMAGE_WIDTH, in createDefaultSurface()
/frameworks/base/core/tests/coretests/src/android/content/
DContextTest.java37 import android.media.ImageReader;
205 ImageReader reader = ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, in getSecondaryDisplay()
/frameworks/ex/camera2/extensions/eyesFreeVidSample/src/android/camera/extensions/impl/service/
DEyesFreeVidSessionProcessor.java52 import android.media.ImageReader;
92 protected ImageReader mPreviewImageReader;
126 mPreviewImageReader = ImageReader.newInstance(previewSurface.getSize().getWidth(), in initSession()
554 private class ImageListener implements ImageReader.OnImageAvailableListener {
569 public void onImageAvailable(ImageReader reader) { in onImageAvailable()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestUtils.java44 import android.media.ImageReader;
180 public static ImageReader makeImageReader(Size size, int format, int maxNumImages, in makeImageReader()
181 ImageReader.OnImageAvailableListener listener, Handler handler) { in makeImageReader()
182 ImageReader reader; in makeImageReader()
183 reader = ImageReader.newInstance(size.getWidth(), size.getHeight(), format, in makeImageReader()
211 public static void closeImageReader(ImageReader reader) { in closeImageReader()
234 public static class ImageDropperListener implements ImageReader.OnImageAvailableListener {
236 public void onImageAvailable(ImageReader reader) { in onImageAvailable()
251 public static class ImageVerifierListener implements ImageReader.OnImageAvailableListener {
261 public void onImageAvailable(ImageReader reader) { in onImageAvailable()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2SwitchPreviewTest.java32 import android.media.ImageReader;
489ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareVideoPreview()
510ImageReader.OnImageAvailableListener imageListener) throws Exception { in prepareCapturePreview()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackChangedListenerTest.java47 import android.media.ImageReader;
81 private ImageReader mImageReader;
122 mImageReader = ImageReader.newInstance(width, height, PixelFormat.RGBA_8888, in createVirtualDisplay()

12