@Namespace(value="cv::cudacodec") @Properties(inherit=opencv_cudacodec.class) public class NVSurfaceToColorConverter extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
NVSurfaceToColorConverter(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
convert(GpuMat yuv,
GpuMat color,
int surfaceFormat,
int outputFormat) |
boolean |
convert(GpuMat yuv,
GpuMat color,
int surfaceFormat,
int outputFormat,
int bitDepth,
boolean planar,
Stream stream) |
boolean |
convert(Mat yuv,
Mat color,
int surfaceFormat,
int outputFormat) |
boolean |
convert(Mat yuv,
Mat color,
int surfaceFormat,
int outputFormat,
int bitDepth,
boolean planar,
Stream stream)
\brief Performs the conversion from the raw YUV Surface output from VideoReader to the requested color format.
|
boolean |
convert(UMat yuv,
UMat color,
int surfaceFormat,
int outputFormat) |
boolean |
convert(UMat yuv,
UMat color,
int surfaceFormat,
int outputFormat,
int bitDepth,
boolean planar,
Stream stream) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, trimMemory, withDeallocator, zeropublic NVSurfaceToColorConverter(Pointer p)
Pointer(Pointer).@Cast(value="bool") public boolean convert(@ByVal Mat yuv, @ByVal Mat color, @Cast(value="const cv::cudacodec::SurfaceFormat") int surfaceFormat, @Cast(value="const cv::cudacodec::ColorFormat") int outputFormat, @Cast(value="const cv::cudacodec::BitDepth") int bitDepth, @Cast(value="const bool") boolean planar, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
yuv - The raw YUV Surface output from VideoReader see \ref SurfaceFormat.color - The converted frame.surfaceFormat - The surface format of the input YUV data.outputFormat - The requested output color format.bitDepth - The requested bit depth of the output frame.planar - Request seperate planes for each color plane.stream - Stream for the asynchronous version.@Cast(value="bool") public boolean convert(@ByVal Mat yuv, @ByVal Mat color, @Cast(value="const cv::cudacodec::SurfaceFormat") int surfaceFormat, @Cast(value="const cv::cudacodec::ColorFormat") int outputFormat)
@Cast(value="bool") public boolean convert(@ByVal UMat yuv, @ByVal UMat color, @Cast(value="const cv::cudacodec::SurfaceFormat") int surfaceFormat, @Cast(value="const cv::cudacodec::ColorFormat") int outputFormat, @Cast(value="const cv::cudacodec::BitDepth") int bitDepth, @Cast(value="const bool") boolean planar, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
@Cast(value="bool") public boolean convert(@ByVal UMat yuv, @ByVal UMat color, @Cast(value="const cv::cudacodec::SurfaceFormat") int surfaceFormat, @Cast(value="const cv::cudacodec::ColorFormat") int outputFormat)
@Cast(value="bool") public boolean convert(@ByVal GpuMat yuv, @ByVal GpuMat color, @Cast(value="const cv::cudacodec::SurfaceFormat") int surfaceFormat, @Cast(value="const cv::cudacodec::ColorFormat") int outputFormat, @Cast(value="const cv::cudacodec::BitDepth") int bitDepth, @Cast(value="const bool") boolean planar, @ByRef(nullValue="cv::cuda::Stream::Null()") Stream stream)
Copyright © 2026. All rights reserved.