pub trait CUDA_VideoWriterTrait: CUDA_VideoWriterTraitConst {
// Required method
fn as_raw_mut_CUDA_VideoWriter(&mut self) -> *mut c_void;
// Provided methods
fn write(&mut self, frame: &impl ToInputArray) -> Result<()> { ... }
fn release(&mut self) -> Result<()> { ... }
}
Expand description
Mutable methods for crate::cudacodec::CUDA_VideoWriter
Required Methods§
fn as_raw_mut_CUDA_VideoWriter(&mut self) -> *mut c_void
Provided Methods§
sourcefn write(&mut self, frame: &impl ToInputArray) -> Result<()>
fn write(&mut self, frame: &impl ToInputArray) -> Result<()>
Writes the next video frame.
§Parameters
- 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.
Object Safety§
This trait is not object safe.