Gjsify LogoGjsify Logo

Index

Enumerations

Classes

Interfaces

Variables

Functions

Variables

BASE_PARSE_FLAG_DRAINING: number
BASE_PARSE_FLAG_LOST_SYNC: number
BASE_TRANSFORM_SINK_NAME: string

The name of the templates for the sink pad.

BASE_TRANSFORM_SRC_NAME: string

The name of the templates for the source pad.

Functions

  • Tries to find what type of data is flowing from the given source #GstPad.

    Free-function: gst_caps_unref

    Parameters

    • src: Gst.Pad

      A source #GstPad

    • size: number

      The length in bytes

    Returns Gst.Caps | null

  • Tries to find what type of data is contained in the given #GstBuffer, the assumption being that the buffer represents the beginning of the stream or file.

    All available typefinders will be called on the data in order of rank. If a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, typefinding is stopped immediately and the found caps will be returned right away. Otherwise, all available typefind functions will the tried, and the caps with the highest probability will be returned, or %NULL if the content of the buffer could not be identified.

    Free-function: gst_caps_unref

    Parameters

    • obj: Gst.Object

      object doing the typefinding, or %NULL (used for logging)

    • buf: Gst.Buffer

      a #GstBuffer with data to typefind

    Returns [Gst.Caps | null, Gst.TypeFindProbability]

  • Tries to find what type of data is contained in the given #GstBuffer, the assumption being that the buffer represents the beginning of the stream or file.

    All available typefinders will be called on the data in order of rank. If a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, typefinding is stopped immediately and the found caps will be returned right away. Otherwise, all available typefind functions will the tried, and the caps with the highest probability will be returned, or %NULL if the content of the buffer could not be identified.

    When extension is not %NULL, this function will first try the typefind functions for the given extension, which might speed up the typefinding in many cases.

    Free-function: gst_caps_unref

    Parameters

    • obj: Gst.Object

      object doing the typefinding, or %NULL (used for logging)

    • buf: Gst.Buffer

      a #GstBuffer with data to typefind

    • extension: string

      extension of the media, or %NULL

    Returns [Gst.Caps | null, Gst.TypeFindProbability]

  • Tries to find what type of data is contained in the given data, the assumption being that the data represents the beginning of the stream or file.

    All available typefinders will be called on the data in order of rank. If a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, typefinding is stopped immediately and the found caps will be returned right away. Otherwise, all available typefind functions will the tried, and the caps with the highest probability will be returned, or %NULL if the content of data could not be identified.

    Free-function: gst_caps_unref

    Parameters

    • obj: Gst.Object

      object doing the typefinding, or %NULL (used for logging)

    • data: Uint8Array
      • a pointer with data to typefind

    Returns [Gst.Caps | null, Gst.TypeFindProbability]

  • Tries to find what type of data is contained in the given data, the assumption being that the data represents the beginning of the stream or file.

    All available typefinders will be called on the data in order of rank. If a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, typefinding is stopped immediately and the found caps will be returned right away. Otherwise, all available typefind functions will the tried, and the caps with the highest probability will be returned, or %NULL if the content of data could not be identified.

    When extension is not %NULL, this function will first try the typefind functions for the given extension, which might speed up the typefinding in many cases.

    Free-function: gst_caps_unref

    Parameters

    • obj: Gst.Object

      object doing the typefinding, or %NULL (used for logging)

    • data: Uint8Array
      • a pointer with data to typefind
    • extension: string

      extension of the media, or %NULL

    Returns [Gst.Caps | null, Gst.TypeFindProbability]

  • type_find_helper_for_extension(obj: Gst.Object, extension: string): Gst.Caps | null
  • Tries to find the best #GstCaps associated with extension.

    All available typefinders will be checked against the extension in order of rank. The caps of the first typefinder that can handle extension will be returned.

    Free-function: gst_caps_unref

    Parameters

    • obj: Gst.Object

      object doing the typefinding, or %NULL (used for logging)

    • extension: string

      an extension

    Returns Gst.Caps | null

  • Utility function to do pull-based typefinding. Unlike gst_type_find_helper() however, this function will use the specified function func to obtain the data needed by the typefind functions, rather than operating on a given source pad. This is useful mostly for elements like tag demuxers which strip off data at the beginning and/or end of a file and want to typefind the stripped data stream before adding their own source pad (the specified callback can then call the upstream peer pad with offsets adjusted for the tag size, for example).

    When extension is not %NULL, this function will first try the typefind functions for the given extension, which might speed up the typefinding in many cases.

    Free-function: gst_caps_unref

    Parameters

    • obj: Gst.Object

      A #GstObject that will be passed as first argument to func

    • parent: Gst.Object

      the parent of obj or %NULL

    • func: GstBase.TypeFindHelperGetRangeFunction

      A generic #GstTypeFindHelperGetRangeFunction that will be used to access data at random offsets when doing the typefinding

    • size: number

      The length in bytes

    • extension: string

      extension of the media, or %NULL

    Returns [Gst.Caps | null, Gst.TypeFindProbability]

  • Utility function to do pull-based typefinding. Unlike gst_type_find_helper() however, this function will use the specified function func to obtain the data needed by the typefind functions, rather than operating on a given source pad. This is useful mostly for elements like tag demuxers which strip off data at the beginning and/or end of a file and want to typefind the stripped data stream before adding their own source pad (the specified callback can then call the upstream peer pad with offsets adjusted for the tag size, for example).

    When extension is not %NULL, this function will first try the typefind functions for the given extension, which might speed up the typefinding in many cases.

    Parameters

    • obj: Gst.Object

      A #GstObject that will be passed as first argument to func

    • parent: Gst.Object

      the parent of obj or %NULL

    • func: GstBase.TypeFindHelperGetRangeFunction

      A generic #GstTypeFindHelperGetRangeFunction that will be used to access data at random offsets when doing the typefinding

    • size: number

      The length in bytes

    • extension: string

      extension of the media, or %NULL

    Returns [Gst.FlowReturn, Gst.Caps, Gst.TypeFindProbability]

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