@Name(value="cv::cudacodec::VideoWriter") @Properties(inherit=opencv_cudacodec.class) public class VideoWriter extends Pointer
The implementation uses H264 video codec.
\note Currently only Windows platform is supported.
\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() |
void |
write(GpuMat frame) |
void |
write(GpuMat frame,
boolean lastFrame) |
void |
write(Mat frame) |
void |
write(Mat frame,
boolean lastFrame)
\brief Writes the next video frame.
|
void |
write(UMat frame) |
void |
write(UMat frame,
boolean lastFrame) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public VideoWriter(Pointer p)
Pointer.Pointer(Pointer)
.public void write(@ByVal Mat frame, @Cast(value="bool") boolean lastFrame)
frame
- The written frame.lastFrame
- Indicates that it is end of stream. The parameter can be ignored.
The method write the specified image to video file. 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()
Copyright © 2020. All rights reserved.