Package tvi.webrtc
Interface VideoFrame.I420Buffer
-
- All Superinterfaces:
RefCounted
,VideoFrame.Buffer
- All Known Implementing Classes:
JavaI420Buffer
- Enclosing class:
- VideoFrame
public static interface VideoFrame.I420Buffer extends VideoFrame.Buffer
Interface for I420 buffers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.nio.ByteBuffer
getDataU()
Returns a direct ByteBuffer containing U-plane data.java.nio.ByteBuffer
getDataV()
Returns a direct ByteBuffer containing V-plane data.java.nio.ByteBuffer
getDataY()
Returns a direct ByteBuffer containing Y-plane data.int
getStrideU()
int
getStrideV()
int
getStrideY()
-
Methods inherited from interface tvi.webrtc.VideoFrame.Buffer
cropAndScale, getHeight, getWidth, release, retain, toI420
-
-
-
-
Method Detail
-
getDataY
java.nio.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
java.nio.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
java.nio.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()
-
-