CameraServer

package
v0.0.0-...-e9402f6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package CameraServer provides methods for working with CameraServer object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFeed

func AddFeed(feed [1]gdclass.CameraFeed)

Adds the camera [param feed] to the camera server.

func Advanced

func Advanced() class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

func Feeds

func Feeds() [][1]gdclass.CameraFeed

Returns an array of [CameraFeed]s.

func GetFeed

func GetFeed(index int) [1]gdclass.CameraFeed

Returns the [CameraFeed] corresponding to the camera with the given [param index].

func GetFeedCount

func GetFeedCount() int

Returns the number of [CameraFeed]s registered.

func OnCameraFeedAdded

func OnCameraFeedAdded(cb func(id int))

func OnCameraFeedRemoved

func OnCameraFeedRemoved(cb func(id int))

func RemoveFeed

func RemoveFeed(feed [1]gdclass.CameraFeed)

Removes the specified camera [param feed].

Types

type FeedImage

type FeedImage = gdclass.CameraServerFeedImage //gd:CameraServer.FeedImage
const (
	/*The RGBA camera image.*/
	FeedRgbaImage FeedImage = 0
	/*The [url=https://en.wikipedia.org/wiki/YCbCr]YCbCr[/url] camera image.*/
	FeedYcbcrImage FeedImage = 0
	/*The Y component camera image.*/
	FeedYImage FeedImage = 0
	/*The CbCr component camera image.*/
	FeedCbcrImage FeedImage = 1
)

Jump to

Keyboard shortcuts

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