Gjsify LogoGjsify Logo

Hierarchy

  • VideoFormatPack

Callable

  • Packs width pixels from src to the given planes and strides in the format info. The pixels from source have each component interleaved and will be packed into the planes in data.

    This function operates on pack_lines lines, meaning that src should contain at least pack_lines lines with a stride of sstride and y should be a multiple of pack_lines.

    Subsampled formats will use the horizontally and vertically cosited component from the source. Subsampling should be performed before packing.

    Because this function does not have a x coordinate, it is not possible to pack pixels starting from an unaligned position. For tiled images this means that packing should start from a tile coordinate. For subsampled formats this means that a complete pixel needs to be packed.

    Parameters

    • info: VideoFormatInfo

      a #GstVideoFormatInfo

    • flags: VideoPackFlags

      flags to control the packing

    • src: object

      a source array

    • sstride: number

      the source array stride

    • data: object

      pointers to the destination data planes

    • stride: number

      strides of the destination planes

    • chroma_site: VideoChromaSite

      the chroma siting of the target when subsampled (not used)

    • y: number

      the y position in the image to pack to

    • width: number

      the amount of pixels to pack.

    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