[][src]Trait gstreamer_video::VideoEncoderExtManual

pub trait VideoEncoderExtManual: 'static {
    fn allocate_output_frame(
        &self,
        frame: &mut VideoCodecFrame,
        size: usize
    ) -> Result<FlowSuccess, FlowError>;
fn get_frame(&self, frame_number: i32) -> Option<VideoCodecFrame>;
fn get_frames(&self) -> Vec<VideoCodecFrame>;
fn get_oldest_frame(&self) -> Option<VideoCodecFrame>;
fn get_allocator(&self) -> (Allocator, AllocationParams);
fn finish_frame(
        &self,
        frame: Option<VideoCodecFrame>
    ) -> Result<FlowSuccess, FlowError>;
fn get_latency(&self) -> (ClockTime, ClockTime);
fn set_latency(&self, min_latency: ClockTime, max_latency: ClockTime);
fn get_output_state(&self) -> Option<VideoCodecState<'static, Readable>>;
fn set_output_state(
        &self,
        caps: Caps,
        reference: Option<&VideoCodecState<Readable>>
    ) -> Result<VideoCodecState<InNegotiation>, FlowError>;
fn negotiate<'a>(
        &'a self,
        output_state: VideoCodecState<'a, InNegotiation<'a>>
    ) -> Result<(), FlowError>; }

Required methods

fn allocate_output_frame(
    &self,
    frame: &mut VideoCodecFrame,
    size: usize
) -> Result<FlowSuccess, FlowError>

fn get_frame(&self, frame_number: i32) -> Option<VideoCodecFrame>

fn get_frames(&self) -> Vec<VideoCodecFrame>

fn get_oldest_frame(&self) -> Option<VideoCodecFrame>

fn get_allocator(&self) -> (Allocator, AllocationParams)

fn finish_frame(
    &self,
    frame: Option<VideoCodecFrame>
) -> Result<FlowSuccess, FlowError>

fn get_latency(&self) -> (ClockTime, ClockTime)

fn set_latency(&self, min_latency: ClockTime, max_latency: ClockTime)

fn get_output_state(&self) -> Option<VideoCodecState<'static, Readable>>

fn set_output_state(
    &self,
    caps: Caps,
    reference: Option<&VideoCodecState<Readable>>
) -> Result<VideoCodecState<InNegotiation>, FlowError>

fn negotiate<'a>(
    &'a self,
    output_state: VideoCodecState<'a, InNegotiation<'a>>
) -> Result<(), FlowError>

Loading content...

Implementors

impl<O: IsA<VideoEncoder>> VideoEncoderExtManual for O[src]

Loading content...