Struct rsmpeg::ffi::AVFilterGraph[][src]

#[repr(C)]
pub struct AVFilterGraph {
Show fields pub av_class: *const AVClass, pub filters: *mut *mut AVFilterContext, pub nb_filters: u32, pub scale_sws_opts: *mut i8, pub resample_lavr_opts: *mut i8, pub thread_type: i32, pub nb_threads: i32, pub internal: *mut AVFilterGraphInternal, pub opaque: *mut c_void, pub execute: Option<unsafe extern "C" fn(*mut AVFilterContext, Option<unsafe extern "C" fn(*mut AVFilterContext, *mut c_void, i32, i32) -> i32>, *mut c_void, *mut i32, i32) -> i32>, pub aresample_swr_opts: *mut i8, pub sink_links: *mut *mut AVFilterLink, pub sink_links_count: i32, pub disable_auto_convert: u32,
}

Fields

av_class: *const AVClassfilters: *mut *mut AVFilterContextnb_filters: u32scale_sws_opts: *mut i8
Expand description

< sws options to use for the auto-inserted scale filters

resample_lavr_opts: *mut i8
Expand description

< libavresample options to use for the auto-inserted resample filters

thread_type: i32
Expand description

Type of multithreading allowed for filters in this graph. A combination of AVFILTER_THREAD_* flags.

May be set by the caller at any point, the setting will apply to all filters initialized after that. The default is allowing everything.

When a filter in this graph is initialized, this field is combined using bit AND with AVFilterContext.thread_type to get the final mask used for determining allowed threading types. I.e. a threading type needs to be set in both to be allowed.

nb_threads: i32
Expand description

Maximum number of threads used by filters in this graph. May be set by the caller before adding any filters to the filtergraph. Zero (the default) means that the number of threads is determined automatically.

internal: *mut AVFilterGraphInternal
Expand description

Opaque object for libavfilter internal use.

opaque: *mut c_void
Expand description

Opaque user data. May be set by the caller to an arbitrary value, e.g. to be used from callbacks like @ref AVFilterGraph.execute. Libavfilter will not touch this field in any way.

execute: Option<unsafe extern "C" fn(*mut AVFilterContext, Option<unsafe extern "C" fn(*mut AVFilterContext, *mut c_void, i32, i32) -> i32>, *mut c_void, *mut i32, i32) -> i32>
Expand description

This callback may be set by the caller immediately after allocating the graph and before adding any filters to it, to provide a custom multithreading implementation.

If set, filters with slice threading capability will call this callback to execute multiple jobs in parallel.

If this field is left unset, libavfilter will use its internal implementation, which may or may not be multithreaded depending on the platform and build options.

aresample_swr_opts: *mut i8
Expand description

< swr options to use for the auto-inserted aresample filters, Access ONLY through AVOptions

sink_links: *mut *mut AVFilterLink
Expand description

Private fields

The following fields are for internal use only. Their type, offset, number and semantic can change without notice.

sink_links_count: i32disable_auto_convert: u32

Trait Implementations

impl Clone for AVFilterGraph[src]

pub fn clone(&self) -> AVFilterGraph[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for AVFilterGraph[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Copy for AVFilterGraph[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.