|
FFmpeg
|
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... | |
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.
Definition at line 56 of file raw_color_params.h.
| 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().
| 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().
| 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().
| 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().
1.8.17