ffmpeg.libavutil.hash

@file @ingroup lavu_hash_generic Generic hashing API

Members

Functions

av_hash_alloc
int av_hash_alloc(AVHashContext** ctx, const(char)* name)

Allocate a hash context for the algorithm specified by name.

av_hash_final
void av_hash_final(AVHashContext* ctx, ubyte* dst)

Finalize a hash context and compute the actual hash value.

av_hash_final_b64
void av_hash_final_b64(AVHashContext* ctx, ubyte* dst, int size)

Finalize a hash context and store the Base64 representation of the actual hash value as a string.

av_hash_final_bin
void av_hash_final_bin(AVHashContext* ctx, ubyte* dst, int size)

Finalize a hash context and store the actual hash value in a buffer.

av_hash_final_hex
void av_hash_final_hex(AVHashContext* ctx, ubyte* dst, int size)

Finalize a hash context and store the hexadecimal representation of the actual hash value as a string.

av_hash_freep
void av_hash_freep(AVHashContext** ctx)

Free hash context and set hash context pointer to NULL.

av_hash_get_name
const(char)* av_hash_get_name(const(AVHashContext)* ctx)

Get the name of the algorithm corresponding to the given hash context.

av_hash_get_size
int av_hash_get_size(const(AVHashContext)* ctx)

Get the size of the resulting hash value in bytes.

av_hash_init
void av_hash_init(AVHashContext* ctx)

Initialize or reset a hash context.

av_hash_names
const(char)* av_hash_names(int i)

Get the names of available hash algorithms.

av_hash_update
void av_hash_update(AVHashContext* ctx, const(ubyte)* src, int len)

Update a hash context with additional data.

Manifest constants

AV_HASH_MAX_SIZE
enum AV_HASH_MAX_SIZE;

Maximum value that av_hash_get_size() will currently return.

Structs

AVHashContext
struct AVHashContext

@example ffhash.c This example is a simple command line application that takes one or more arguments. It demonstrates a typical use of the hashing API with allocation, initialization, updating, and finalizing.

Meta