FFmpeg
Functions
raw_color_params.c File Reference
#include "raw_color_params.h"
#include "mem.h"

Go to the source code of this file.

Functions

AVRawColorParamsav_raw_color_params_alloc (size_t *size)
 Allocate an AVRawColorParams structure and zero-initialize it. More...
 
AVRawColorParamsav_raw_color_params_create_side_data (AVFrame *frame)
 Allocate and add an AVRawColorParams structure to an existing AVFrame as AV_FRAME_DATA_RAW_COLOR_PARAMS side data. More...
 

Function Documentation

◆ av_raw_color_params_alloc()

AVRawColorParams* av_raw_color_params_alloc ( size_t *  size)

Allocate an AVRawColorParams structure and zero-initialize it.

Parameters
sizeif non-NULL, set to sizeof(AVRawColorParams)
Returns
the newly allocated struct or NULL on failure

Definition at line 24 of file raw_color_params.c.

◆ av_raw_color_params_create_side_data()

AVRawColorParams* av_raw_color_params_create_side_data ( AVFrame frame)

Allocate and add an AVRawColorParams structure to an existing AVFrame as AV_FRAME_DATA_RAW_COLOR_PARAMS side data.

Returns
the newly allocated struct, or NULL on failure

Definition at line 36 of file raw_color_params.c.

Referenced by decode_frame().