uvg266/src/config.h
Ari Koivula 44a5498e30 Reorder includes to avoid hidden dependencies.
- Includes of global.h have been moved to headers because most headers
  require stdint.h.
- Includes required by the header have been moved from the .c to the header.
- Spaces have been added between includes to distinguish classes of includes.
2013-09-18 12:29:23 +03:00

39 lines
976 B
C

/**
* HEVC Encoder
* - Marko Viitanen ( fador at iki.fi ), Tampere University of Technology, Department of Pervasive Computing.
*/
/*! \file config.h
\brief Configuration header
\author Marko Viitanen
\date 2012-05
Contains all configuration system related functions and structs
*/
#ifndef _CONFIG_H_
#define _CONFIG_H_
#include "global.h"
/*!
\brief Struct which contains all configuration data
*/
typedef struct
{
char *input; /*!< \brief Pointer to input filename */
char *output; /*!< \brief Pointer to output filename */
char *debug; /*!< \brief Pointer to debug output */
int32_t frames; /*!< \brief Number of frames to decode */
int32_t width; /*!< \brief frame width */
int32_t height; /*!< \brief frame height */
} 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