CameraFeed

package
v0.0.0-...-546f9d4 Latest Latest
Warning

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

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

Documentation

Overview

Package CameraFeed provides methods for working with CameraFeed object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

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

type Any

type Any interface {
	gd.IsClass
	AsCameraFeed() Instance
}

type FeedDataType

type FeedDataType = gdclass.CameraFeedFeedDataType //gd:CameraFeed.FeedDataType
const (
	/*No image set for the feed.*/
	FeedNoimage FeedDataType = 0
	/*Feed supplies RGB images.*/
	FeedRgb FeedDataType = 1
	/*Feed supplies YCbCr images that need to be converted to RGB.*/
	FeedYcbcr FeedDataType = 2
	/*Feed supplies separate Y and CbCr images that need to be combined and converted to RGB.*/
	FeedYcbcrSep FeedDataType = 3
)

type FeedPosition

type FeedPosition = gdclass.CameraFeedFeedPosition //gd:CameraFeed.FeedPosition
const (
	/*Unspecified position.*/
	FeedUnspecified FeedPosition = 0
	/*Camera is mounted at the front of the device.*/
	FeedFront FeedPosition = 1
	/*Camera is mounted at the back of the device.*/
	FeedBack FeedPosition = 2
)

type Instance

type Instance [1]gdclass.CameraFeed

A camera feed gives you access to a single physical camera attached to your device. When enabled, Godot will start capturing frames from the camera which can then be used. See also [CameraServer]. [b]Note:[/b] Many cameras will return YCbCr images which are split into two textures and need to be combined in a shader. Godot does this automatically for you if you set the environment to show the camera image in the background.

var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsCameraFeed

func (self Instance) AsCameraFeed() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) FeedIsActive

func (self Instance) FeedIsActive() bool

func (Instance) FeedTransform

func (self Instance) FeedTransform() Transform2D.OriginXY

func (Instance) GetDatatype

func (self Instance) GetDatatype() gdclass.CameraFeedFeedDataType

Returns feed image data type.

func (Instance) GetId

func (self Instance) GetId() int

Returns the unique ID for this feed.

func (Instance) GetName

func (self Instance) GetName() string

Returns the camera's name.

func (Instance) GetPosition

func (self Instance) GetPosition() gdclass.CameraFeedFeedPosition

Returns the position of camera on the device.

func (Instance) SetFeedIsActive

func (self Instance) SetFeedIsActive(value bool)

func (Instance) SetFeedTransform

func (self Instance) SetFeedTransform(value Transform2D.OriginXY)

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

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