Package org.webrtc
Class EncodedImage
java.lang.Object
org.webrtc.EncodedImage
- All Implemented Interfaces:
RefCounted
An encoded frame from a video stream. Used as an input for decoders and as an output for
encoders.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ByteBufferfinal longfinal longfinal intfinal intfinal EncodedImage.FrameTypefinal Integerprivate final RefCountDelegatefinal int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEncodedImage(ByteBuffer buffer, Runnable releaseCallback, int encodedWidth, int encodedHeight, long captureTimeNs, EncodedImage.FrameType frameType, int rotation, Integer qp) -
Method Summary
Modifier and TypeMethodDescriptionstatic EncodedImage.Builderbuilder()private ByteBufferprivate longprivate intprivate intprivate intprivate IntegergetQp()private intvoidrelease()Decreases ref count by one.voidretain()Increases ref count by one.
-
Field Details
-
refCountDelegate
-
buffer
-
encodedWidth
public final int encodedWidth -
encodedHeight
public final int encodedHeight -
captureTimeMs
public final long captureTimeMs -
captureTimeNs
public final long captureTimeNs -
frameType
-
rotation
public final int rotation -
qp
-
-
Constructor Details
-
EncodedImage
private EncodedImage(ByteBuffer buffer, @Nullable Runnable releaseCallback, int encodedWidth, int encodedHeight, long captureTimeNs, EncodedImage.FrameType frameType, int rotation, @Nullable Integer qp)
-
-
Method Details
-
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
-
getBuffer
-
getEncodedWidth
private int getEncodedWidth() -
getEncodedHeight
private int getEncodedHeight() -
getCaptureTimeNs
private long getCaptureTimeNs() -
getFrameType
private int getFrameType() -
getRotation
private int getRotation() -
getQp
-
builder
-