Package tvi.webrtc

Class EncodedImage

java.lang.Object
tvi.webrtc.EncodedImage
All Implemented Interfaces:
RefCounted

public class EncodedImage extends Object implements RefCounted
An encoded frame from a video stream. Used as an input for decoders and as an output for encoders.
  • Field Details

    • buffer

      public final 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 Integer qp
  • Method Details

    • retain

      public void retain()
      Description copied from interface: RefCounted
      Increases ref count by one.
      Specified by:
      retain in interface RefCounted
    • release

      public void release()
      Description copied from interface: RefCounted
      Decreases ref count by one. When the ref count reaches zero, resources related to the object will be freed.
      Specified by:
      release in interface RefCounted
    • builder

      public static EncodedImage.Builder builder()