◆ ImageReaderPlatformViewRenderTarget()
io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.ImageReaderPlatformViewRenderTarget |
( |
ImageTextureEntry |
textureEntry | ) |
|
|
inline |
Definition at line 95 of file ImageReaderPlatformViewRenderTarget.java.
95 {
96 if (
Build.VERSION.SDK_INT < API_LEVELS.API_29) {
97 throw new UnsupportedOperationException(
98 "ImageReaderPlatformViewRenderTarget requires API version 29+");
99 }
100 this.textureEntry = textureEntry;
101 }
def Build(configs, env, options)
◆ createImageReader()
ImageReader io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.createImageReader |
( |
| ) |
|
|
inlineprotected |
Definition at line 85 of file ImageReaderPlatformViewRenderTarget.java.
85 {
86 if (
Build.VERSION.SDK_INT >= API_LEVELS.API_33) {
88 }
else if (
Build.VERSION.SDK_INT >= API_LEVELS.API_29) {
90 }
91 throw new UnsupportedOperationException(
92 "ImageReaderPlatformViewRenderTarget requires API version 29+");
93 }
◆ createImageReader29()
ImageReader io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.createImageReader29 |
( |
| ) |
|
|
inlineprotected |
Definition at line 73 of file ImageReaderPlatformViewRenderTarget.java.
73 {
74 final ImageReader reader =
75 ImageReader.newInstance(
76 bufferWidth,
77 bufferHeight,
78 ImageFormat.PRIVATE,
79 MAX_IMAGES,
80 HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE);
81 reader.setOnImageAvailableListener(this.onImageAvailableListener, onImageAvailableHandler);
82 return reader;
83 }
◆ createImageReader33()
ImageReader io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.createImageReader33 |
( |
| ) |
|
|
inlineprotected |
Definition at line 54 of file ImageReaderPlatformViewRenderTarget.java.
54 {
55 final ImageReader.Builder
builder =
new ImageReader.Builder(bufferWidth, bufferHeight);
56
57 builder.setMaxImages(MAX_IMAGES);
58
59
60
61
62
63
64 builder.setImageFormat(ImageFormat.PRIVATE);
65
66 builder.setUsage(HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE);
67 final ImageReader reader =
builder.build();
68 reader.setOnImageAvailableListener(this.onImageAvailableListener, onImageAvailableHandler);
69 return reader;
70 }
◆ getHeight()
int io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.getHeight |
( |
| ) |
|
|
inline |
◆ getId()
long io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.getId |
( |
| ) |
|
|
inline |
◆ getSurface()
Surface io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.getSurface |
( |
| ) |
|
|
inline |
◆ getWidth()
int io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.getWidth |
( |
| ) |
|
|
inline |
◆ isReleased()
boolean io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.isReleased |
( |
| ) |
|
|
inline |
◆ release()
void io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.release |
( |
| ) |
|
|
inline |
◆ resize()
void io.flutter.plugin.platform.ImageReaderPlatformViewRenderTarget.resize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: