Skip to main content

EncoderOutputParameters

Struct EncoderOutputParameters 

Source
pub struct EncoderOutputParameters {
    pub idr_period: Option<NonZeroU32>,
    pub rate_control: RateControl,
    pub max_references: Option<NonZeroU32>,
    pub profile: H264Profile,
    pub quality_level: u32,
    pub usage_flags: Option<EncoderUsageFlags>,
    pub tuning_mode: Option<EncoderTuningMode>,
    pub content_flags: Option<EncoderContentFlags>,
    pub inline_stream_params: Option<bool>,
    pub color_space: Option<ColorSpace>,
    pub color_range: Option<ColorRange>,
}
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

Expand description

Parameters that describe an encoded output.

Fields§

§idr_period: Option<NonZeroU32>
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

Number of frames between IDRs. If None, this will be set to an encoder preferred value, or, if the encoder doesn’t provide a preferred value, to 30.

§rate_control: RateControl
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

See RateControl for description of different rate control modes. The selected mode must be supported by the device.

§max_references: Option<NonZeroU32>
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

Max number of references a P-frame can have. If None, this value will be set to the max value supported by the device.

§profile: H264Profile
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

The profile must be supported by the device

§quality_level: u32
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

§usage_flags: Option<EncoderUsageFlags>
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

A hint indicating what the encoded content is going to be used for.

Multiple flags can be combined using the | operator to indicate multiple usages.

§tuning_mode: Option<EncoderTuningMode>
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

A hint indicating how to tune the encoder implementation.

§content_flags: Option<EncoderContentFlags>
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

A hint indicating what kind of content the encoder is going to be used for.

Multiple flags can be combined using the | operator to indicate multiple usages.

§inline_stream_params: Option<bool>
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

Whether to prepend SPS/PPS NAL units inline before IDR frames. If false, SPS/PPS can be retrieved separately using methods defined on the encoder. If None, defaults to true.

§color_space: Option<ColorSpace>
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

Color space of the encoded output. If None, defaults to ColorSpace::Unspecified.

§color_range: Option<ColorRange>
👎Deprecated since 0.3.1:

This crate has been renamed. Please migrate to gpu-video.

Color range of the encoded output. If None, defaults to ColorRange::Limited.

Trait Implementations§

Source§

impl Clone for EncoderOutputParameters

Source§

fn clone(&self) -> EncoderOutputParameters

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EncoderOutputParameters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for EncoderOutputParameters

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,