MP4toDRCOptions

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 MP4_to_DRC.

Updated:
Monday, October 06, 2014


Functions

parseArguments
printOptions
printUsage
setDefaultValues

parseArguments


static inline bool parseArguments (
    int argc,
    char **argv,
    MP4toDRCOptions *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 (
    MP4toDRCOptions *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 (
    MP4toDRCOptions *options) 
Parameters
options

Pointer to an option structure

Discussion

Sets the fields of an option structure to default values


Typedefs

MP4toDRCOptions

Options, which can be parsed from the commandline.


MP4toDRCOptions


Options, which can be parsed from the commandline.

typedef struct MP4toDRCOptionsStruct { 
    char *inputFile; 
    char *wavOutputFile; 
    char *drcOutputFile; 
    int audioTrackNumber; 
    int drcTrackNumber; 
    int debugLevel; 
    bool isJustAskingForHelp; 
} MP4toDRCOptions;  
Fields
inputFile

MP4 input file

wavOutputFile

File, to which the output wav data is written

drcOutputFile

File, to which the output drc bitstream data is written

debugLevel

Determines the level of detail of the logging output

isJustAskingForHelp

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

See Also


Structs and Unions

MP4toDRCOptionsStruct

Options, which can be parsed from the commandline.


MP4toDRCOptionsStruct


Options, which can be parsed from the commandline.

typedef struct MP4toDRCOptionsStruct { 
    char *inputFile; 
    char *wavOutputFile; 
    char *drcOutputFile; 
    int audioTrackNumber; 
    int drcTrackNumber; 
    int debugLevel; 
    bool isJustAskingForHelp; 
} MP4toDRCOptions;  
Fields
inputFile

MP4 input file

wavOutputFile

File, to which the output wav data is written

drcOutputFile

File, to which the output drc bitstream data is written

debugLevel

Determines the level of detail of the logging output

isJustAskingForHelp

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

See Also