@Name(value="cv::cudacodec::VideoWriter") @Properties(inherit=opencv_cudacodec.class) public class VideoWriter extends Pointer
Available when built with WITH_NVCUVENC=ON while Nvidia's Video Codec SDK is installed.
Encoding support is dependent on the GPU, refer to the Nvidia Video Codec SDK Video Encode and Decode GPU Support Matrix for details.
\note - An example on how to use the videoWriter class can be found at opencv_source_code/samples/gpu/video_writer.cpp
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
VideoWriter(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
EncoderParams |
getEncoderParams()
\brief Retrieve the encoding parameters.
|
void |
release()
\brief Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished().
|
void |
write(GpuMat frame) |
void |
write(Mat frame)
\brief Writes the next video frame.
|
void |
write(UMat frame) |
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, withDeallocator, zeropublic VideoWriter(Pointer p)
Pointer(Pointer).public void write(@ByVal Mat frame)
frame - The framet to be written.
The method encodes the specified image to a video stream. The image must have the same size and the same surface format as has been specified when opening the video writer.
@ByVal public EncoderParams getEncoderParams()
public void release()
Copyright © 2023. All rights reserved.