-
- All Implemented Interfaces:
-
tvi.webrtc.RefCounted,tvi.webrtc.VideoFrame.Buffer
public class Rgba8888Buffer implements VideoFrame.BufferA frame buffer that represents an image in the ARGB format with 8 bits of of precision.
-
-
Field Summary
Fields Modifier and Type Field Description private final ByteBufferdataprivate final intwidthprivate final intheight
-
Constructor Summary
Constructors Constructor Description Rgba8888Buffer(ByteBuffer data, int width, int height)
-
Method Summary
Modifier and Type Method Description ByteBuffergetData()Returns the raw frame buffer data. intgetWidth()Returns the frame width. intgetHeight()Returns the frame height. VideoFrame.I420BuffertoI420()Converts the buffer to a tvi.webrtc.VideoFrame.I420Buffer. voidretain()voidrelease()VideoFrame.BuffercropAndScale(int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight)-
-
Constructor Detail
-
Rgba8888Buffer
Rgba8888Buffer(ByteBuffer data, int width, int height)
-
-
Method Detail
-
getData
ByteBuffer getData()
Returns the raw frame buffer data.
-
getWidth
int getWidth()
Returns the frame width.
-
getHeight
int getHeight()
Returns the frame height.
-
toI420
VideoFrame.I420Buffer toI420()
Converts the buffer to a tvi.webrtc.VideoFrame.I420Buffer.
-
retain
void retain()
-
release
void release()
-
cropAndScale
VideoFrame.Buffer cropAndScale(int cropX, int cropY, int cropWidth, int cropHeight, int scaleWidth, int scaleHeight)
-
-
-
-