- java.lang.Object
-
- dev.onvoid.webrtc.media.video.desktop.DesktopFrame
-
public class DesktopFrame extends Object
-
-
Field Summary
Fields Modifier and Type Field Description ByteBufferbufferThe underlying frame buffer.RectangleframeRectThe rectangle in full desktop coordinates.DimensionframeSizeThe size of the frame in full desktop coordinate space.floatscaleThe scale factor from DIPs to physical pixels of the frame.intstrideDistance in the buffer between two neighboring rows in bytes.
-
Constructor Summary
Constructors Constructor Description DesktopFrame(Rectangle frameRect, Dimension frameSize, float scale, int stride, ByteBuffer buffer)
-
-
-
Field Detail
-
frameRect
public final Rectangle frameRect
The rectangle in full desktop coordinates.
-
frameSize
public final Dimension frameSize
The size of the frame in full desktop coordinate space.
-
scale
public final float scale
The scale factor from DIPs to physical pixels of the frame.
-
stride
public final int stride
Distance in the buffer between two neighboring rows in bytes.
-
buffer
public final ByteBuffer buffer
The underlying frame buffer.
-
-
Constructor Detail
-
DesktopFrame
public DesktopFrame(Rectangle frameRect, Dimension frameSize, float scale, int stride, ByteBuffer buffer)
-
-