-
- All Superinterfaces:
dev.onvoid.webrtc.internal.RefCounted,VideoFrameBuffer
- All Known Implementing Classes:
NativeI420Buffer
public interface I420Buffer extends VideoFrameBuffer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuffergetDataU()Returns a direct ByteBuffer containing U-plane data.ByteBuffergetDataV()Returns a direct ByteBuffer containing V-plane data.ByteBuffergetDataY()Returns a direct ByteBuffer containing Y-plane data.intgetStrideU()intgetStrideV()intgetStrideY()-
Methods inherited from interface dev.onvoid.webrtc.media.video.VideoFrameBuffer
cropAndScale, getHeight, getWidth, toI420
-
-
-
-
Method Detail
-
getDataY
ByteBuffer getDataY()
Returns a direct ByteBuffer containing Y-plane data. The buffer capacity is at least getStrideY() * getHeight() bytes. The position of the returned buffer is ignored and must be 0. Callers may mutate the ByteBuffer (eg. through relative-read operations), so implementations must return a new ByteBuffer or slice for each call.
-
getDataU
ByteBuffer getDataU()
Returns a direct ByteBuffer containing U-plane data. The buffer capacity is at least getStrideU() * ((getHeight() + 1) / 2) bytes. The position of the returned buffer is ignored and must be 0. Callers may mutate the ByteBuffer (eg. through relative-read operations), so implementations must return a new ByteBuffer or slice for each call.
-
getDataV
ByteBuffer getDataV()
Returns a direct ByteBuffer containing V-plane data. The buffer capacity is at least getStrideV() * ((getHeight() + 1) / 2) bytes. The position of the returned buffer is ignored and must be 0. Callers may mutate the ByteBuffer (eg. through relative-read operations), so implementations must return a new ByteBuffer or slice for each call.
-
getStrideY
int getStrideY()
-
getStrideU
int getStrideU()
-
getStrideV
int getStrideV()
-
-