Struct NvCVImage
- Assembly
- VisioForge.Core.dll
NvCVImage
public struct NvCVImageInherited Members
Constructors
NvCVImage(bool)
Initializes a new instance of the VisioForge.Core.NvidiaMaxine.VideoEffects.API.NvCVImage struct.
public NvCVImage(bool fake = false)Parameters
fakebool-
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
widthuint-
The width.
heightuint-
The height.
formatNvCVImagePixelFormat-
The format.
typeNvCVImageComponentType-
The type.
layoutNvCVLayout-
The layout.
memSpaceNvCVMemSpace-
The memory space.
alignmentuint-
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
fullImgNvCVImage-
The full img.
xint-
The x.
yint-
The y.
widthuint-
The width.
heightuint-
The height.
Fields
BufferBytes
The maximum amount of memory available through pixels.
public ulong BufferBytesField Value
Colorspace
An OR of colorspace, range and chroma phase.
public byte ColorspaceField Value
ComponentBytes
The number of bytes in each pixel component.
public byte ComponentBytesField Value
ComponentType
The data type used to represent each component of the image.
public NvCVImageComponentType ComponentTypeField Value
DeleteProc
Delete procedure to call rather than free().
public nint DeleteProcField Value
DeletePtr
Buffer memory to be deleted (can be NULL).
public nint DeletePtrField Value
GpuMem
NVCV_CPU, NVCV_CPU_PINNED, NVCV_CUDA, NVCV_GPU.
public NvCVMemSpace GpuMemField Value
Height
The number of pixels vertically in the image.
public uint HeightField Value
NumComponents
The number of components in each pixel.
public byte NumComponentsField Value
Pitch
The byte stride between pixels vertically.
public int PitchField Value
PixelBytes
The number of bytes in a chunky pixel.
public byte PixelBytesField Value
PixelFormat
The format of the pixels in the image.
public NvCVImagePixelFormat PixelFormatField Value
Pixels
Pointer to pixel(0,0) in the image.
public nint PixelsField Value
Planar
NVCV_CHUNKY, NVCV_PLANAR, NVCV_UYVY, ....
public NvCVLayout PlanarField Value
Reserved1
For structure padding and future expansion. Set to 0.
public byte Reserved1Field Value
Reserved2
For structure padding and future expansion. Set to 0.
public byte Reserved2Field Value
Width
The number of pixels horizontally in the image.
public uint WidthField Value
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
srcNvCVImage-
The source.
srcXint-
The source x.
srcYint-
The source y.
dstXint-
The destination x.
dstYint-
The destination y.
wdint-
The width.
htint-
The height.
streamnint-
The stream.
Returns
- NvCVStatus
-
NvCVStatus.
CopyFrom(NvCVImage, nint)
Copy image.
public NvCVStatus CopyFrom(NvCVImage src, nint stream)Parameters
Returns
- NvCVStatus
-
NvCVStatus.
Destroy()
Destroys this instance.
public void Destroy()