FFmpeg
Functions | Variables
dovi_rpu.c File Reference
#include "libavutil/mem.h"
#include "dovi_rpu.h"
#include "libavutil/refstruct.h"

Go to the source code of this file.

Functions

void ff_dovi_ctx_unref (DOVIContext *s)
 Completely reset a DOVIContext, preserving only logctx. More...
 
void ff_dovi_ctx_flush (DOVIContext *s)
 Partially reset the internal state. More...
 
void ff_dovi_ctx_replace (DOVIContext *s, const DOVIContext *s0)
 
int ff_dovi_guess_profile_hevc (const AVDOVIRpuDataHeader *hdr)
 Internal helper function to guess the correct DV profile for HEVC. More...
 

Variables

const AVDOVIColorMetadata ff_dovi_color_default
 

Function Documentation

◆ ff_dovi_ctx_unref()

void ff_dovi_ctx_unref ( DOVIContext s)

Completely reset a DOVIContext, preserving only logctx.

Definition at line 29 of file dovi_rpu.c.

Referenced by aom_free(), av1_decode_free(), dovi_rpu_close(), eb_enc_close(), ff_dovi_rpu_parse(), hevc_decode_free(), libdav1d_close(), and libx265_encode_close().

◆ ff_dovi_ctx_flush()

void ff_dovi_ctx_flush ( DOVIContext s)

Partially reset the internal state.

Resets per-frame state, but preserves the stream-wide configuration record.

Definition at line 42 of file dovi_rpu.c.

Referenced by hevc_decode_flush(), and update_rpu().

◆ ff_dovi_ctx_replace()

void ff_dovi_ctx_replace ( DOVIContext s,
const DOVIContext s0 
)

Definition at line 58 of file dovi_rpu.c.

◆ ff_dovi_guess_profile_hevc()

int ff_dovi_guess_profile_hevc ( const AVDOVIRpuDataHeader hdr)

Internal helper function to guess the correct DV profile for HEVC.

Returns the profile number or 0 if unknown.

Definition at line 71 of file dovi_rpu.c.

Referenced by ff_dovi_configure_ext(), ff_dovi_rpu_generate(), and ff_dovi_rpu_parse().

Variable Documentation

◆ ff_dovi_color_default

const AVDOVIColorMetadata ff_dovi_color_default

Definition at line 93 of file dovi_rpu.c.

Referenced by ff_dovi_rpu_generate(), and ff_dovi_rpu_parse().