Openh264Decoder

Struct Openh264Decoder 

Source
pub struct Openh264Decoder<S> { /* private fields */ }

Implementations§

Source§

impl<S: Send + Default + 'static> Openh264Decoder<S>

Source

pub fn new(_num_threads: u32) -> Self

Source

pub async fn push_data( &mut self, data: Bytes, timestamp: u64, source: S, ) -> Result<(), Error>

Source

pub fn pull_frame(&mut self) -> Result<Option<DecodedFrame<S>>, Error>

Source

pub fn close(&mut self)

Trait Implementations§

Source§

impl<S: Send + Default + 'static> Default for Openh264Decoder<S>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<F: EncodedFrame + 'static> Service<F> for Openh264Decoder<F::Source>

Source§

type Out = Result<DecodedFrame<<F as DataFrame>::Source>, Error>

Source§

fn handle(&mut self, frame: F, _cx: &Context) -> impl Stream<Item = Self::Out>

Source§

fn handle_stream( &mut self, input: impl Stream<Item = In> + Send, cx: &Context, ) -> impl Stream<Item = Self::Out> + Send
where In: Send, Self: Send, Self::Out: Send,

Source§

fn finalize(&mut self, _cx: &Context) -> impl Future<Output = ()>
where Self: Sized,

Auto Trait Implementations§

§

impl<S> Freeze for Openh264Decoder<S>

§

impl<S> !RefUnwindSafe for Openh264Decoder<S>

§

impl<S> Send for Openh264Decoder<S>
where S: Send,

§

impl<S> Sync for Openh264Decoder<S>
where S: Send,

§

impl<S> Unpin for Openh264Decoder<S>

§

impl<S> !UnwindSafe for Openh264Decoder<S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<I, T> ServiceExt<I> for T
where I: Send, T: Service<I>,

Source§

fn flow<O1, O2, E1, E2, U>(self, service: U) -> (Self, U)
where Self: Sized + Service<I, Out = Result<O1, E1>> + Send, U: Send + Service<O1, Out = Result<O2, E2>>, O1: Send, O2: Send, E1: Send, E2: Send,

Source§

fn spawn_each(self) -> SpawnEach<I, Self>
where Self: Sized + Send + Clone, Self::Out: Send,

Source§

fn flow_map<O1, O2, E1, F, H>(self, f: F) -> (Self, Map<O2, F>)
where Self: Sized + Service<I, Out = Result<O1, E1>> + Send, F: FnMut(O1) -> H + Send, H: Future<Output = O2> + Send, O1: Send, O2: Send, E1: Send,

Source§

fn flow_filter_map<O1, O2, E1, F, H>(self, f: F) -> (Self, FilterMap<O2, F>)
where Self: Sized + Service<I, Out = Result<O1, E1>> + Send, O1: Send, O2: Send, E1: Send, F: FnMut(O1) -> H + Send, H: Future<Output = Option<O2>> + Send,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.