FFmpeg
Data Structures | Functions
h274.h File Reference
#include "libavutil/film_grain_params.h"

Go to the source code of this file.

Data Structures

struct  H274FilmGrainDatabase
 

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. More...
 
int ff_h274_apply_film_grain (AVFrame *out, const AVFrame *in, H274FilmGrainDatabase *db, const AVFilmGrainParams *params)
 

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 49 of file h274.h.

Referenced by hevc_frame_start().

◆ ff_h274_apply_film_grain()

int ff_h274_apply_film_grain ( AVFrame out,
const AVFrame in,
H274FilmGrainDatabase db,
const AVFilmGrainParams params 
)

Definition at line 217 of file h274.c.

Referenced by ff_h264_field_end(), and hevc_frame_end().