public class

ByteBufferGlEffect.Image

extends java.lang.Object

 java.lang.Object

↳androidx.media3.effect.ByteBufferGlEffect.Image

Overview

A class that represents image data is backed by a java.nio.ByteBuffer.

Summary

Fields
public final intheight

public final java.nio.ByteBufferpixelBuffer

public final intwidth

Methods
public BitmapcopyToBitmap()

Returns a Bitmap that contains a copy of the pixel buffer.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final int width

public final int height

public final java.nio.ByteBuffer pixelBuffer

Methods

public Bitmap copyToBitmap()

Returns a Bitmap that contains a copy of the pixel buffer.

The returned Bitmap has config .

This method copies the pixel data and is less efficient than accessing the pixel buffer directly.