Table of Contents

Struct NvCVImage

Namespace
VisioForge.Core.NvidiaMaxine.VideoEffects.API
Assembly
VisioForge.Core.dll

NvCVImage

public struct NvCVImage

Inherited Members

Constructors

NvCVImage(bool)

Initializes a new instance of the VisioForge.Core.NvidiaMaxine.VideoEffects.API.NvCVImage struct.

public NvCVImage(bool fake = false)

Parameters

fake bool

if set to true [fake].

NvCVImage(uint, uint, NvCVImagePixelFormat, NvCVImageComponentType, NvCVLayout, NvCVMemSpace, uint)

Initializes a new instance of the VisioForge.Core.NvidiaMaxine.VideoEffects.API.NvCVImage struct.

public NvCVImage(uint width, uint height, NvCVImagePixelFormat format, NvCVImageComponentType type, NvCVLayout layout, NvCVMemSpace memSpace, uint alignment)

Parameters

width uint

The width.

height uint

The height.

format NvCVImagePixelFormat

The format.

type NvCVImageComponentType

The type.

layout NvCVLayout

The layout.

memSpace NvCVMemSpace

The memory space.

alignment uint

The alignment.

NvCVImage(NvCVImage, int, int, uint, uint)

Initializes a new instance of the VisioForge.Core.NvidiaMaxine.VideoEffects.API.NvCVImage struct.

public NvCVImage(NvCVImage fullImg, int x, int y, uint width, uint height)

Parameters

fullImg NvCVImage

The full img.

x int

The x.

y int

The y.

width uint

The width.

height uint

The height.

Fields

BufferBytes

The maximum amount of memory available through pixels.

public ulong BufferBytes

Field Value

ulong

Colorspace

An OR of colorspace, range and chroma phase.

public byte Colorspace

Field Value

byte

ComponentBytes

The number of bytes in each pixel component.

public byte ComponentBytes

Field Value

byte

ComponentType

The data type used to represent each component of the image.

public NvCVImageComponentType ComponentType

Field Value

NvCVImageComponentType

DeleteProc

Delete procedure to call rather than free().

public nint DeleteProc

Field Value

nint

DeletePtr

Buffer memory to be deleted (can be NULL).

public nint DeletePtr

Field Value

nint

GpuMem

NVCV_CPU, NVCV_CPU_PINNED, NVCV_CUDA, NVCV_GPU.

public NvCVMemSpace GpuMem

Field Value

NvCVMemSpace

Height

The number of pixels vertically in the image.

public uint Height

Field Value

uint

NumComponents

The number of components in each pixel.

public byte NumComponents

Field Value

byte

Pitch

The byte stride between pixels vertically.

public int Pitch

Field Value

int

PixelBytes

The number of bytes in a chunky pixel.

public byte PixelBytes

Field Value

byte

PixelFormat

The format of the pixels in the image.

public NvCVImagePixelFormat PixelFormat

Field Value

NvCVImagePixelFormat

Pixels

Pointer to pixel(0,0) in the image.

public nint Pixels

Field Value

nint

Planar

NVCV_CHUNKY, NVCV_PLANAR, NVCV_UYVY, ....

public NvCVLayout Planar

Field Value

NvCVLayout

Reserved1

For structure padding and future expansion. Set to 0.

public byte Reserved1

Field Value

byte

Reserved2

For structure padding and future expansion. Set to 0.

public byte Reserved2

Field Value

byte

Width

The number of pixels horizontally in the image.

public uint Width

Field Value

uint

Methods

CopyFrom(NvCVImage, int, int, int, int, int, int, nint)

Copy subimage.

public NvCVStatus CopyFrom(NvCVImage src, int srcX, int srcY, int dstX, int dstY, int wd, int ht, nint stream)

Parameters

src NvCVImage

The source.

srcX int

The source x.

srcY int

The source y.

dstX int

The destination x.

dstY int

The destination y.

wd int

The width.

ht int

The height.

stream nint

The stream.

Returns

NvCVStatus

NvCVStatus.

CopyFrom(NvCVImage, nint)

Copy image.

public NvCVStatus CopyFrom(NvCVImage src, nint stream)

Parameters

src NvCVImage

The source.

stream nint

The stream.

Returns

NvCVStatus

NvCVStatus.

Destroy()

Destroys this instance.

public void Destroy()