FFmpeg
Loading...
Searching...
No Matches
hashenc.c File Reference
#include "config_components.h"
#include "libavutil/avstring.h"
#include "libavutil/hash.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.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)
 
#define ENC   AV_OPT_FLAG_ENCODING_PARAM
 
#define HASH_OPT(defaulttype)
 
#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_print_sidedata (struct AVFormatContext *s, const AVPacketSideData *sd, int side_data_elems)
 
static void hash_free (struct AVFormatContext *s)
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 44 of file hashenc.c.

◆ ENC

#define ENC   AV_OPT_FLAG_ENCODING_PARAM

Definition at line 45 of file hashenc.c.

◆ HASH_OPT

#define HASH_OPT ( defaulttype)
Value:
{ "hash", "set hash to use", OFFSET(hash_name), AV_OPT_TYPE_STRING, {.str = defaulttype}, 0, 0, ENC }
#define ENC
Definition caca.c:198
#define OFFSET(x)
@ AV_OPT_TYPE_STRING
Underlying C type is a uint8_t* that is either NULL or points to a C string allocated with the av_mal...
Definition opt.h:275

Definition at line 46 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 48 of file hashenc.c.

Function Documentation

◆ hash_print_sidedata()

static void hash_print_sidedata ( struct AVFormatContext * s,
const AVPacketSideData * sd,
int side_data_elems )
static

Definition at line 119 of file hashenc.c.

◆ hash_free()

static void hash_free ( struct AVFormatContext * s)
static

Definition at line 188 of file hashenc.c.