Class (GI Struct)

GstVideo-1.0GstVideoVideoFormatInfo

Information for a video format.

Index

Constructors

Properties

bits: number
depth: number[]
description: string
h_sub: number[]
n_components: number
n_planes: number
name: string
pack_func: VideoFormatPack
pack_lines: number
pixel_stride: number[]
plane: number[]
poffset: number[]
shift: number[]
tile_hs: number
tile_info: VideoTileInfo[]
tile_ws: number
unpack_format: GstVideo.VideoFormat
unpack_func: VideoFormatUnpack
w_sub: number[]

Methods

  • Fill components with the number of all the components packed in plane p for the format info. A value of -1 in components indicates that no more components are packed in the plane.

    Parameters

    • plane: number

      a plane number

    Returns number

  • Extrapolate plane stride from the first stride of an image. This helper is useful to support legacy API were only one stride is supported.

    Parameters

    • plane: number

      a plane number

    • stride: number

      The fist plane stride

    Returns number

    The extrapolated stride for plane