2012-05-30 12:10:23 +00:00
|
|
|
/**
|
2013-09-18 14:29:30 +00:00
|
|
|
* \file
|
|
|
|
* \brief Handles parsing and storing of configuration of the encoder.
|
|
|
|
*
|
|
|
|
* \author Marko Viitanen ( fador@iki.fi ),
|
|
|
|
* Tampere University of Technology,
|
|
|
|
* Department of Pervasive Computing.
|
|
|
|
* \author Ari Koivula ( ari@koivu.la ),
|
|
|
|
* Tampere University of Technology,
|
|
|
|
* Department of Pervasive Computing.
|
2012-05-30 12:10:23 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CONFIG_H_
|
|
|
|
#define _CONFIG_H_
|
|
|
|
|
2013-09-18 09:16:03 +00:00
|
|
|
#include "global.h"
|
|
|
|
|
|
|
|
|
2012-05-30 12:10:23 +00:00
|
|
|
/*!
|
|
|
|
\brief Struct which contains all configuration data
|
|
|
|
*/
|
|
|
|
typedef struct
|
|
|
|
{
|
2012-06-05 11:01:47 +00:00
|
|
|
char *input; /*!< \brief Pointer to input filename */
|
|
|
|
char *output; /*!< \brief Pointer to output filename */
|
|
|
|
char *debug; /*!< \brief Pointer to debug output */
|
2013-04-18 11:04:15 +00:00
|
|
|
int32_t frames; /*!< \brief Number of frames to decode */
|
|
|
|
int32_t width; /*!< \brief frame width */
|
|
|
|
int32_t height; /*!< \brief frame height */
|
2012-05-30 12:10:23 +00:00
|
|
|
} config;
|
|
|
|
|
|
|
|
/* Function definitions */
|
|
|
|
config* config_alloc();
|
|
|
|
int config_init(config* cfg);
|
|
|
|
int config_destroy(config* cfg);
|
|
|
|
int config_read(config* cfg,int argc, char* argv[]);
|
|
|
|
|
|
|
|
#endif
|