Union AVFilter__bindgen_ty_1

#[repr(C)]
pub union AVFilter__bindgen_ty_1 {
    pub query_func: Option<unsafe extern "C" fn(*mut AVFilterContext) -> i32>,
    pub query_func2: Option<unsafe extern "C" fn(*const AVFilterContext, *mut *mut AVFilterFormatsConfig, *mut *mut AVFilterFormatsConfig) -> i32>,
    pub pixels_list: *const i32,
    pub samples_list: *const i32,
    pub pix_fmt: i32,
    pub sample_fmt: i32,
}
Expand description

The state of the following union is determined by formats_state. See the documentation of enum FilterFormatsState in internal.h.

Fields§

§query_func: Option<unsafe extern "C" fn(*mut AVFilterContext) -> i32>

Query formats supported by the filter on its inputs and outputs.

This callback is called after the filter is initialized (so the inputs and outputs are fixed), shortly before the format negotiation. This callback may be called more than once.

This callback must set ::AVFilterLink’s @ref AVFilterFormatsConfig.formats “outcfg.formats” on every input link and @ref AVFilterFormatsConfig.formats “incfg.formats” on every output link to a list of pixel/sample formats that the filter supports on that link. For video links, this filter may also set @ref AVFilterFormatsConfig.color_spaces “incfg.color_spaces” / @ref AVFilterFormatsConfig.color_spaces “outcfg.color_spaces” and @ref AVFilterFormatsConfig.color_ranges “incfg.color_ranges” / @ref AVFilterFormatsConfig.color_ranges “outcfg.color_ranges” analogously. For audio links, this filter must also set @ref AVFilterFormatsConfig.samplerates “incfg.samplerates” / @ref AVFilterFormatsConfig.samplerates “outcfg.samplerates” and @ref AVFilterFormatsConfig.channel_layouts “incfg.channel_layouts” / @ref AVFilterFormatsConfig.channel_layouts “outcfg.channel_layouts” analogously.

This callback must never be NULL if the union is in this state.

@return zero on success, a negative value corresponding to an AVERROR code otherwise

§query_func2: Option<unsafe extern "C" fn(*const AVFilterContext, *mut *mut AVFilterFormatsConfig, *mut *mut AVFilterFormatsConfig) -> i32>

Same as query_func(), except this function writes the results into provided arrays.

@param cfg_in array of input format configurations with as many members as the filters has inputs (NULL when there are no inputs); @param cfg_out array of output format configurations with as many members as the filters has outputs (NULL when there are no outputs);

§pixels_list: *const i32

A pointer to an array of admissible pixel formats delimited by AV_PIX_FMT_NONE. The generic code will use this list to indicate that this filter supports each of these pixel formats, provided that all inputs and outputs use the same pixel format.

In addition to that the generic code will mark all inputs and all outputs as supporting all color spaces and ranges, as long as all inputs and outputs use the same color space/range.

This list must never be NULL if the union is in this state. The type of all inputs and outputs of filters using this must be AVMEDIA_TYPE_VIDEO.

§samples_list: *const i32

Analogous to pixels, but delimited by AV_SAMPLE_FMT_NONE and restricted to filters that only have AVMEDIA_TYPE_AUDIO inputs and outputs.

In addition to that the generic code will mark all inputs and all outputs as supporting all sample rates and every channel count and channel layout, as long as all inputs and outputs use the same sample rate and channel count/layout.

§pix_fmt: i32

Equivalent to { pix_fmt, AV_PIX_FMT_NONE } as pixels_list.

§sample_fmt: i32

Equivalent to { sample_fmt, AV_SAMPLE_FMT_NONE } as samples_list.

Trait Implementations§

§

impl Clone for AVFilter__bindgen_ty_1

§

fn clone(&self) -> AVFilter__bindgen_ty_1

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

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

Performs copy-assignment from source. Read more
§

impl Debug for AVFilter__bindgen_ty_1

§

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

Formats the value using the given formatter. Read more
§

impl Copy for AVFilter__bindgen_ty_1

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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.
§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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