Gjsify LogoGjsify Logo

#GstVideoScaler is a utility object for rescaling and resampling video frames using various interpolation / sampling methods.

record

Hierarchy

  • VideoScaler

Index

Constructors

Properties

name: string

Methods

  • TODO_2d(vscale: VideoScaler, format: GstVideo.VideoFormat, src: object, src_stride: number, dest: object, dest_stride: number, x: number, y: number, width: number, height: number): void
  • Scale a rectangle of pixels in src with src_stride to dest with dest_stride using the horizontal scaler hscaler and the vertical scaler vscale.

    One or both of hscale and vscale can be NULL to only perform scaling in one dimension or do a copy without scaling.

    x and y are the coordinates in the destination image to process.

    Parameters

    • vscale: VideoScaler

      a vertical #GstVideoScaler

    • format: GstVideo.VideoFormat

      a #GstVideoFormat for srcs and dest

    • src: object

      source pixels

    • src_stride: number

      source pixels stride

    • dest: object

      destination pixels

    • dest_stride: number

      destination pixels stride

    • x: number

      the horizontal destination offset

    • y: number

      the vertical destination offset

    • width: number

      the number of output pixels to scale

    • height: number

      the number of output lines to scale

    Returns void

  • free(): void
  • get_coeff(out_offset: number): [number, number, number]
  • For a given pixel at out_offset, get the first required input pixel at in_offset and the n_taps filter coefficients.

    Note that for interlaced content, in_offset needs to be incremented with 2 to get the next input line.

    Parameters

    • out_offset: number

      an output offset

    Returns [number, number, number]

  • get_max_taps(): number
  • horizontal(format: GstVideo.VideoFormat, src: object, dest: object, dest_offset: number, width: number): void
  • Horizontally scale the pixels in src to dest, starting from dest_offset for width samples.

    Parameters

    • format: GstVideo.VideoFormat

      a #GstVideoFormat for src and dest

    • src: object

      source pixels

    • dest: object

      destination pixels

    • dest_offset: number

      the horizontal destination offset

    • width: number

      the number of pixels to scale

    Returns void

  • vertical(format: GstVideo.VideoFormat, src_lines: object, dest: object, dest_offset: number, width: number): void
  • Vertically combine width pixels in the lines in src_lines to dest. dest is the location of the target line at dest_offset and srcs are the input lines for dest_offset.

    Parameters

    • format: GstVideo.VideoFormat

      a #GstVideoFormat for srcs and dest

    • src_lines: object

      source pixels lines

    • dest: object

      destination pixels

    • dest_offset: number

      the vertical destination offset

    • width: number

      the number of pixels to scale

    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