FFmpeg
Data Structures | Functions
fixed_dsp.h File Reference
#include <stdint.h>
#include "attributes.h"
#include "common.h"
#include "libavcodec/mathops.h"

Go to the source code of this file.

Data Structures

struct   AVFixedDSPContext
 

Functions

  Allocate and initialize a fixed DSP context.
 
static av_always_inline int  fixed_sqrt (int x, int bits)
  Calculate the square root.
 

Function Documentation

AVFixedDSPContext* avpriv_alloc_fixed_dsp ( int  strict )

Allocate and initialize a fixed DSP context.

note: should be freed with a av_free call when no longer needed.

Parameters
strict setting to non-zero avoids using functions which may not be IEEE-754 compliant

Definition at line 91 of file fixed_dsp.c.

Referenced by ac3_decode_init().

static av_always_inline int fixed_sqrt ( int  x,
int  bits 
)
static

Calculate the square root.

Parameters
x input fixed point number
bits format of fixed point number (32 - bits).bits

note: input is normalized to (0, 1) fixed point value

Definition at line 115 of file fixed_dsp.h.

Referenced by decode_audio_block().


Generated on Sun Mar 8 2015 02:35:32 for FFmpeg by   doxygen 1.8.2

AltStyle によって変換されたページ (->オリジナル) /