FFmpeg
Data Structures | Macros | Functions
hashenc.c File Reference
#include "config_components.h"
#include "libavutil/avstring.h"
#include "libavutil/hash.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.h"
#include "mux.h"

Go to the source code of this file.

Data Structures

struct  HashContext
 

Macros

#define OFFSET(x)   offsetof(struct HashContext, x)
 
#define ENC   AV_OPT_FLAG_ENCODING_PARAM
 
#define HASH_OPT(defaulttype)   { "hash", "set hash to use", OFFSET(hash_name), AV_OPT_TYPE_STRING, {.str = defaulttype}, 0, 0, ENC }
 
#define FORMAT_VERSION_OPT   { "format_version", "file format version", OFFSET(format_version), AV_OPT_TYPE_INT, {.i64 = 2}, 1, 2, ENC }
 

Functions

static void hash_free (struct AVFormatContext *s)
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(struct HashContext, x)

Definition at line 40 of file hashenc.c.

◆ ENC

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 41 of file hashenc.c.

◆ HASH_OPT

#define HASH_OPT (   defaulttype)    { "hash", "set hash to use", OFFSET(hash_name), AV_OPT_TYPE_STRING, {.str = defaulttype}, 0, 0, ENC }

Definition at line 42 of file hashenc.c.

◆ FORMAT_VERSION_OPT

#define FORMAT_VERSION_OPT   { "format_version", "file format version", OFFSET(format_version), AV_OPT_TYPE_INT, {.i64 = 2}, 1, 2, ENC }

Definition at line 44 of file hashenc.c.

Function Documentation

◆ hash_free()

static void hash_free ( struct AVFormatContext s)
static

Definition at line 163 of file hashenc.c.