@Name(value="cv::cudacodec::VideoWriter") @Properties(inherit=opencv_cudacodec.class) public class VideoWriter extends Pointer
Available if Nvidia's Video Codec SDK is installed.
Only Codec::H264 and Codec::HEVC are supported with encoding support 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, zero
public 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 © 2024. All rights reserved.