[][src]Trait gstreamer_video::subclass::video_encoder::VideoEncoderImpl

pub trait VideoEncoderImpl: VideoEncoderImplExt + ElementImpl + Send + Sync + 'static {
    fn open(&self, element: &VideoEncoder) -> Result<(), ErrorMessage> { ... }
fn close(&self, element: &VideoEncoder) -> Result<(), ErrorMessage> { ... }
fn start(&self, element: &VideoEncoder) -> Result<(), ErrorMessage> { ... }
fn stop(&self, element: &VideoEncoder) -> Result<(), ErrorMessage> { ... }
fn finish(&self, element: &VideoEncoder) -> Result<FlowSuccess, FlowError> { ... }
fn set_format(
        &self,
        element: &VideoEncoder,
        state: &VideoCodecState<Readable>
    ) -> Result<(), LoggableError> { ... }
fn set_format_static(
        &self,
        element: &VideoEncoder,
        state: &VideoCodecState<'static, Readable>
    ) -> Result<(), LoggableError> { ... }
fn handle_frame(
        &self,
        element: &VideoEncoder,
        frame: VideoCodecFrame
    ) -> Result<FlowSuccess, FlowError> { ... }
fn flush(&self, element: &VideoEncoder) -> bool { ... }
fn negotiate(&self, element: &VideoEncoder) -> Result<(), LoggableError> { ... }
fn get_caps(&self, element: &VideoEncoder, filter: Option<&Caps>) -> Caps { ... }
fn sink_event(&self, element: &VideoEncoder, event: Event) -> bool { ... }
fn sink_query(&self, element: &VideoEncoder, query: &mut QueryRef) -> bool { ... }
fn src_event(&self, element: &VideoEncoder, event: Event) -> bool { ... }
fn src_query(&self, element: &VideoEncoder, query: &mut QueryRef) -> bool { ... }
fn propose_allocation(
        &self,
        element: &VideoEncoder,
        query: &mut QueryRef
    ) -> Result<(), ErrorMessage> { ... }
fn decide_allocation(
        &self,
        element: &VideoEncoder,
        query: &mut QueryRef
    ) -> Result<(), ErrorMessage> { ... } }

Provided methods

fn open(&self, element: &VideoEncoder) -> Result<(), ErrorMessage>

fn close(&self, element: &VideoEncoder) -> Result<(), ErrorMessage>

fn start(&self, element: &VideoEncoder) -> Result<(), ErrorMessage>

fn stop(&self, element: &VideoEncoder) -> Result<(), ErrorMessage>

fn finish(&self, element: &VideoEncoder) -> Result<FlowSuccess, FlowError>

fn set_format(
    &self,
    element: &VideoEncoder,
    state: &VideoCodecState<Readable>
) -> Result<(), LoggableError>

fn set_format_static(
    &self,
    element: &VideoEncoder,
    state: &VideoCodecState<'static, Readable>
) -> Result<(), LoggableError>

fn handle_frame(
    &self,
    element: &VideoEncoder,
    frame: VideoCodecFrame
) -> Result<FlowSuccess, FlowError>

fn flush(&self, element: &VideoEncoder) -> bool

fn negotiate(&self, element: &VideoEncoder) -> Result<(), LoggableError>

fn get_caps(&self, element: &VideoEncoder, filter: Option<&Caps>) -> Caps

fn sink_event(&self, element: &VideoEncoder, event: Event) -> bool

fn sink_query(&self, element: &VideoEncoder, query: &mut QueryRef) -> bool

fn src_event(&self, element: &VideoEncoder, event: Event) -> bool

fn src_query(&self, element: &VideoEncoder, query: &mut QueryRef) -> bool

fn propose_allocation(
    &self,
    element: &VideoEncoder,
    query: &mut QueryRef
) -> Result<(), ErrorMessage>

fn decide_allocation(
    &self,
    element: &VideoEncoder,
    query: &mut QueryRef
) -> Result<(), ErrorMessage>

Loading content...

Implementors

Loading content...