Struct AVFloatDSPContext

Source
#[repr(C)]
pub struct AVFloatDSPContext { pub vector_fmul: Option<unsafe extern "C" fn(dst: *mut f32, src0: *const f32, src1: *const f32, len: c_int)>, pub vector_fmac_scalar: Option<unsafe extern "C" fn(dst: *mut f32, src: *const f32, mul: f32, len: c_int)>, pub vector_dmac_scalar: Option<unsafe extern "C" fn(dst: *mut f64, src: *const f64, mul: f64, len: c_int)>, pub vector_fmul_scalar: Option<unsafe extern "C" fn(dst: *mut f32, src: *const f32, mul: f32, len: c_int)>, pub vector_dmul_scalar: Option<unsafe extern "C" fn(dst: *mut f64, src: *const f64, mul: f64, len: c_int)>, pub vector_fmul_window: Option<unsafe extern "C" fn(dst: *mut f32, src0: *const f32, src1: *const f32, win: *const f32, len: c_int)>, pub vector_fmul_add: Option<unsafe extern "C" fn(dst: *mut f32, src0: *const f32, src1: *const f32, src2: *const f32, len: c_int)>, pub vector_fmul_reverse: Option<unsafe extern "C" fn(dst: *mut f32, src0: *const f32, src1: *const f32, len: c_int)>, pub butterflies_float: Option<unsafe extern "C" fn(v1: *mut f32, v2: *mut f32, len: c_int)>, pub scalarproduct_float: Option<unsafe extern "C" fn(v1: *const f32, v2: *const f32, len: c_int) -> f32>, pub vector_dmul: Option<unsafe extern "C" fn(dst: *mut f64, src0: *const f64, src1: *const f64, len: c_int)>, }

Fields§

§vector_fmul: Option<unsafe extern "C" fn(dst: *mut f32, src0: *const f32, src1: *const f32, len: c_int)>

Calculate the entry wise product of two vectors of floats and store the result in a vector of floats.

@param dst output vector constraints: 32-byte aligned @param src0 first input vector constraints: 32-byte aligned @param src1 second input vector constraints: 32-byte aligned @param len number of elements in the input constraints: multiple of 16

§vector_fmac_scalar: Option<unsafe extern "C" fn(dst: *mut f32, src: *const f32, mul: f32, len: c_int)>

Multiply a vector of floats by a scalar float and add to destination vector. Source and destination vectors must overlap exactly or not at all.

@param dst result vector constraints: 32-byte aligned @param src input vector constraints: 32-byte aligned @param mul scalar value @param len length of vector constraints: multiple of 16

§vector_dmac_scalar: Option<unsafe extern "C" fn(dst: *mut f64, src: *const f64, mul: f64, len: c_int)>

Multiply a vector of doubles by a scalar double and add to destination vector. Source and destination vectors must overlap exactly or not at all.

@param dst result vector constraints: 32-byte aligned @param src input vector constraints: 32-byte aligned @param mul scalar value @param len length of vector constraints: multiple of 16

§vector_fmul_scalar: Option<unsafe extern "C" fn(dst: *mut f32, src: *const f32, mul: f32, len: c_int)>

Multiply a vector of floats by a scalar float. Source and destination vectors must overlap exactly or not at all.

@param dst result vector constraints: 16-byte aligned @param src input vector constraints: 16-byte aligned @param mul scalar value @param len length of vector constraints: multiple of 4

§vector_dmul_scalar: Option<unsafe extern "C" fn(dst: *mut f64, src: *const f64, mul: f64, len: c_int)>

Multiply a vector of double by a scalar double. Source and destination vectors must overlap exactly or not at all.

@param dst result vector constraints: 32-byte aligned @param src input vector constraints: 32-byte aligned @param mul scalar value @param len length of vector constraints: multiple of 8

§vector_fmul_window: Option<unsafe extern "C" fn(dst: *mut f32, src0: *const f32, src1: *const f32, win: *const f32, len: c_int)>

Overlap/add with window function. Used primarily by MDCT-based audio codecs. Source and destination vectors must overlap exactly or not at all.

@param dst result vector constraints: 16-byte aligned @param src0 first source vector constraints: 16-byte aligned @param src1 second source vector constraints: 16-byte aligned @param win half-window vector constraints: 16-byte aligned @param len length of vector constraints: multiple of 4

§vector_fmul_add: Option<unsafe extern "C" fn(dst: *mut f32, src0: *const f32, src1: *const f32, src2: *const f32, len: c_int)>

Calculate the entry wise product of two vectors of floats, add a third vector of floats and store the result in a vector of floats.

@param dst output vector constraints: 32-byte aligned @param src0 first input vector constraints: 32-byte aligned @param src1 second input vector constraints: 32-byte aligned @param src2 third input vector constraints: 32-byte aligned @param len number of elements in the input constraints: multiple of 16

§vector_fmul_reverse: Option<unsafe extern "C" fn(dst: *mut f32, src0: *const f32, src1: *const f32, len: c_int)>

Calculate the entry wise product of two vectors of floats, and store the result in a vector of floats. The second vector of floats is iterated over in reverse order.

@param dst output vector constraints: 32-byte aligned @param src0 first input vector constraints: 32-byte aligned @param src1 second input vector constraints: 32-byte aligned @param len number of elements in the input constraints: multiple of 16

§butterflies_float: Option<unsafe extern "C" fn(v1: *mut f32, v2: *mut f32, len: c_int)>

Calculate the sum and difference of two vectors of floats.

@param v1 first input vector, sum output, 16-byte aligned @param v2 second input vector, difference output, 16-byte aligned @param len length of vectors, multiple of 4

§scalarproduct_float: Option<unsafe extern "C" fn(v1: *const f32, v2: *const f32, len: c_int) -> f32>

Calculate the scalar product of two vectors of floats.

@param v1 first vector, 16-byte aligned @param v2 second vector, 16-byte aligned @param len length of vectors, multiple of 4

@return sum of elementwise products

§vector_dmul: Option<unsafe extern "C" fn(dst: *mut f64, src0: *const f64, src1: *const f64, len: c_int)>

Calculate the entry wise product of two vectors of doubles and store the result in a vector of doubles.

@param dst output vector constraints: 32-byte aligned @param src0 first input vector constraints: 32-byte aligned @param src1 second input vector constraints: 32-byte aligned @param len number of elements in the input constraints: multiple of 16

Trait Implementations§

Source§

impl Clone for AVFloatDSPContext

Source§

fn clone(&self) -> AVFloatDSPContext

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

impl Debug for AVFloatDSPContext

Source§

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

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

impl Copy for AVFloatDSPContext

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<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.