FFmpeg
Data Structures | Enumerations | Functions
raw_color_params.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "frame.h"
#include "rational.h"

Go to the source code of this file.

Data Structures

struct  AVProResRawColorParams
 ProRes RAW per-frame color transform, parsed from the prrf frame header. More...
 
struct  AVRawColorParams
 Per-frame color information for a RAW camera codec. More...
 

Enumerations

enum  AVRawColorParamsType { AV_RAW_COLOR_PARAMS_NONE = 0, AV_RAW_COLOR_PARAMS_PRORES_RAW }
 

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...
 

Enumeration Type Documentation

◆ AVRawColorParamsType

Enumerator
AV_RAW_COLOR_PARAMS_NONE 
AV_RAW_COLOR_PARAMS_PRORES_RAW 

The union is valid when interpreted as AVProResRawColorParams (codec.prores_raw).

Definition at line 30 of file raw_color_params.h.

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().