Gjsify LogoGjsify Logo

A #GstVideoCodecFrame represents a video frame both in raw and encoded form.

record

Hierarchy

  • VideoCodecFrame

Index

Constructors

Properties

deadline: number

Running time when the frame will be used.

field
distanceFromSync: number

Distance in frames from the last synchronization point.

field
dts: number

Decoding timestamp

field
duration: number

Duration of the frame

field
inputBuffer: Gst.Buffer

the input #GstBuffer that created this frame. The buffer is owned by the frame and references to the frame instead of the buffer should be kept.

field
outputBuffer: Gst.Buffer

the output #GstBuffer. Implementations should set this either directly, or by using the gst_video_decoder_allocate_output_frame() or gst_video_decoder_allocate_output_buffer() methods. The buffer is owned by the frame and references to the frame instead of the buffer should be kept.

field
pts: number

Presentation timestamp

field
systemFrameNumber: number

Unique identifier for the frame. Use this if you need to get hold of the frame later (like when data is being decoded). Typical usage in decoders is to set this on the opaque value provided to the library and get back the frame using gst_video_decoder_get_frame()

field
name: string

Methods

  • getUserData(): object
  • Gets private data set on the frame by the subclass via gst_video_codec_frame_set_user_data() previously.

    Returns object

  • Sets user_data on the frame and the #GDestroyNotify that will be called when the frame is freed. Allows to attach private data by the subclass to frames.

    If a user_data was previously set, then the previous set notify will be called before the user_data is replaced.

    Parameters

    Returns void

  • unref(): void
  • Decreases the refcount of the frame. If the refcount reaches 0, the frame will be freed.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method