FFmpeg
Data Fields
AVProResRawColorParams Struct Reference

ProRes RAW per-frame color transform, parsed from the prrf frame header. More...

#include <raw_color_params.h>

Data Fields

AVRational wb_red
 White balance multiplier for the red channel, applied pre-debayer. More...
 
AVRational wb_blue
 White balance multiplier for the blue channel, applied pre-debayer. More...
 
AVRational color_matrix [3][3]
 3x3 row-major color matrix from camera RGB to linear-light CIE 1931 XYZ relative to the D65 illuminant, applied post-debayer. More...
 
AVRational gain
 Post-matrix scene-linear scaling factor. More...
 

Detailed Description

ProRes RAW per-frame color transform, parsed from the prrf frame header.

The correct rendering pipeline is: -> (sample - black_level) / (white_level - black_level) -> per-channel white balance (wb_red, 1.0 for G, wb_blue) pre-debayer -> debayer -> color_matrix (camera RGB -> CIE 1931 XYZ relative to D65) -> gain (scene-linear scale)

Black/white levels live on the outer AVRawColorParams. The matrix output is linear-light CIE XYZ D65; convert to a working RGB space downstream.

Note
The struct must be allocated as part of AVRawColorParams using av_raw_color_params_alloc(). Its size is not a part of the public ABI.

Definition at line 56 of file raw_color_params.h.

Field Documentation

◆ wb_red

AVRational AVProResRawColorParams::wb_red

White balance multiplier for the red channel, applied pre-debayer.

Definition at line 60 of file raw_color_params.h.

Referenced by decode_frame().

◆ wb_blue

AVRational AVProResRawColorParams::wb_blue

White balance multiplier for the blue channel, applied pre-debayer.

(The green channel is implicit 1.0 for ProRes RAW)

Definition at line 66 of file raw_color_params.h.

Referenced by decode_frame().

◆ color_matrix

AVRational AVProResRawColorParams::color_matrix[3][3]

3x3 row-major color matrix from camera RGB to linear-light CIE 1931 XYZ relative to the D65 illuminant, applied post-debayer.

out[i] = sum_j color_matrix[i][j] * in[j].

Definition at line 73 of file raw_color_params.h.

Referenced by decode_frame().

◆ gain

AVRational AVProResRawColorParams::gain

Post-matrix scene-linear scaling factor.

Encodes highlight headroom the encoder reserved; multiply the matrixed values by this to recover scene-linear light.

Definition at line 80 of file raw_color_params.h.

Referenced by decode_frame().


The documentation for this struct was generated from the following file: