gstglegl

package
v0.0.0-...-ccbbe8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GL_DISPLAY_EGL_NAME = "gst.gl.display.egl"
View Source
const GL_MEMORY_EGL_ALLOCATOR_NAME = "GLMemoryEGL"

GL_MEMORY_EGL_ALLOCATOR_NAME: name of the GL Memory EGL allocator.

Variables

View Source
var (
	GTypeGLMemoryEGLAllocator = coreglib.Type(C.gst_gl_memory_egl_allocator_get_type())
	GTypeGLMemoryEGL          = coreglib.Type(C.gst_gl_memory_egl_get_type())
)

GType values.

View Source
var (
	GTypeEGLImage = coreglib.Type(C.gst_egl_image_get_type())
)

GType values.

View Source
var (
	GTypeGLDisplayEGL = coreglib.Type(C.gst_gl_display_egl_get_type())
)

GType values.

View Source
var (
	GTypeGLDisplayEGLDevice = coreglib.Type(C.gst_gl_display_egl_device_get_type())
)

GType values.

Functions

func EglGetErrorString

func EglGetErrorString(err int32) string

The function takes the following parameters:

  • err: EGL error code.

The function returns the following values:

  • utf8: short string representation of err.

func GLDisplayEGLGetFromNative

func GLDisplayEGLGetFromNative(typ gstgl.GLDisplayType, display uintptr) unsafe.Pointer

GLDisplayEGLGetFromNative attempts to create a new EGLDisplay from display. If type is GST_GL_DISPLAY_TYPE_ANY, then display must be 0. type must not be GST_GL_DISPLAY_TYPE_NONE.

The function takes the following parameters:

  • typ: GLDisplayType.
  • display: pointer to a display (or 0).

The function returns the following values:

  • gpointer (optional): EGLDisplay or EGL_NO_DISPLAY.

func GLMemoryEGLInitOnce

func GLMemoryEGLInitOnce()

GLMemoryEGLInitOnce initializes the GL Memory allocator. It is safe to call this function multiple times. This must be called before any other GstGLMemoryEGL operation.

func IsGLMemoryEgl

func IsGLMemoryEgl(mem *gst.Memory) bool

The function takes the following parameters:

  • mem to test.

The function returns the following values:

  • ok: whether mem is a GLMemoryEGL.

Types

type EGLImage

type EGLImage struct {
	// contains filtered or unexported fields
}

EGLImage represents and holds an EGLImage handle.

A EGLImage can be created from a dmabuf with gst_egl_image_from_dmabuf(), or gst_egl_image_from_dmabuf_direct(), or GLMemoryEGL provides a Allocator to allocate EGLImage's bound to and OpenGL texture.

An instance of this type is always passed by reference.

func EGLImageFromTexture

func EGLImageFromTexture(context gstgl.GLContexter, glMem *gstgl.GLMemory, attribs *uintptr) *EGLImage

The function takes the following parameters:

  • context (must be an EGL context).
  • glMem: GLMemory.
  • attribs: additional attributes to add to the eglCreateImage() call.

The function returns the following values:

  • eglImage wrapping gl_mem or NULL on failure.

func (*EGLImage) Image

func (image *EGLImage) Image() unsafe.Pointer

The function returns the following values:

  • gpointer (optional): EGLImage of image.

type GLDisplayEGL

type GLDisplayEGL struct {
	gstgl.GLDisplay
	// contains filtered or unexported fields
}

GLDisplayEGL contents of a GLDisplayEGL are private and should only be accessed through the provided API.

func GLDisplayEGLFromGLDisplay

func GLDisplayEGLFromGLDisplay(display *gstgl.GLDisplay) *GLDisplayEGL

GLDisplayEGLFromGLDisplay creates a EGL display connection from a native Display.

This function will return the same value for multiple calls with the same display.

The function takes the following parameters:

  • display: existing GLDisplay.

The function returns the following values:

  • glDisplayEGL: new GLDisplayEGL.

func NewGLDisplayEGL

func NewGLDisplayEGL() *GLDisplayEGL

NewGLDisplayEGL: create a new GLDisplayEGL using the default EGL_DEFAULT_DISPLAY.

The function returns the following values:

  • glDisplayEGL: new GLDisplayEGL or NULL.

func NewGLDisplayEGLWithEglDisplay

func NewGLDisplayEGLWithEglDisplay(display unsafe.Pointer) *GLDisplayEGL

The function takes the following parameters:

The function returns the following values:

type GLDisplayEGLClass

type GLDisplayEGLClass struct {
	// contains filtered or unexported fields
}

GLDisplayEGLClass: instance of this type is always passed by reference.

func (*GLDisplayEGLClass) ObjectClass

func (g *GLDisplayEGLClass) ObjectClass() *gstgl.GLDisplayClass

func (*GLDisplayEGLClass) Padding

func (g *GLDisplayEGLClass) Padding() [4]unsafe.Pointer

type GLDisplayEGLDevice

type GLDisplayEGLDevice struct {
	gstgl.GLDisplay
	// contains filtered or unexported fields
}

GLDisplayEGLDevice contents of a GLDisplayEGLDevice are private and should only be accessed through the provided API.

func NewGLDisplayEGLDevice

func NewGLDisplayEGLDevice(deviceIndex uint) *GLDisplayEGLDevice

NewGLDisplayEGLDevice: create a new GLDisplayEGLDevice with an EGLDevice supported device.

The function takes the following parameters:

  • deviceIndex: index of device to use.

The function returns the following values:

  • glDisplayEGLDevice: new GLDisplayEGLDevice or NULL.

func NewGLDisplayEGLDeviceWithEglDevice

func NewGLDisplayEGLDeviceWithEglDevice(device unsafe.Pointer) *GLDisplayEGLDevice

NewGLDisplayEGLDeviceWithEglDevice creates a new GLDisplayEGLDevice with EGLDeviceEXT . The device must be created using EGLDevice enumeration.

The function takes the following parameters:

  • device (optional): existing EGLDeviceEXT.

The function returns the following values:

  • glDisplayEGLDevice: new GLDisplayEGLDevice.

type GLDisplayEGLDeviceClass

type GLDisplayEGLDeviceClass struct {
	// contains filtered or unexported fields
}

GLDisplayEGLDeviceClass: opaque GLDisplayEGLDeviceClass struct

An instance of this type is always passed by reference.

func (*GLDisplayEGLDeviceClass) ObjectClass

func (g *GLDisplayEGLDeviceClass) ObjectClass() *gstgl.GLDisplayClass

func (*GLDisplayEGLDeviceClass) Padding

func (g *GLDisplayEGLDeviceClass) Padding() [4]unsafe.Pointer

type GLDisplayEGLDeviceOverrides

type GLDisplayEGLDeviceOverrides struct {
}

GLDisplayEGLDeviceOverrides contains methods that are overridable.

type GLDisplayEGLOverrides

type GLDisplayEGLOverrides struct {
}

GLDisplayEGLOverrides contains methods that are overridable.

type GLMemoryEGL

type GLMemoryEGL struct {
	// contains filtered or unexported fields
}

GLMemoryEGL is created or wrapped through gst_gl_base_memory_alloc() with GLVideoAllocationParams.

An instance of this type is always passed by reference.

func (*GLMemoryEGL) Display

func (mem *GLMemoryEGL) Display() unsafe.Pointer

The function returns the following values:

  • gpointer (optional): EGLDisplay mem is associated with.

func (*GLMemoryEGL) Image

func (mem *GLMemoryEGL) Image() unsafe.Pointer

The function returns the following values:

  • gpointer (optional): EGLImage held by mem.

type GLMemoryEGLAllocator

type GLMemoryEGLAllocator struct {
	gstgl.GLMemoryAllocator
	// contains filtered or unexported fields
}

GLMemoryEGLAllocator: opaque GLMemoryEGLAllocator struct.

type GLMemoryEGLAllocatorClass

type GLMemoryEGLAllocatorClass struct {
	// contains filtered or unexported fields
}

GLMemoryEGLAllocatorClass only contains private data

An instance of this type is always passed by reference.

type GLMemoryEGLAllocatorOverrides

type GLMemoryEGLAllocatorOverrides struct {
}

GLMemoryEGLAllocatorOverrides contains methods that are overridable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL