Resample_float Class Reference

#include <resample.h>

Collaboration diagram for Resample_float:

Collaboration graph
[legend]

Public Member Functions

 Resample_float (File *file, int channels)
 ~Resample_float ()
void reset (int channel=-1)
float blackman (int i, float offset, float fcn, int l)
int get_output_size (int channel)
void read_output (double *output, int channel, int size)
void resample_chunk (float *input, long in_len, int in_rate, int out_rate, int channel)
int resample (double *output, long out_len, int in_rate, int out_rate, int channel, long in_position, long out_position)
virtual void read_chunk (float *input, long len, int &reseek, int iteration)

Data Fields

float ** old
float * itime
double ** output_temp
long * output_size
long * output_temp_start
long output_allocation
float * input
long * input_chunk_end
long input_size
int channels
int * resample_init
float last_ratio
float blackfilt [2 *BPC+1][BLACKSIZE]
Filefile
long * last_out_end

Detailed Description

Definition at line 76 of file resample.h.


Constructor & Destructor Documentation

Resample_float::Resample_float ( File file,
int  channels 
)

Resample_float::~Resample_float (  ) 


Member Function Documentation

void Resample_float::reset ( int  channel = -1  ) 

Definition at line 381 of file resample.C.

References channels, input_chunk_end, last_out_end, output_size, and resample_init.

Referenced by resample().

float Resample_float::blackman ( int  i,
float  offset,
float  fcn,
int  l 
)

Definition at line 400 of file resample.C.

References e, M_PI, and RenderProfile::x.

Referenced by resample_chunk().

int Resample_float::get_output_size ( int  channel  ) 

Definition at line 423 of file resample.C.

References output_size.

void Resample_float::read_output ( double *  output,
int  channel,
int  size 
)

Definition at line 428 of file resample.C.

References memcpy, output_size, and output_temp.

void Resample_float::resample_chunk ( float *  input,
long  in_len,
int  in_rate,
int  out_rate,
int  channel 
)

Definition at line 439 of file resample.C.

References blackfilt, blackman(), BLACKSIZE, BPC, channels, itime, last_ratio, MIN, offset, old, output_allocation, output_size, output_temp, resample_init, and RenderProfile::y.

Referenced by resample().

Here is the call graph for this function:

int Resample_float::resample ( double *  output,
long  out_len,
int  in_rate,
int  out_rate,
int  channel,
long  in_position,
long  out_position 
)

Definition at line 576 of file resample.C.

References file, File::get_audio_position(), input, input_size, last_out_end, output_size, output_temp, output_temp_start, read_chunk(), REPOSITION, resample_chunk(), and reset().

Referenced by File::read_samples().

Here is the call graph for this function:

void Resample_float::read_chunk ( float *  input,
long  len,
int &  reseek,
int  iteration 
) [virtual]

Definition at line 555 of file resample.C.

References File::current_channel, File::current_sample, file, input_chunk_end, File::read_samples(), and File::set_audio_position().

Referenced by resample().

Here is the call graph for this function:


Field Documentation

Definition at line 109 of file resample.h.

Referenced by resample_chunk(), Resample_float(), and ~Resample_float().

Definition at line 110 of file resample.h.

Referenced by resample_chunk(), Resample_float(), and ~Resample_float().

Definition at line 115 of file resample.h.

Referenced by read_output(), resample(), resample_chunk(), Resample_float(), and ~Resample_float().

Definition at line 124 of file resample.h.

Referenced by resample(), Resample_float(), and ~Resample_float().

Definition at line 126 of file resample.h.

Referenced by resample_chunk(), and Resample_float().

Definition at line 128 of file resample.h.

Referenced by resample(), Resample_float(), and ~Resample_float().

Definition at line 130 of file resample.h.

Referenced by read_chunk(), Resample_float(), reset(), and ~Resample_float().

Definition at line 131 of file resample.h.

Referenced by resample(), and Resample_float().

Definition at line 132 of file resample.h.

Referenced by resample_chunk(), reset(), and ~Resample_float().

Definition at line 133 of file resample.h.

Referenced by resample_chunk(), Resample_float(), and reset().

Definition at line 135 of file resample.h.

Referenced by resample_chunk(), and Resample_float().

float Resample_float::blackfilt[2 *BPC+1][BLACKSIZE]

Definition at line 136 of file resample.h.

Referenced by resample_chunk().

Definition at line 137 of file resample.h.

Referenced by read_chunk(), and resample().

Definition at line 140 of file resample.h.

Referenced by resample(), Resample_float(), reset(), and ~Resample_float().


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

Generated on Mon Apr 28 14:40:53 2008 for Cinelerra by  doxygen 1.5.5