#include <config.h>
#include "lame.h"
#include "machine.h"
#include "set_get.h"
#include "encoder.h"
#include "util.h"
#include "lame_global_flags.h"
Include dependency graph for presets.c:
Go to the source code of this file.
Defines | |
#define | SET_OPTION(opt, val, def) |
Functions | |
static int | min_int (int a, int b) |
static int | max_int (int a, int b) |
int | apply_abr_preset (lame_global_flags *gfp, int preset, int enforce) |
int | apply_preset (lame_global_flags *gfp, int preset, int enforce) |
#define SET_OPTION | ( | opt, | |||
val, | |||||
def | ) |
Value:
if (enforce) \ (void) lame_set_##opt(gfp, val); \ else if (lame_get_##opt(gfp) == def) \ (void) lame_set_##opt(gfp, val);
Definition at line 33 of file presets.c.
Referenced by apply_abr_preset(), and apply_preset().
int apply_abr_preset | ( | lame_global_flags * | gfp, | |
int | preset, | |||
int | enforce | |||
) |
Definition at line 60 of file presets.c.
References gfp, lame_get_exp_nspsytune(), lame_get_VBR_mean_bitrate_kbps(), lame_set_brate(), lame_set_exp_nspsytune(), lame_set_sfscale(), lame_set_VBR(), lame_set_VBR_mean_bitrate_kbps(), max_int(), min_int(), nearestBitrateFullIndex(), PSY_NSPSYTUNE, SET_OPTION, and vbr_abr.
Referenced by apply_preset().
Here is the call graph for this function:
int apply_preset | ( | lame_global_flags * | gfp, | |
int | preset, | |||
int | enforce | |||
) |
Definition at line 176 of file presets.c.
References apply_abr_preset(), EXTREME, EXTREME_FAST, f, gfp, INSANE, lame_get_exp_nspsytune(), lame_get_VBR(), lame_set_exp_nspsytune(), lame_set_experimentalY(), lame_set_VBR(), lame_set_VBR_q(), MEDIUM, MEDIUM_FAST, lame_global_struct::preset, PSY_NSPSYTUNE, R3MIX, SET_OPTION, STANDARD, STANDARD_FAST, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, vbr_mtrh, and vbr_rh.
Referenced by lame_init_params(), and lame_set_preset().
Here is the call graph for this function:
static int max_int | ( | int | a, | |
int | b | |||
) | [inline, static] |
static int min_int | ( | int | a, | |
int | b | |||
) | [inline, static] |