outputduplication

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: BSD-3-Clause, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoImageYet = errors.New("no image yet")

Functions

This section is empty.

Types

type OutputDuplicator

type OutputDuplicator struct {
	DrawPointer bool
	// contains filtered or unexported fields
}

func NewIDXGIOutputDuplication

func NewIDXGIOutputDuplication(device *d3d11.ID3D11Device, deviceCtx *d3d11.ID3D11DeviceContext, output uint) (*OutputDuplicator, error)

NewIDXGIOutputDuplication creates a new OutputDuplicator

func (*OutputDuplicator) GetImage

func (dup *OutputDuplicator) GetImage(img *image.RGBA, timeoutMs uint) error

func (*OutputDuplicator) Release

func (dup *OutputDuplicator) Release()

func (*OutputDuplicator) ReleaseFrame

func (dup *OutputDuplicator) ReleaseFrame()

func (*OutputDuplicator) Snapshot

func (dup *OutputDuplicator) Snapshot(timeoutMs uint) (unmapFn, *dxgi.DXGI_MAPPED_RECT, *dxgi.POINT, error)

returns DXGI_FORMAT_B8G8R8A8_UNORM data

type PointerInfo

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

Directories

Path Synopsis
Package swizzle provides functions for converting between RGBA pixel formats.
Package swizzle provides functions for converting between RGBA pixel formats.

Jump to

Keyboard shortcuts

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