Gjsify LogoGjsify Logo

Hierarchy

  • VideoFormatUnpack

Callable

  • VideoFormatUnpack(info: VideoFormatInfo, flags: VideoPackFlags, dest: object, data: object, stride: number, x: number, y: number, width: number): void
  • Unpacks width pixels from the given planes and strides containing data of format info. The pixels will be unpacked into dest with each component interleaved as per info's unpack_format, which will usually be one of #GST_VIDEO_FORMAT_ARGB, #GST_VIDEO_FORMAT_AYUV, #GST_VIDEO_FORMAT_ARGB64 or #GST_VIDEO_FORMAT_AYUV64 depending on the format to unpack. dest should at least be big enough to hold width * bytes_per_pixel bytes where bytes_per_pixel relates to the unpack format and will usually be either 4 or 8 depending on the unpack format. bytes_per_pixel will be the same as the pixel stride for plane 0 for the above formats.

    For subsampled formats, the components will be duplicated in the destination array. Reconstruction of the missing components can be performed in a separate step after unpacking.

    Parameters

    • info: VideoFormatInfo

      a #GstVideoFormatInfo

    • flags: VideoPackFlags

      flags to control the unpacking

    • dest: object

      a destination array

    • data: object

      pointers to the data planes

    • stride: number

      strides of the planes

    • x: number

      the x position in the image to start from

    • y: number

      the y position in the image to start from

    • width: number

      the amount of pixels to unpack.

    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