FFmpeg
Loading...
Searching...
No Matches
h274.h File Reference

H.274 film grain synthesis. More...

Go to the source code of this file.

Data Structures

struct  H274SEIPictureHash
 
struct  H274SEIFrameFieldInfo
 

Functions

static int ff_h274_film_grain_params_supported (int model_id, enum AVPixelFormat pix_fmt)
 Check whether ff_h274_apply_film_grain() supports the given parameter combination.
 
int ff_h274_apply_film_grain (AVFrame *out, const AVFrame *in, const AVFilmGrainParams *params)
 
int ff_h274_hash_init (H274HashContext **c, int type)
 
int ff_h274_hash_verify (H274HashContext *c, const H274SEIPictureHash *hash, const AVFrame *frame, int coded_width, int coded_height)
 
void ff_h274_hash_freep (H274HashContext **c)
 

Detailed Description

H.274 film grain synthesis.

Author
Niklas Haas ffmpe.nosp@m.g@ha.nosp@m.asn.x.nosp@m.yz

Definition in file h274.h.

Function Documentation

◆ ff_h274_film_grain_params_supported()

static int ff_h274_film_grain_params_supported ( int model_id,
enum AVPixelFormat pix_fmt )
inlinestatic

Check whether ff_h274_apply_film_grain() supports the given parameter combination.

Parameters
model_idmodel_id from AVFilmGrainParams to be supplied
pix_fmtpixel format of the frames to be supplied

Definition at line 39 of file h274.h.

Referenced by check_film_grain(), and hevc_frame_start().

◆ ff_h274_apply_film_grain()

int ff_h274_apply_film_grain ( AVFrame * out,
const AVFrame * in,
const AVFilmGrainParams * params )

Definition at line 245 of file h274.c.

Referenced by ff_h264_field_end(), frame_end(), and hevc_frame_end().

◆ ff_h274_hash_init()

int ff_h274_hash_init ( H274HashContext ** c,
int type )

Definition at line 929 of file h274.c.

Referenced by frame_end().

◆ ff_h274_hash_verify()

int ff_h274_hash_verify ( H274HashContext * c,
const H274SEIPictureHash * hash,
const AVFrame * frame,
int coded_width,
int coded_height )

Definition at line 964 of file h274.c.

Referenced by frame_end().

◆ ff_h274_hash_freep()

void ff_h274_hash_freep ( H274HashContext ** c)

Definition at line 916 of file h274.c.

Referenced by vvc_decode_free().