image

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package image is methods and camera settings to produce photographic image capture.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstrainPoint2DParameters

type ConstrainPoint2DParameters struct {
	Exact []*mediatype.Point2D
	Ideal []*mediatype.Point2D
}

dictionary: ConstrainPoint2DParameters

func ConstrainPoint2DParametersFromJS

func ConstrainPoint2DParametersFromJS(value js.Value) *ConstrainPoint2DParameters

ConstrainPoint2DParametersFromJS is allocating a new ConstrainPoint2DParameters object and copy all values in the value javascript object.

func (*ConstrainPoint2DParameters) JSValue

func (_this *ConstrainPoint2DParameters) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type FillLightMode

type FillLightMode int

enum: FillLightMode

const (
	AutoFillLightMode FillLightMode = iota
	OffFillLightMode
	FlashFillLightMode
)

func FillLightModeFromJS

func FillLightModeFromJS(value js.Value) FillLightMode

FillLightModeFromJS is converting a javascript value into a FillLightMode enum value.

func (*FillLightMode) JSValue

func (this *FillLightMode) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (FillLightMode) Value

func (this FillLightMode) Value() string

Value is converting this into javascript defined string value

type ImageCapture

type ImageCapture struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: ImageCapture

func ImageCaptureFromJS

func ImageCaptureFromJS(value js.Value) *ImageCapture

ImageCaptureFromJS is casting a js.Value into ImageCapture.

func ImageCaptureFromWrapper

func ImageCaptureFromWrapper(input core.Wrapper) *ImageCapture

ImageCaptureFromJS is casting from something that holds a js.Value into ImageCapture.

func NewImageCapture

func NewImageCapture(videoTrack *local.MediaStreamTrack) (_result *ImageCapture)

func (*ImageCapture) GetPhotoCapabilities

func (_this *ImageCapture) GetPhotoCapabilities() (_result *PromisePhotoCapabilities)

func (*ImageCapture) GetPhotoSettings

func (_this *ImageCapture) GetPhotoSettings() (_result *PromisePhotoSettings)

func (*ImageCapture) GrabFrame

func (_this *ImageCapture) GrabFrame() (_result *canvas.PromiseImageBitmap)

func (*ImageCapture) JSValue

func (_this *ImageCapture) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*ImageCapture) TakePhoto

func (_this *ImageCapture) TakePhoto(photoSettings *PhotoSettings) (_result *file.PromiseBlob)

func (*ImageCapture) Track

func (_this *ImageCapture) Track() *local.MediaStreamTrack

Track returning attribute 'track' with type local.MediaStreamTrack (idl: MediaStreamTrack).

type PhotoCapabilities

type PhotoCapabilities struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PhotoCapabilities

func PhotoCapabilitiesFromJS

func PhotoCapabilitiesFromJS(value js.Value) *PhotoCapabilities

PhotoCapabilitiesFromJS is casting a js.Value into PhotoCapabilities.

func PhotoCapabilitiesFromWrapper

func PhotoCapabilitiesFromWrapper(input core.Wrapper) *PhotoCapabilities

PhotoCapabilitiesFromJS is casting from something that holds a js.Value into PhotoCapabilities.

func (*PhotoCapabilities) FillLightMode

func (_this *PhotoCapabilities) FillLightMode() *javascript.FrozenArray

FillLightMode returning attribute 'fillLightMode' with type javascript.FrozenArray (idl: FrozenArray).

func (*PhotoCapabilities) ImageHeight

func (_this *PhotoCapabilities) ImageHeight() *mediatype.MediaSettingsRange

ImageHeight returning attribute 'imageHeight' with type mediatype.MediaSettingsRange (idl: MediaSettingsRange).

func (*PhotoCapabilities) ImageWidth

func (_this *PhotoCapabilities) ImageWidth() *mediatype.MediaSettingsRange

ImageWidth returning attribute 'imageWidth' with type mediatype.MediaSettingsRange (idl: MediaSettingsRange).

func (*PhotoCapabilities) JSValue

func (_this *PhotoCapabilities) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PhotoCapabilities) RedEyeReduction

func (_this *PhotoCapabilities) RedEyeReduction() RedEyeReduction

RedEyeReduction returning attribute 'redEyeReduction' with type RedEyeReduction (idl: RedEyeReduction).

type PhotoSettings

type PhotoSettings struct {
	FillLightMode   FillLightMode
	ImageHeight     float64
	ImageWidth      float64
	RedEyeReduction bool
}

dictionary: PhotoSettings

func PhotoSettingsFromJS

func PhotoSettingsFromJS(value js.Value) *PhotoSettings

PhotoSettingsFromJS is allocating a new PhotoSettings object and copy all values in the value javascript object.

func (*PhotoSettings) JSValue

func (_this *PhotoSettings) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type PromisePhotoCapabilities

type PromisePhotoCapabilities struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromisePhotoCapabilitiesFromJS

func PromisePhotoCapabilitiesFromJS(value js.Value) *PromisePhotoCapabilities

PromisePhotoCapabilitiesFromJS is casting a js.Value into PromisePhotoCapabilities.

func PromisePhotoCapabilitiesFromWrapper

func PromisePhotoCapabilitiesFromWrapper(input core.Wrapper) *PromisePhotoCapabilities

PromisePhotoCapabilitiesFromJS is casting from something that holds a js.Value into PromisePhotoCapabilities.

func (*PromisePhotoCapabilities) Catch

func (*PromisePhotoCapabilities) Finally

func (_this *PromisePhotoCapabilities) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePhotoCapabilities)

func (*PromisePhotoCapabilities) JSValue

func (_this *PromisePhotoCapabilities) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromisePhotoCapabilities) Then

type PromisePhotoCapabilitiesOnFulfilled

type PromisePhotoCapabilitiesOnFulfilled js.Func

PromisePhotoCapabilitiesOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromisePhotoCapabilitiesOnFulfilledFunc

type PromisePhotoCapabilitiesOnFulfilledFunc func(value *PhotoCapabilities)

callback: PromiseTemplateOnFulfilled

func PromisePhotoCapabilitiesOnFulfilledFromJS

func PromisePhotoCapabilitiesOnFulfilledFromJS(_value js.Value) PromisePhotoCapabilitiesOnFulfilledFunc

type PromisePhotoCapabilitiesOnRejected

type PromisePhotoCapabilitiesOnRejected js.Func

PromisePhotoCapabilitiesOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromisePhotoCapabilitiesOnRejectedFunc

type PromisePhotoCapabilitiesOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePhotoCapabilitiesOnRejectedFromJS

func PromisePhotoCapabilitiesOnRejectedFromJS(_value js.Value) PromisePhotoCapabilitiesOnRejectedFunc

type PromisePhotoSettings

type PromisePhotoSettings struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Promise

func PromisePhotoSettingsFromJS

func PromisePhotoSettingsFromJS(value js.Value) *PromisePhotoSettings

PromisePhotoSettingsFromJS is casting a js.Value into PromisePhotoSettings.

func PromisePhotoSettingsFromWrapper

func PromisePhotoSettingsFromWrapper(input core.Wrapper) *PromisePhotoSettings

PromisePhotoSettingsFromJS is casting from something that holds a js.Value into PromisePhotoSettings.

func (*PromisePhotoSettings) Catch

func (_this *PromisePhotoSettings) Catch(onRejected *PromisePhotoSettingsOnRejected) (_result *PromisePhotoSettings)

func (*PromisePhotoSettings) Finally

func (_this *PromisePhotoSettings) Finally(onFinally *javascript.PromiseFinally) (_result *PromisePhotoSettings)

func (*PromisePhotoSettings) JSValue

func (_this *PromisePhotoSettings) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PromisePhotoSettings) Then

type PromisePhotoSettingsOnFulfilled

type PromisePhotoSettingsOnFulfilled js.Func

PromisePhotoSettingsOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromisePhotoSettingsOnFulfilledFunc

type PromisePhotoSettingsOnFulfilledFunc func(value *PhotoSettings)

callback: PromiseTemplateOnFulfilled

func PromisePhotoSettingsOnFulfilledFromJS

func PromisePhotoSettingsOnFulfilledFromJS(_value js.Value) PromisePhotoSettingsOnFulfilledFunc

type PromisePhotoSettingsOnRejected

type PromisePhotoSettingsOnRejected js.Func

PromisePhotoSettingsOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type PromisePhotoSettingsOnRejectedFunc

type PromisePhotoSettingsOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromisePhotoSettingsOnRejectedFromJS

func PromisePhotoSettingsOnRejectedFromJS(_value js.Value) PromisePhotoSettingsOnRejectedFunc

type RedEyeReduction

type RedEyeReduction int

enum: RedEyeReduction

const (
	NeverRedEyeReduction RedEyeReduction = iota
	AlwaysRedEyeReduction
	ControllableRedEyeReduction
)

func RedEyeReductionFromJS

func RedEyeReductionFromJS(value js.Value) RedEyeReduction

RedEyeReductionFromJS is converting a javascript value into a RedEyeReduction enum value.

func (*RedEyeReduction) JSValue

func (this *RedEyeReduction) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (RedEyeReduction) Value

func (this RedEyeReduction) Value() string

Value is converting this into javascript defined string value

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

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