openshot-audio  0.1.2
Static Public Member Functions | List of all members
juce::FloatVectorOperations Class Reference

#include <juce_audio_basics.h>

Static Public Member Functions

static void JUCE_CALLTYPE clear (float *dest, int numValues) noexcept
 
static void JUCE_CALLTYPE clear (double *dest, int numValues) noexcept
 
static void JUCE_CALLTYPE fill (float *dest, float valueToFill, int numValues) noexcept
 
static void JUCE_CALLTYPE fill (double *dest, double valueToFill, int numValues) noexcept
 
static void JUCE_CALLTYPE copy (float *dest, const float *src, int numValues) noexcept
 
static void JUCE_CALLTYPE copy (double *dest, const double *src, int numValues) noexcept
 
static void JUCE_CALLTYPE copyWithMultiply (float *dest, const float *src, float multiplier, int numValues) noexcept
 
static void JUCE_CALLTYPE copyWithMultiply (double *dest, const double *src, double multiplier, int numValues) noexcept
 
static void JUCE_CALLTYPE add (float *dest, float amountToAdd, int numValues) noexcept
 
static void JUCE_CALLTYPE add (double *dest, double amountToAdd, int numValues) noexcept
 
static void JUCE_CALLTYPE add (float *dest, float *src, float amount, int numValues) noexcept
 
static void JUCE_CALLTYPE add (double *dest, double *src, double amount, int numValues) noexcept
 
static void JUCE_CALLTYPE add (float *dest, const float *src, int numValues) noexcept
 
static void JUCE_CALLTYPE add (double *dest, const double *src, int numValues) noexcept
 
static void JUCE_CALLTYPE add (float *dest, const float *src1, const float *src2, int num) noexcept
 
static void JUCE_CALLTYPE add (double *dest, const double *src1, const double *src2, int num) noexcept
 
static void JUCE_CALLTYPE subtract (float *dest, const float *src, int numValues) noexcept
 
static void JUCE_CALLTYPE subtract (double *dest, const double *src, int numValues) noexcept
 
static void JUCE_CALLTYPE subtract (float *dest, const float *src1, const float *src2, int num) noexcept
 
static void JUCE_CALLTYPE subtract (double *dest, const double *src1, const double *src2, int num) noexcept
 
static void JUCE_CALLTYPE addWithMultiply (float *dest, const float *src, float multiplier, int numValues) noexcept
 
static void JUCE_CALLTYPE addWithMultiply (double *dest, const double *src, double multiplier, int numValues) noexcept
 
static void JUCE_CALLTYPE addWithMultiply (float *dest, const float *src1, const float *src2, int num) noexcept
 
static void JUCE_CALLTYPE addWithMultiply (double *dest, const double *src1, const double *src2, int num) noexcept
 
static void JUCE_CALLTYPE multiply (float *dest, const float *src, int numValues) noexcept
 
static void JUCE_CALLTYPE multiply (double *dest, const double *src, int numValues) noexcept
 
static void JUCE_CALLTYPE multiply (float *dest, const float *src1, const float *src2, int numValues) noexcept
 
static void JUCE_CALLTYPE multiply (double *dest, const double *src1, const double *src2, int numValues) noexcept
 
static void JUCE_CALLTYPE multiply (float *dest, float multiplier, int numValues) noexcept
 
static void JUCE_CALLTYPE multiply (double *dest, double multiplier, int numValues) noexcept
 
static void JUCE_CALLTYPE multiply (float *dest, const float *src, float multiplier, int num) noexcept
 
static void JUCE_CALLTYPE multiply (double *dest, const double *src, double multiplier, int num) noexcept
 
static void JUCE_CALLTYPE negate (float *dest, const float *src, int numValues) noexcept
 
static void JUCE_CALLTYPE negate (double *dest, const double *src, int numValues) noexcept
 
static void JUCE_CALLTYPE abs (float *dest, const float *src, int numValues) noexcept
 
static void JUCE_CALLTYPE abs (double *dest, const double *src, int numValues) noexcept
 
static void JUCE_CALLTYPE convertFixedToFloat (float *dest, const int *src, float multiplier, int numValues) noexcept
 
static void JUCE_CALLTYPE min (float *dest, const float *src, float comp, int num) noexcept
 
static void JUCE_CALLTYPE min (double *dest, const double *src, double comp, int num) noexcept
 
static void JUCE_CALLTYPE min (float *dest, const float *src1, const float *src2, int num) noexcept
 
static void JUCE_CALLTYPE min (double *dest, const double *src1, const double *src2, int num) noexcept
 
static void JUCE_CALLTYPE max (float *dest, const float *src, float comp, int num) noexcept
 
static void JUCE_CALLTYPE max (double *dest, const double *src, double comp, int num) noexcept
 
static void JUCE_CALLTYPE max (float *dest, const float *src1, const float *src2, int num) noexcept
 
static void JUCE_CALLTYPE max (double *dest, const double *src1, const double *src2, int num) noexcept
 
static void JUCE_CALLTYPE clip (float *dest, const float *src, float low, float high, int num) noexcept
 
static void JUCE_CALLTYPE clip (double *dest, const double *src, double low, double high, int num) noexcept
 
static Range< float > JUCE_CALLTYPE findMinAndMax (const float *src, int numValues) noexcept
 
static Range< double > JUCE_CALLTYPE findMinAndMax (const double *src, int numValues) noexcept
 
static float JUCE_CALLTYPE findMinimum (const float *src, int numValues) noexcept
 
static double JUCE_CALLTYPE findMinimum (const double *src, int numValues) noexcept
 
static float JUCE_CALLTYPE findMaximum (const float *src, int numValues) noexcept
 
static double JUCE_CALLTYPE findMaximum (const double *src, int numValues) noexcept
 
static void JUCE_CALLTYPE enableFlushToZeroMode (bool shouldEnable) noexcept
 

Detailed Description

A collection of simple vector operations on arrays of floats, accelerated with SIMD instructions where possible.

Member Function Documentation

◆ abs() [1/2]

void FloatVectorOperations::abs ( float *  dest,
const float *  src,
int  numValues 
)
staticnoexcept

Copies a source vector to a destination, taking the absolute of each value.

◆ abs() [2/2]

void FloatVectorOperations::abs ( double *  dest,
const double *  src,
int  numValues 
)
staticnoexcept

Copies a source vector to a destination, taking the absolute of each value.

◆ add() [1/8]

void JUCE_CALLTYPE FloatVectorOperations::add ( float *  dest,
float  amountToAdd,
int  numValues 
)
staticnoexcept

Adds a fixed value to the destination values.

◆ add() [2/8]

void JUCE_CALLTYPE FloatVectorOperations::add ( double *  dest,
double  amountToAdd,
int  numValues 
)
staticnoexcept

Adds a fixed value to the destination values.

◆ add() [3/8]

void JUCE_CALLTYPE FloatVectorOperations::add ( float *  dest,
float *  src,
float  amount,
int  numValues 
)
staticnoexcept

Adds a fixed value to each source value and stores it in the destination array.

◆ add() [4/8]

void JUCE_CALLTYPE FloatVectorOperations::add ( double *  dest,
double *  src,
double  amount,
int  numValues 
)
staticnoexcept

Adds a fixed value to each source value and stores it in the destination array.

◆ add() [5/8]

void JUCE_CALLTYPE FloatVectorOperations::add ( float *  dest,
const float *  src,
int  numValues 
)
staticnoexcept

Adds the source values to the destination values.

◆ add() [6/8]

void JUCE_CALLTYPE FloatVectorOperations::add ( double *  dest,
const double *  src,
int  numValues 
)
staticnoexcept

Adds the source values to the destination values.

◆ add() [7/8]

void JUCE_CALLTYPE FloatVectorOperations::add ( float *  dest,
const float *  src1,
const float *  src2,
int  num 
)
staticnoexcept

Adds each source1 value to the corresponding source2 value and stores the result in the destination array.

◆ add() [8/8]

void JUCE_CALLTYPE FloatVectorOperations::add ( double *  dest,
const double *  src1,
const double *  src2,
int  num 
)
staticnoexcept

Adds each source1 value to the corresponding source2 value and stores the result in the destination array.

◆ addWithMultiply() [1/4]

void JUCE_CALLTYPE FloatVectorOperations::addWithMultiply ( float *  dest,
const float *  src,
float  multiplier,
int  numValues 
)
staticnoexcept

Multiplies each source value by the given multiplier, then adds it to the destination value.

◆ addWithMultiply() [2/4]

void JUCE_CALLTYPE FloatVectorOperations::addWithMultiply ( double *  dest,
const double *  src,
double  multiplier,
int  numValues 
)
staticnoexcept

Multiplies each source value by the given multiplier, then adds it to the destination value.

◆ addWithMultiply() [3/4]

void JUCE_CALLTYPE FloatVectorOperations::addWithMultiply ( float *  dest,
const float *  src1,
const float *  src2,
int  num 
)
staticnoexcept

Multiplies each source1 value by the corresponding source2 value, then adds it to the destination value.

◆ addWithMultiply() [4/4]

void JUCE_CALLTYPE FloatVectorOperations::addWithMultiply ( double *  dest,
const double *  src1,
const double *  src2,
int  num 
)
staticnoexcept

Multiplies each source1 value by the corresponding source2 value, then adds it to the destination value.

◆ clear() [1/2]

void JUCE_CALLTYPE FloatVectorOperations::clear ( float *  dest,
int  numValues 
)
staticnoexcept

Clears a vector of floats.

◆ clear() [2/2]

void JUCE_CALLTYPE FloatVectorOperations::clear ( double *  dest,
int  numValues 
)
staticnoexcept

Clears a vector of doubles.

◆ clip() [1/2]

void JUCE_CALLTYPE FloatVectorOperations::clip ( float *  dest,
const float *  src,
float  low,
float  high,
int  num 
)
staticnoexcept

Each element of dest is calculated by hard clipping the corresponding src element so that it is in the range specified by the arguments low and high.

◆ clip() [2/2]

void JUCE_CALLTYPE FloatVectorOperations::clip ( double *  dest,
const double *  src,
double  low,
double  high,
int  num 
)
staticnoexcept

Each element of dest is calculated by hard clipping the corresponding src element so that it is in the range specified by the arguments low and high.

◆ convertFixedToFloat()

void JUCE_CALLTYPE FloatVectorOperations::convertFixedToFloat ( float *  dest,
const int *  src,
float  multiplier,
int  numValues 
)
staticnoexcept

Converts a stream of integers to floats, multiplying each one by the given multiplier.

◆ copy() [1/2]

void JUCE_CALLTYPE FloatVectorOperations::copy ( float *  dest,
const float *  src,
int  numValues 
)
staticnoexcept

Copies a vector of floats.

◆ copy() [2/2]

void JUCE_CALLTYPE FloatVectorOperations::copy ( double *  dest,
const double *  src,
int  numValues 
)
staticnoexcept

Copies a vector of doubles.

◆ copyWithMultiply() [1/2]

void JUCE_CALLTYPE FloatVectorOperations::copyWithMultiply ( float *  dest,
const float *  src,
float  multiplier,
int  numValues 
)
staticnoexcept

Copies a vector of floats, multiplying each value by a given multiplier

◆ copyWithMultiply() [2/2]

void JUCE_CALLTYPE FloatVectorOperations::copyWithMultiply ( double *  dest,
const double *  src,
double  multiplier,
int  numValues 
)
staticnoexcept

Copies a vector of doubles, multiplying each value by a given multiplier

◆ enableFlushToZeroMode()

void JUCE_CALLTYPE FloatVectorOperations::enableFlushToZeroMode ( bool  shouldEnable)
staticnoexcept

On Intel CPUs, this method enables or disables the SSE flush-to-zero mode. Effectively, this is a wrapper around a call to _MM_SET_FLUSH_ZERO_MODE

◆ fill() [1/2]

void JUCE_CALLTYPE FloatVectorOperations::fill ( float *  dest,
float  valueToFill,
int  numValues 
)
staticnoexcept

Copies a repeated value into a vector of floats.

◆ fill() [2/2]

void JUCE_CALLTYPE FloatVectorOperations::fill ( double *  dest,
double  valueToFill,
int  numValues 
)
staticnoexcept

Copies a repeated value into a vector of doubles.

◆ findMaximum() [1/2]

float JUCE_CALLTYPE FloatVectorOperations::findMaximum ( const float *  src,
int  numValues 
)
staticnoexcept

Finds the maximum value in the given array.

◆ findMaximum() [2/2]

double JUCE_CALLTYPE FloatVectorOperations::findMaximum ( const double *  src,
int  numValues 
)
staticnoexcept

Finds the maximum value in the given array.

◆ findMinAndMax() [1/2]

Range< float > JUCE_CALLTYPE FloatVectorOperations::findMinAndMax ( const float *  src,
int  numValues 
)
staticnoexcept

Finds the miniumum and maximum values in the given array.

◆ findMinAndMax() [2/2]

Range< double > JUCE_CALLTYPE FloatVectorOperations::findMinAndMax ( const double *  src,
int  numValues 
)
staticnoexcept

Finds the miniumum and maximum values in the given array.

◆ findMinimum() [1/2]

float JUCE_CALLTYPE FloatVectorOperations::findMinimum ( const float *  src,
int  numValues 
)
staticnoexcept

Finds the miniumum value in the given array.

◆ findMinimum() [2/2]

double JUCE_CALLTYPE FloatVectorOperations::findMinimum ( const double *  src,
int  numValues 
)
staticnoexcept

Finds the miniumum value in the given array.

◆ max() [1/4]

void JUCE_CALLTYPE FloatVectorOperations::max ( float *  dest,
const float *  src,
float  comp,
int  num 
)
staticnoexcept

Each element of dest will be the maximum of the corresponding element of the source array and the given comp value.

◆ max() [2/4]

void JUCE_CALLTYPE FloatVectorOperations::max ( double *  dest,
const double *  src,
double  comp,
int  num 
)
staticnoexcept

Each element of dest will be the maximum of the corresponding element of the source array and the given comp value.

◆ max() [3/4]

void JUCE_CALLTYPE FloatVectorOperations::max ( float *  dest,
const float *  src1,
const float *  src2,
int  num 
)
staticnoexcept

Each element of dest will be the maximum of the corresponding source1 and source2 values.

◆ max() [4/4]

void JUCE_CALLTYPE FloatVectorOperations::max ( double *  dest,
const double *  src1,
const double *  src2,
int  num 
)
staticnoexcept

Each element of dest will be the maximum of the corresponding source1 and source2 values.

◆ min() [1/4]

void JUCE_CALLTYPE FloatVectorOperations::min ( float *  dest,
const float *  src,
float  comp,
int  num 
)
staticnoexcept

Each element of dest will be the minimum of the corresponding element of the source array and the given comp value.

◆ min() [2/4]

void JUCE_CALLTYPE FloatVectorOperations::min ( double *  dest,
const double *  src,
double  comp,
int  num 
)
staticnoexcept

Each element of dest will be the minimum of the corresponding element of the source array and the given comp value.

◆ min() [3/4]

void JUCE_CALLTYPE FloatVectorOperations::min ( float *  dest,
const float *  src1,
const float *  src2,
int  num 
)
staticnoexcept

Each element of dest will be the minimum of the corresponding source1 and source2 values.

◆ min() [4/4]

void JUCE_CALLTYPE FloatVectorOperations::min ( double *  dest,
const double *  src1,
const double *  src2,
int  num 
)
staticnoexcept

Each element of dest will be the minimum of the corresponding source1 and source2 values.

◆ multiply() [1/8]

void JUCE_CALLTYPE FloatVectorOperations::multiply ( float *  dest,
const float *  src,
int  numValues 
)
staticnoexcept

Multiplies the destination values by the source values.

◆ multiply() [2/8]

void JUCE_CALLTYPE FloatVectorOperations::multiply ( double *  dest,
const double *  src,
int  numValues 
)
staticnoexcept

Multiplies the destination values by the source values.

◆ multiply() [3/8]

void JUCE_CALLTYPE FloatVectorOperations::multiply ( float *  dest,
const float *  src1,
const float *  src2,
int  numValues 
)
staticnoexcept

Multiplies each source1 value by the correspinding source2 value, then stores it in the destination array.

◆ multiply() [4/8]

void JUCE_CALLTYPE FloatVectorOperations::multiply ( double *  dest,
const double *  src1,
const double *  src2,
int  numValues 
)
staticnoexcept

Multiplies each source1 value by the correspinding source2 value, then stores it in the destination array.

◆ multiply() [5/8]

void JUCE_CALLTYPE FloatVectorOperations::multiply ( float *  dest,
float  multiplier,
int  numValues 
)
staticnoexcept

Multiplies each of the destination values by a fixed multiplier.

◆ multiply() [6/8]

void JUCE_CALLTYPE FloatVectorOperations::multiply ( double *  dest,
double  multiplier,
int  numValues 
)
staticnoexcept

Multiplies each of the destination values by a fixed multiplier.

◆ multiply() [7/8]

void JUCE_CALLTYPE FloatVectorOperations::multiply ( float *  dest,
const float *  src,
float  multiplier,
int  num 
)
staticnoexcept

Multiplies each of the source values by a fixed multiplier and stores the result in the destination array.

◆ multiply() [8/8]

void JUCE_CALLTYPE FloatVectorOperations::multiply ( double *  dest,
const double *  src,
double  multiplier,
int  num 
)
staticnoexcept

Multiplies each of the source values by a fixed multiplier and stores the result in the destination array.

◆ negate() [1/2]

void FloatVectorOperations::negate ( float *  dest,
const float *  src,
int  numValues 
)
staticnoexcept

Copies a source vector to a destination, negating each value.

◆ negate() [2/2]

void FloatVectorOperations::negate ( double *  dest,
const double *  src,
int  numValues 
)
staticnoexcept

Copies a source vector to a destination, negating each value.

◆ subtract() [1/4]

void JUCE_CALLTYPE FloatVectorOperations::subtract ( float *  dest,
const float *  src,
int  numValues 
)
staticnoexcept

Subtracts the source values from the destination values.

◆ subtract() [2/4]

void JUCE_CALLTYPE FloatVectorOperations::subtract ( double *  dest,
const double *  src,
int  numValues 
)
staticnoexcept

Subtracts the source values from the destination values.

◆ subtract() [3/4]

void JUCE_CALLTYPE FloatVectorOperations::subtract ( float *  dest,
const float *  src1,
const float *  src2,
int  num 
)
staticnoexcept

Subtracts each source2 value from the corresponding source1 value and stores the result in the destination array.

◆ subtract() [4/4]

void JUCE_CALLTYPE FloatVectorOperations::subtract ( double *  dest,
const double *  src1,
const double *  src2,
int  num 
)
staticnoexcept

Subtracts each source2 value from the corresponding source1 value and stores the result in the destination array.


The documentation for this class was generated from the following files: