FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ffserver_config.c File Reference
#include <float.h>
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/avstring.h"
#include "libavutil/pixdesc.h"
#include "libavutil/avassert.h"
#include "cmdutils.h"
#include "ffserver_config.h"

Go to the source code of this file.

Macros

#define MAX_CHILD_ARGS   64
 
#define ERROR(...)
 
#define WARNING(...)
 

Functions

static int ffserver_save_avoption (const char *opt, const char *arg, int type, FFServerConfig *config)
 
static void vreport_config_error (const char *filename, int line_num, int log_level, int *errors, const char *fmt, va_list vl)
 
static void report_config_error (const char *filename, int line_num, int log_level, int *errors, const char *fmt,...)
 
static int resolve_host (struct in_addr *sin_addr, const char *hostname)
 
void ffserver_get_arg (char *buf, int buf_size, const char **pp)
 
void ffserver_parse_acl_row (FFServerStream *stream, FFServerStream *feed, FFServerIPAddressACL *ext_acl, const char *p, const char *filename, int line_num)
 
static void add_codec (FFServerStream *stream, AVCodecContext *av, FFServerConfig *config)
 
static int ffserver_set_codec (AVCodecContext *ctx, const char *codec_name, FFServerConfig *config)
 
static int ffserver_opt_preset (const char *arg, int type, FFServerConfig *config)
 
static AVOutputFormatffserver_guess_format (const char *short_name, const char *filename, const char *mime_type)
 
static int ffserver_set_int_param (int *dest, const char *value, int factor, int min, int max, FFServerConfig *config, const char *error_msg,...)
 
static int ffserver_set_float_param (float *dest, const char *value, float factor, float min, float max, FFServerConfig *config, const char *error_msg,...)
 
static int ffserver_save_avoption_int (const char *opt, int64_t arg, int type, FFServerConfig *config)
 
static int ffserver_parse_config_global (FFServerConfig *config, const char *cmd, const char **p)
 
static int ffserver_parse_config_feed (FFServerConfig *config, const char *cmd, const char **p, FFServerStream **pfeed)
 
static int ffserver_parse_config_stream (FFServerConfig *config, const char *cmd, const char **p, FFServerStream **pstream)
 
static int ffserver_parse_config_redirect (FFServerConfig *config, const char *cmd, const char **p, FFServerStream **predirect)
 
int ffserver_parse_ffconfig (const char *filename, FFServerConfig *config)
 
void ffserver_free_child_args (void *argsp)
 

Macro Definition Documentation

#define MAX_CHILD_ARGS   64

Definition at line 31 of file ffserver_config.c.

Referenced by ffserver_free_child_args(), and ffserver_parse_config_feed().

#define ERROR (   ...)
Value:
AV_LOG_ERROR, &config->errors, __VA_ARGS__)
static void report_config_error(const char *filename, int line_num, int log_level, int *errors, const char *fmt,...)
static FFServerConfig config
Definition: ffserver.c:193
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176

Definition at line 42 of file ffserver_config.c.

Referenced by ffserver_parse_config_feed(), ffserver_parse_config_global(), ffserver_parse_config_redirect(), ffserver_parse_config_stream(), ffserver_parse_ffconfig(), and main().

#define WARNING (   ...)
Value:
AV_LOG_WARNING, &config->warnings, __VA_ARGS__)
static void report_config_error(const char *filename, int line_num, int log_level, int *errors, const char *fmt,...)
#define AV_LOG_WARNING
Something somehow does not look correct.
Definition: log.h:182
static FFServerConfig config
Definition: ffserver.c:193

Definition at line 44 of file ffserver_config.c.

Referenced by add_codec(), ffserver_parse_config_feed(), ffserver_parse_config_global(), and ffserver_parse_config_stream().

Function Documentation

static int ffserver_save_avoption ( const char *  opt,
const char *  arg,
int  type,
FFServerConfig config 
)
static
static void vreport_config_error ( const char *  filename,
int  line_num,
int  log_level,
int errors,
const char *  fmt,
va_list  vl 
)
static
static void report_config_error ( const char *  filename,
int  line_num,
int  log_level,
int errors,
const char *  fmt,
  ... 
)
static

Definition at line 442 of file ffserver_config.c.

Referenced by add_codec(), ffserver_save_avoption(), and ffserver_set_codec().

static int resolve_host ( struct in_addr *  sin_addr,
const char *  hostname 
)
static
void ffserver_get_arg ( char *  buf,
int  buf_size,
const char **  pp 
)
void ffserver_parse_acl_row ( FFServerStream stream,
FFServerStream feed,
FFServerIPAddressACL ext_acl,
const char *  p,
const char *  filename,
int  line_num 
)
static void add_codec ( FFServerStream stream,
AVCodecContext av,
FFServerConfig config 
)
static

Definition at line 187 of file ffserver_config.c.

Referenced by ffserver_parse_config_stream().

static int ffserver_set_codec ( AVCodecContext ctx,
const char *  codec_name,
FFServerConfig config 
)
static
static int ffserver_opt_preset ( const char *  arg,
int  type,
FFServerConfig config 
)
static

Definition at line 356 of file ffserver_config.c.

Referenced by ffserver_parse_config_stream().

static AVOutputFormat* ffserver_guess_format ( const char *  short_name,
const char *  filename,
const char *  mime_type 
)
static

Definition at line 411 of file ffserver_config.c.

Referenced by ffserver_parse_config_stream().

static int ffserver_set_int_param ( int dest,
const char *  value,
int  factor,
int  min,
int  max,
FFServerConfig config,
const char *  error_msg,
  ... 
)
static
static int ffserver_set_float_param ( float *  dest,
const char *  value,
float  factor,
float  min,
float  max,
FFServerConfig config,
const char *  error_msg,
  ... 
)
static

Definition at line 485 of file ffserver_config.c.

Referenced by ffserver_parse_config_stream().

static int ffserver_save_avoption_int ( const char *  opt,
int64_t  arg,
int  type,
FFServerConfig config 
)
static

Definition at line 603 of file ffserver_config.c.

Referenced by ffserver_parse_config_stream().

static int ffserver_parse_config_global ( FFServerConfig config,
const char *  cmd,
const char **  p 
)
static

Definition at line 611 of file ffserver_config.c.

Referenced by ffserver_parse_ffconfig().

static int ffserver_parse_config_feed ( FFServerConfig config,
const char *  cmd,
const char **  p,
FFServerStream **  pfeed 
)
static

Definition at line 690 of file ffserver_config.c.

Referenced by ffserver_parse_ffconfig().

static int ffserver_parse_config_stream ( FFServerConfig config,
const char *  cmd,
const char **  p,
FFServerStream **  pstream 
)
static

Definition at line 798 of file ffserver_config.c.

Referenced by ffserver_parse_ffconfig().

static int ffserver_parse_config_redirect ( FFServerConfig config,
const char *  cmd,
const char **  p,
FFServerStream **  predirect 
)
static

Definition at line 1172 of file ffserver_config.c.

Referenced by ffserver_parse_ffconfig().

int ffserver_parse_ffconfig ( const char *  filename,
FFServerConfig config 
)

Definition at line 1208 of file ffserver_config.c.

Referenced by main().

void ffserver_free_child_args ( void argsp)

Definition at line 1311 of file ffserver_config.c.

Referenced by handle_child_exit().