TUT HEVC Encoder
Loading...
Searching...
No Matches
cfg.c File Reference
#include "cfg.h"
#include "gop.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
Include dependency graph for cfg.c:

Macros

#define OPT(STR)
 

Functions

kvz_configkvz_config_alloc (void)
 
int kvz_config_init (kvz_config *cfg)
 
int kvz_config_destroy (kvz_config *cfg)
 
static int atobool (const char *str)
 
static int parse_enum_n (const char *arg, unsigned num_chars, const char *const *names, int8_t *dst)
 
static int parse_enum (const char *arg, const char *const *names, int8_t *dst)
 
static int parse_tiles_specification (const char *const arg, int32_t *const ntiles, int32_t **const array)
 
static int parse_uint8 (const char *numstr, uint8_t *number, int min, int max)
 
static int parse_array (const char *array, uint8_t *coeff_key, int size, int min, int max)
 
static int parse_pu_depth_list (const char *array, int32_t *depths_min, int32_t *depths_max, int size)
 
static int parse_slice_specification (const char *const arg, int32_t *const nslices, int32_t **const array)
 
int kvz_config_parse (kvz_config *cfg, const char *name, const char *value)
 
void kvz_config_process_lp_gop (kvz_config *cfg)
 
static int validate_hevc_level (kvz_config *const cfg)
 
int kvz_config_validate (const kvz_config *const cfg)
 Check that configuration is sensible.
 

Macro Definition Documentation

◆ OPT

#define OPT ( STR)
Value:
(!strcmp(name, STR))

Function Documentation

◆ atobool()

static int atobool ( const char * str)
static
Here is the caller graph for this function:

◆ kvz_config_alloc()

kvz_config * kvz_config_alloc ( void )

◆ kvz_config_destroy()

int kvz_config_destroy ( kvz_config * cfg)

◆ kvz_config_init()

int kvz_config_init ( kvz_config * cfg)

◆ kvz_config_parse()

int kvz_config_parse ( kvz_config * cfg,
const char * name,
const char * value )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kvz_config_process_lp_gop()

void kvz_config_process_lp_gop ( kvz_config * cfg)
Here is the caller graph for this function:

◆ kvz_config_validate()

int kvz_config_validate ( const kvz_config *const cfg)
Parameters
cfgconfig to check
Returns
1 if the config is ok, otherwise 1
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_array()

static int parse_array ( const char * array,
uint8_t * coeff_key,
int size,
int min,
int max )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_enum()

static int parse_enum ( const char * arg,
const char *const * names,
int8_t * dst )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_enum_n()

static int parse_enum_n ( const char * arg,
unsigned num_chars,
const char *const * names,
int8_t * dst )
static
Here is the caller graph for this function:

◆ parse_pu_depth_list()

static int parse_pu_depth_list ( const char * array,
int32_t * depths_min,
int32_t * depths_max,
int size )
static
Here is the caller graph for this function:

◆ parse_slice_specification()

static int parse_slice_specification ( const char *const arg,
int32_t *const nslices,
int32_t **const array )
static
Here is the caller graph for this function:

◆ parse_tiles_specification()

static int parse_tiles_specification ( const char *const arg,
int32_t *const ntiles,
int32_t **const array )
static
Here is the caller graph for this function:

◆ parse_uint8()

static int parse_uint8 ( const char * numstr,
uint8_t * number,
int min,
int max )
static
Here is the caller graph for this function:

◆ validate_hevc_level()

static int validate_hevc_level ( kvz_config *const cfg)
static
Here is the caller graph for this function: