Package tvi.webrtc
Class EncodedImage
- java.lang.Object
-
- tvi.webrtc.EncodedImage
-
- All Implemented Interfaces:
RefCounted
public class EncodedImage extends java.lang.Object implements RefCounted
An encoded frame from a video stream. Used as an input for decoders and as an output for encoders.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEncodedImage.Builderstatic classEncodedImage.FrameType
-
Field Summary
Fields Modifier and Type Field Description java.nio.ByteBufferbufferlongcaptureTimeMslongcaptureTimeNsintencodedHeightintencodedWidthEncodedImage.FrameTypeframeTypejava.lang.Integerqpintrotation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EncodedImage.Builderbuilder()voidrelease()Decreases ref count by one.voidretain()Increases ref count by one.
-
-
-
Field Detail
-
buffer
public final java.nio.ByteBuffer buffer
-
encodedWidth
public final int encodedWidth
-
encodedHeight
public final int encodedHeight
-
captureTimeMs
public final long captureTimeMs
-
captureTimeNs
public final long captureTimeNs
-
frameType
public final EncodedImage.FrameType frameType
-
rotation
public final int rotation
-
qp
@Nullable public final java.lang.Integer qp
-
-
Method Detail
-
retain
public void retain()
Description copied from interface:RefCountedIncreases ref count by one.- Specified by:
retainin interfaceRefCounted
-
release
public void release()
Description copied from interface:RefCountedDecreases ref count by one. When the ref count reaches zero, resources related to the object will be freed.- Specified by:
releasein interfaceRefCounted
-
builder
public static EncodedImage.Builder builder()
-
-