FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
FmtConvertContext Struct Reference

#include <fmtconvert.h>

Data Fields

void(* int32_to_float_fmul_scalar )(float *dst, const int32_t *src, float mul, int len)
 Convert an array of int32_t to float and multiply by a float value.
 
void(* int32_to_float_fmul_array8 )(struct FmtConvertContext *c, float *dst, const int32_t *src, const float *mul, int len)
 Convert an array of int32_t to float and multiply by a float value from another array, stepping along the float array once for each 8 integers.
 
void(* float_to_int16 )(int16_t *dst, const float *src, long len)
 Convert an array of float to an array of int16_t.
 
void(* float_to_int16_interleave )(int16_t *dst, const float **src, long len, int channels)
 Convert multiple arrays of float to an interleaved array of int16_t.
 
void(* float_interleave )(float *dst, const float **src, unsigned int len, int channels)
 Convert multiple arrays of float to an array of interleaved float.
 

Detailed Description

Definition at line 28 of file fmtconvert.h.

Field Documentation

void(* FmtConvertContext::int32_to_float_fmul_scalar)(float *dst, const int32_t *src, float mul, int len)

Convert an array of int32_t to float and multiply by a float value.

Parameters
dstdestination array of float. constraints: 16-byte aligned
srcsource array of int32_t. constraints: 16-byte aligned
lennumber of elements to convert. constraints: multiple of 8

Definition at line 38 of file fmtconvert.h.

Referenced by decode_audio_block(), ff_fmt_convert_init(), ff_fmt_convert_init_arm(), ff_fmt_convert_init_mips(), ff_fmt_convert_init_ppc(), ff_fmt_convert_init_x86(), and int32_to_float_fmul_array8_c().

void(* FmtConvertContext::int32_to_float_fmul_array8)(struct FmtConvertContext *c, float *dst, const int32_t *src, const float *mul, int len)

Convert an array of int32_t to float and multiply by a float value from another array, stepping along the float array once for each 8 integers.

Parameters
cpointer to FmtConvertContext.
dstdestination array of float. constraints: 16-byte aligned
srcsource array of int32_t. constraints: 16-byte aligned
mulsource array of float multipliers.
lennumber of elements to convert. constraints: multiple of 8

Definition at line 53 of file fmtconvert.h.

Referenced by dca_subsubframe(), ff_fmt_convert_init(), and ff_fmt_convert_init_arm().

void(* FmtConvertContext::float_to_int16)(int16_t *dst, const float *src, long len)

Convert an array of float to an array of int16_t.

Convert floats from in the range [-32768.0,32767.0] to ints without rescaling

Parameters
dstdestination array of int16_t. constraints: 16-byte aligned
srcsource array of float. constraints: 16-byte aligned
lennumber of elements to convert. constraints: multiple of 8

Definition at line 70 of file fmtconvert.h.

Referenced by ff_fmt_convert_init(), ff_fmt_convert_init_arm(), ff_fmt_convert_init_mips(), ff_fmt_convert_init_ppc(), and ff_fmt_convert_init_x86().

void(* FmtConvertContext::float_to_int16_interleave)(int16_t *dst, const float **src, long len, int channels)

Convert multiple arrays of float to an interleaved array of int16_t.

Convert floats from in the range [-32768.0,32767.0] to ints without rescaling

Parameters
dstdestination array of interleaved int16_t. constraints: 16-byte aligned
srcsource array of float arrays, one for each channel. constraints: 16-byte aligned
lennumber of elements to convert. constraints: multiple of 8
channelsnumber of channels

Definition at line 86 of file fmtconvert.h.

Referenced by ff_fmt_convert_init(), ff_fmt_convert_init_arm(), ff_fmt_convert_init_mips(), ff_fmt_convert_init_ppc(), and ff_fmt_convert_init_x86().

void(* FmtConvertContext::float_interleave)(float *dst, const float **src, unsigned int len, int channels)

Convert multiple arrays of float to an array of interleaved float.

Parameters
dstdestination array of interleaved float. constraints: 16-byte aligned
srcsource array of float arrays, one for each channel. constraints: 16-byte aligned
lennumber of elements to convert. constraints: multiple of 8
channelsnumber of channels

Definition at line 100 of file fmtconvert.h.

Referenced by ff_fmt_convert_init(), and ff_fmt_convert_init_x86().


The documentation for this struct was generated from the following file: