[][src]Trait opencv::hub_prelude::EncoderCallBack

pub trait EncoderCallBack {
    pub fn as_raw_EncoderCallBack(&self) -> *const c_void;
pub fn as_raw_mut_EncoderCallBack(&mut self) -> *mut c_void; pub fn acquire_bit_stream(
        &mut self,
        buffer_size: &mut i32
    ) -> Result<&mut u8> { ... }
pub fn release_bit_stream(&mut self, data: &mut u8, size: i32) -> Result<()> { ... }
pub fn on_begin_frame(
        &mut self,
        frame_number: i32,
        pic_type: EncoderCallBack_PicType
    ) -> Result<()> { ... }
pub fn on_end_frame(
        &mut self,
        frame_number: i32,
        pic_type: EncoderCallBack_PicType
    ) -> Result<()> { ... } }

Callbacks for CUDA video encoder.

Required methods

Loading content...

Provided methods

pub fn acquire_bit_stream(&mut self, buffer_size: &mut i32) -> Result<&mut u8>[src]

Callback function to signal the start of bitstream that is to be encoded.

Callback must allocate buffer for CUDA encoder and return pointer to it and it's size.

pub fn release_bit_stream(&mut self, data: &mut u8, size: i32) -> Result<()>[src]

Callback function to signal that the encoded bitstream is ready to be written to file.

pub fn on_begin_frame(
    &mut self,
    frame_number: i32,
    pic_type: EncoderCallBack_PicType
) -> Result<()>
[src]

Callback function to signal that the encoding operation on the frame has started.

Parameters

  • frameNumber:
  • picType: Specify frame type (I-Frame, P-Frame or B-Frame).

pub fn on_end_frame(
    &mut self,
    frame_number: i32,
    pic_type: EncoderCallBack_PicType
) -> Result<()>
[src]

Callback function signals that the encoding operation on the frame has finished.

Parameters

  • frameNumber:
  • picType: Specify frame type (I-Frame, P-Frame or B-Frame).
Loading content...

Implementors

Loading content...