DRCtoMP4Options

Author:
Armin Trattnig
Version:
1.0
Includes:
<ctype.h>
<stdio.h>
<stdlib.h>
<unistd.h>
<strings.h>
"Logger.h"
"StringUtils.h"

Introduction

Provides commandline parsing for DRC_to_MP4.

Updated:
Thursday, September 18, 2014


Functions

parseArguments
printOptions
printUsage
setDefaultValues

parseArguments


static inline bool parseArguments (
    int argc,
    char **argv,
    DRCtoMP4Options *options) 
Parameters
argc

argc from main (Number of arguments)

argv

argv from main (Actual argument strings)

options

Pointer to an option structure

Return Value

false, if there are errors. ture, if everything was ok

Discussion

Parses the arguments given with the command line and sets the fields of options


printOptions


static inline void printOptions (
    DRCtoMP4Options *options) 
Parameters
options

Pointer to an option structure

Discussion

Prints the contents of the fields in options


printUsage


static inline void printUsage () 
Discussion

Prints the usage of the fields in options


setDefaultValues


static inline void setDefaultValues (
    DRCtoMP4Options *options) 
Parameters
options

Pointer to an option structure

Discussion

Sets the fields of an option structure to default values


Typedefs

DRCtoMP4Options

Options, which can be parsed from the commandline.


DRCtoMP4Options


Options, which can be parsed from the commandline.

typedef struct DRCtoMP4OptionsStruct { 
    char *drcBitstreamInputFile; 
    char *wavInputFile; 
    char *outputFile; 
    int debugLevel; 
    bool isJustAskingForHelp; 
} DRCtoMP4Options;  
Fields
drcBitstreamInputFile

File, from which drc bitstream input data is read

outputFile

File, to which the output data is written

isJustAskingForHelp

Flag, for indication that the -h for help has been requested.

See Also


Structs and Unions

DRCtoMP4OptionsStruct

Options, which can be parsed from the commandline.


DRCtoMP4OptionsStruct


Options, which can be parsed from the commandline.

typedef struct DRCtoMP4OptionsStruct { 
    char *drcBitstreamInputFile; 
    char *wavInputFile; 
    char *outputFile; 
    int debugLevel; 
    bool isJustAskingForHelp; 
} DRCtoMP4Options;  
Fields
drcBitstreamInputFile

File, from which drc bitstream input data is read

outputFile

File, to which the output data is written

isJustAskingForHelp

Flag, for indication that the -h for help has been requested.

See Also