Logo Search packages:      
Sourcecode: aften version File versions  Download package

opts.c File Reference

Detailed Description

Aften: A/52 audio encoder Copyright (c) 2007 Justin Ruggles 2007 Prakash Punnoor <prakash@punnoor.de>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Commandline options

Definition in file opts.c.

#include "common.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include "opts.h"
#include "pcm.h"

Go to the source code of this file.


struct  OptionItem
struct  PrivateOptions


#define CHMASK_FC   0x2
#define CHMASK_FL   0x1
#define CHMASK_FR   0x4
#define CHMASK_LFE   0x100
#define CHMASK_M1   0x40
#define CHMASK_M2   0x80
#define CHMASK_S   0x10
#define CHMASK_SL   0x8
#define CHMASK_SR   0x20
#define OPTION_FLAG_NO_PARAM   0x1
#define OPTION_FLAGS_NONE   0x0
#define OPTION_ITEM_COUNT   43


static int parse_bool_or_int (const char *param, int *val)
static int parse_ch (PARSE_PARAMS)
static int parse_chconfig (PARSE_PARAMS)
int parse_commandline (int argc, char **argv, CommandOptions *opts)
static int parse_h (PARSE_PARAMS)
static int parse_integer_value (int val, int min, int max, char *name, int *out)
static int parse_longhelp (PARSE_PARAMS)
static int parse_nosimd (PARSE_PARAMS)
static int parse_q (PARSE_PARAMS)
static int parse_raw_fmt (PARSE_PARAMS)
static int parse_raw_option (PARSE_PARAMS)
static int parse_simple_int_o (PARSE_PARAMS)
static int parse_simple_int_s (PARSE_PARAMS)
static int parse_version (PARSE_PARAMS)
static int parse_xbsi1_opt (PARSE_PARAMS)
static int parse_xbsi2_opt (PARSE_PARAMS)
static int validate_input_files (char **infile, int input_mask, int *acmod, int *lfe)


static const OptionItem options_list [OPTION_ITEM_COUNT]

Generated by  Doxygen 1.6.0   Back to index