Function

GstVideo-1.0GstVideovideo_format_from_masks

  • Find the GstVideo.VideoFormat for the given parameters.

    Parameters

    • depth: number

      the amount of bits used for a pixel

    • bpp: number

      the amount of bits used to store a pixel. This value is bigger than depth

    • endianness: number

      the endianness of the masks, #G_LITTLE_ENDIAN or #G_BIG_ENDIAN

    • red_mask: number

      the red mask

    • green_mask: number

      the green mask

    • blue_mask: number

      the blue mask

    • alpha_mask: number

      the alpha mask, or 0 if no alpha mask

    Returns GstVideo.VideoFormat

    a GstVideo.VideoFormat or GST_VIDEO_FORMAT_UNKNOWN when the parameters to not specify a known format.