xine-lib 1.2.13-20230125hg15249
|
#include <stdio.h>
#include <math.h>
#include <pthread.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/post.h>
#include "dsp.h"
#include "audio_filters.h"
Data Structures | |
struct | volnorm_parameters_s |
struct | post_plugin_volnorm_s |
Macros | |
#define | NSAMPLES 128 |
#define | MIN_SAMPLE_SIZE 32000 |
#define | MUL_INIT 1.0 |
#define | MUL_MIN 0.1 |
#define | MUL_MAX 5.0 |
#define | MID_S16 (SHRT_MAX * 0.25) |
#define | MID_FLOAT (INT_MAX * 0.25) |
#define | SIL_S16 (SHRT_MAX * 0.01) |
#define | SIL_FLOAT (INT_MAX * 0.01) |
#define | SMOOTH_MUL 0.06 |
#define | SMOOTH_LASTAVG 0.06 |
#define | clamp(a, min, max) (((a)>(max))?(max):(((a)<(min))?(min):(a))) |
Typedefs | |
typedef struct post_plugin_volnorm_s | post_plugin_volnorm_t |
typedef struct volnorm_parameters_s | volnorm_parameters_t |
#define clamp | ( | a, | |
min, | |||
max ) (((a)>(max))?(max):(((a)<(min))?(min):(a))) |
Referenced by method1_float(), method1_int16(), method2_float(), and method2_int16().
#define MID_FLOAT (INT_MAX * 0.25) |
Referenced by method1_float(), and method2_float().
#define MID_S16 (SHRT_MAX * 0.25) |
Referenced by method1_int16(), method2_int16(), and volnorm_open_plugin().
#define MIN_SAMPLE_SIZE 32000 |
Referenced by method2_float(), and method2_int16().
#define MUL_INIT 1.0 |
Referenced by volnorm_open_plugin().
#define MUL_MAX 5.0 |
Referenced by method1_float(), method1_int16(), method2_float(), and method2_int16().
#define MUL_MIN 0.1 |
Referenced by method1_float(), method1_int16(), method2_float(), and method2_int16().
#define NSAMPLES 128 |
Referenced by method2_float(), and method2_int16().
#define SIL_FLOAT (INT_MAX * 0.01) |
Referenced by method1_float(), and method2_float().
#define SIL_S16 (SHRT_MAX * 0.01) |
Referenced by method1_int16(), and method2_int16().
#define SMOOTH_LASTAVG 0.06 |
Referenced by method1_float(), and method1_int16().
#define SMOOTH_MUL 0.06 |
Referenced by method1_float(), and method1_int16().
typedef struct post_plugin_volnorm_s post_plugin_volnorm_t |
typedef struct volnorm_parameters_s volnorm_parameters_t |
|
static |
References _.
Referenced by volnorm_open_plugin().
|
static |
Referenced by volnorm_open_plugin().
|
static |
References volnorm_parameters_s::method.
Referenced by volnorm_open_plugin().
|
static |
References clamp, audio_buffer_s::mem, audio_buffer_s::mem_size, MID_FLOAT, MUL_MAX, MUL_MIN, SIL_FLOAT, SMOOTH_LASTAVG, and SMOOTH_MUL.
Referenced by volnorm_port_put_buffer().
|
static |
References clamp, audio_buffer_s::mem, audio_buffer_s::mem_size, MID_S16, MUL_MAX, MUL_MIN, SIL_S16, SMOOTH_LASTAVG, and SMOOTH_MUL.
Referenced by volnorm_port_put_buffer().
|
static |
References avg, clamp, audio_buffer_s::mem, audio_buffer_s::mem_size, MID_FLOAT, MIN_SAMPLE_SIZE, MUL_MAX, MUL_MIN, NSAMPLES, and SIL_FLOAT.
Referenced by volnorm_port_put_buffer().
|
static |
References avg, clamp, audio_buffer_s::mem, audio_buffer_s::mem_size, MID_S16, MIN_SAMPLE_SIZE, MUL_MAX, MUL_MIN, NSAMPLES, and SIL_S16.
Referenced by volnorm_port_put_buffer().
|
static |
References volnorm_parameters_s::method.
Referenced by volnorm_open_plugin().
|
static |
References _x_post_dispose().
Referenced by volnorm_open_plugin().
void * volnorm_init_plugin | ( | xine_t * | xine, |
const void * | data ) |
References post_plugin_s::dispose, N_, NULL, post_class_s::open_plugin, and volnorm_open_plugin().
|
static |
References _x_post_init(), _x_post_intercept_audio_port(), xine_audio_port_s::close, get_help(), get_param_descr(), get_parameters(), input(), MID_S16, MUL_INIT, xine_post_in_s::name, post_audio_port_s::new_port, NULL, xine_audio_port_s::open, xine_audio_port_s::put_buffer, set_parameters(), xine_post_api_t::set_parameters, volnorm_dispose(), volnorm_port_close(), volnorm_port_open(), volnorm_port_put_buffer(), xine_list_push_back(), and XINE_POST_DATA_PARAMETERS.
Referenced by volnorm_init_plugin().
|
static |
References _x_post_dec_usage, xine_audio_port_s::close, NULL, post_audio_port_s::original_port, and post_audio_port_s::stream.
Referenced by volnorm_open_plugin().
|
static |
|
static |