FFmpeg
Data Structures | Macros
hashenc.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/hash.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.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 }
 

Macro Definition Documentation

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

Definition at line 38 of file hashenc.c.

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 39 of file hashenc.c.

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

Definition at line 40 of file hashenc.c.

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

Definition at line 42 of file hashenc.c.