Type Definition opencv::types::PtrOfEncoderCallBack
source · [−]pub type PtrOfEncoderCallBack = Ptr<dyn EncoderCallBack>;Implementations
sourceimpl PtrOfEncoderCallBack
impl PtrOfEncoderCallBack
pub fn as_raw_PtrOfEncoderCallBack(&self) -> *const c_void
pub fn as_raw_mut_PtrOfEncoderCallBack(&mut self) -> *mut c_void
Trait Implementations
sourceimpl EncoderCallBack for PtrOfEncoderCallBack
impl EncoderCallBack for PtrOfEncoderCallBack
fn as_raw_mut_EncoderCallBack(&mut self) -> *mut c_void
sourcefn acquire_bit_stream(&mut self, buffer_size: &mut i32) -> Result<*mut u8>
fn acquire_bit_stream(&mut self, buffer_size: &mut i32) -> Result<*mut u8>
Callback function to signal the start of bitstream that is to be encoded. Read more
sourcefn release_bit_stream(&mut self, data: &mut u8, size: i32) -> Result<()>
fn release_bit_stream(&mut self, data: &mut u8, size: i32) -> Result<()>
Callback function to signal that the encoded bitstream is ready to be written to file.
sourcefn on_begin_frame(
&mut self,
frame_number: i32,
pic_type: EncoderCallBack_PicType
) -> Result<()>
fn on_begin_frame(
&mut self,
frame_number: i32,
pic_type: EncoderCallBack_PicType
) -> Result<()>
Callback function to signal that the encoding operation on the frame has started. Read more
sourcefn on_end_frame(
&mut self,
frame_number: i32,
pic_type: EncoderCallBack_PicType
) -> Result<()>
fn on_end_frame(
&mut self,
frame_number: i32,
pic_type: EncoderCallBack_PicType
) -> Result<()>
Callback function signals that the encoding operation on the frame has finished. Read more