Gjsify LogoGjsify Logo

#GstGLMemoryPBO is created or wrapped through gst_gl_base_memory_alloc() with #GstGLVideoAllocationParams.

Data is uploaded or downloaded from the GPU as is necessary.

record

Hierarchy

  • GLMemoryPBO

Index

Constructors

Properties

name: string

Methods

  • copy_into_texture(tex_id: number, target: GLTextureTarget, tex_format: GLFormat, width: number, height: number, stride: number, respecify: boolean): boolean
  • Copies gl_mem into the texture specified by tex_id. The format of tex_id is specified by tex_format, width and height.

    If respecify is %TRUE, then the copy is performed in terms of the texture data. This is useful for splitting RGBA textures into RG or R textures or vice versa. The requirement for this to succeed is that the backing texture data must be the same size, i.e. say a RGBA8 texture is converted into a RG8 texture, then the RG texture must have twice as many pixels available for output as the RGBA texture.

    Otherwise, if respecify is %FALSE, then the copy is performed per texel using glCopyTexImage. See the OpenGL specification for details on the mappings between texture formats.

    Parameters

    • tex_id: number

      the destination texture id

    • target: GLTextureTarget

      the destination #GstGLTextureTarget

    • tex_format: GLFormat

      the destination #GstGLFormat

    • width: number

      width of tex_id

    • height: number

      height of tex_id

    • stride: number

      stride of the backing texture data

    • respecify: boolean

      whether to copy the data or copy per texel

    Returns boolean

  • download_transfer(): void
  • upload_transfer(): void
  • init_once(): 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