Struct NvCVImage
NvCVImage
Inherited Members
Namespace: VisioForge.Core.NvidiaMaxine.VideoEffects.API
Assembly: VisioForge.Core.dll
Syntax
public struct NvCVImage
Constructors
NvCVImage(bool)
Initializes a new instance of the NvCVImage struct.
Declaration
public NvCVImage(bool fake = false)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | fake | if set to |
NvCVImage(uint, uint, NvCVImagePixelFormat, NvCVImageComponentType, NvCVLayout, NvCVMemSpace, uint)
Initializes a new instance of the NvCVImage struct.
Declaration
public NvCVImage(uint width, uint height, NvCVImagePixelFormat format, NvCVImageComponentType type, NvCVLayout layout, NvCVMemSpace memSpace, uint alignment)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | width | The width. |
| uint | height | The height. |
| NvCVImagePixelFormat | format | The format. |
| NvCVImageComponentType | type | The type. |
| NvCVLayout | layout | The layout. |
| NvCVMemSpace | memSpace | The memory space. |
| uint | alignment | The alignment. |
NvCVImage(NvCVImage, int, int, uint, uint)
Initializes a new instance of the NvCVImage struct.
Declaration
public NvCVImage(NvCVImage fullImg, int x, int y, uint width, uint height)
Parameters
| Type | Name | Description |
|---|---|---|
| NvCVImage | fullImg | The full img. |
| int | x | The x. |
| int | y | The y. |
| uint | width | The width. |
| uint | height | The height. |
Fields
BufferBytes
The maximum amount of memory available through pixels.
Declaration
public ulong BufferBytes
Field Value
| Type | Description |
|---|---|
| ulong |
Colorspace
An OR of colorspace, range and chroma phase.
Declaration
public byte Colorspace
Field Value
| Type | Description |
|---|---|
| byte |
ComponentBytes
The number of bytes in each pixel component.
Declaration
public byte ComponentBytes
Field Value
| Type | Description |
|---|---|
| byte |
ComponentType
The data type used to represent each component of the image.
Declaration
public NvCVImageComponentType ComponentType
Field Value
| Type | Description |
|---|---|
| NvCVImageComponentType |
DeleteProc
Delete procedure to call rather than free().
Declaration
public nint DeleteProc
Field Value
| Type | Description |
|---|---|
| nint |
DeletePtr
Buffer memory to be deleted (can be NULL).
Declaration
public nint DeletePtr
Field Value
| Type | Description |
|---|---|
| nint |
GpuMem
NVCV_CPU, NVCV_CPU_PINNED, NVCV_CUDA, NVCV_GPU.
Declaration
public NvCVMemSpace GpuMem
Field Value
| Type | Description |
|---|---|
| NvCVMemSpace |
Height
The number of pixels vertically in the image.
Declaration
public uint Height
Field Value
| Type | Description |
|---|---|
| uint |
NumComponents
The number of components in each pixel.
Declaration
public byte NumComponents
Field Value
| Type | Description |
|---|---|
| byte |
Pitch
The byte stride between pixels vertically.
Declaration
public int Pitch
Field Value
| Type | Description |
|---|---|
| int |
PixelBytes
The number of bytes in a chunky pixel.
Declaration
public byte PixelBytes
Field Value
| Type | Description |
|---|---|
| byte |
PixelFormat
The format of the pixels in the image.
Declaration
public NvCVImagePixelFormat PixelFormat
Field Value
| Type | Description |
|---|---|
| NvCVImagePixelFormat |
Pixels
Pointer to pixel(0,0) in the image.
Declaration
public nint Pixels
Field Value
| Type | Description |
|---|---|
| nint |
Planar
NVCV_CHUNKY, NVCV_PLANAR, NVCV_UYVY, ....
Declaration
public NvCVLayout Planar
Field Value
| Type | Description |
|---|---|
| NvCVLayout |
Reserved1
For structure padding and future expansion. Set to 0.
Declaration
public byte Reserved1
Field Value
| Type | Description |
|---|---|
| byte |
Reserved2
For structure padding and future expansion. Set to 0.
Declaration
public byte Reserved2
Field Value
| Type | Description |
|---|---|
| byte |
Width
The number of pixels horizontally in the image.
Declaration
public uint Width
Field Value
| Type | Description |
|---|---|
| uint |
Methods
CopyFrom(NvCVImage, int, int, int, int, int, int, nint)
Copy subimage.
Declaration
public NvCVStatus CopyFrom(NvCVImage src, int srcX, int srcY, int dstX, int dstY, int wd, int ht, nint stream)
Parameters
| Type | Name | Description |
|---|---|---|
| NvCVImage | src | The source. |
| int | srcX | The source x. |
| int | srcY | The source y. |
| int | dstX | The destination x. |
| int | dstY | The destination y. |
| int | wd | The width. |
| int | ht | The height. |
| nint | stream | The stream. |
Returns
| Type | Description |
|---|---|
| NvCVStatus | NvCVStatus. |
CopyFrom(NvCVImage, nint)
Copy image.
Declaration
public NvCVStatus CopyFrom(NvCVImage src, nint stream)
Parameters
| Type | Name | Description |
|---|---|---|
| NvCVImage | src | The source. |
| nint | stream | The stream. |
Returns
| Type | Description |
|---|---|
| NvCVStatus | NvCVStatus. |
Destroy()
Destroys this instance.
Declaration
public void Destroy()