FFmpeg
Data Structures | Enumerations | Functions
film_grain_params.h File Reference
#include "frame.h"

Go to the source code of this file.

Data Structures

struct  AVFilmGrainAOMParams
 This structure describes how to handle film grain synthesis for AOM codecs. More...
 
struct  AVFilmGrainH274Params
 This structure describes how to handle film grain synthesis for codecs using the ITU-T H.274 Versatile suplemental enhancement information message. More...
 
struct  AVFilmGrainParams
 This structure describes how to handle film grain synthesis in video for specific codecs. More...
 

Enumerations

enum  AVFilmGrainParamsType { AV_FILM_GRAIN_PARAMS_NONE = 0, AV_FILM_GRAIN_PARAMS_AV1, AV_FILM_GRAIN_PARAMS_H274 }
 

Functions

AVFilmGrainParamsav_film_grain_params_alloc (size_t *size)
 Allocate an AVFilmGrainParams structure and set its fields to default values. More...
 
AVFilmGrainParamsav_film_grain_params_create_side_data (AVFrame *frame)
 Allocate a complete AVFilmGrainParams and add it to the frame. More...
 

Enumeration Type Documentation

◆ AVFilmGrainParamsType

Enumerator
AV_FILM_GRAIN_PARAMS_NONE 
AV_FILM_GRAIN_PARAMS_AV1 

The union is valid when interpreted as AVFilmGrainAOMParams (codec.aom)

AV_FILM_GRAIN_PARAMS_H274 

The union is valid when interpreted as AVFilmGrainH274Params (codec.h274)

Definition at line 24 of file film_grain_params.h.

Function Documentation

◆ av_film_grain_params_alloc()

AVFilmGrainParams* av_film_grain_params_alloc ( size_t *  size)

Allocate an AVFilmGrainParams structure and set its fields to default values.

The resulting struct can be freed using av_freep(). If size is not NULL it will be set to the number of bytes allocated.

Returns
An AVFilmGrainParams filled with default values or NULL on failure.

Allocate an AVFilmGrainParams structure and set its fields to default values.

FFmpeg is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

FFmpeg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with FFmpeg; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 21 of file film_grain_params.c.

◆ av_film_grain_params_create_side_data()

AVFilmGrainParams* av_film_grain_params_create_side_data ( AVFrame frame)

Allocate a complete AVFilmGrainParams and add it to the frame.

Parameters
frameThe frame which side data is added to.
Returns
The AVFilmGrainParams structure to be filled by caller.

Definition at line 31 of file film_grain_params.c.

Referenced by export_film_grain(), h264_export_frame_props(), libdav1d_receive_frame(), and set_side_data().