FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
color_utils.c File Reference
#include "libavutil/color_utils.h"
#include "libavutil/pixfmt.h"

Go to the source code of this file.

Functions

double avpriv_get_gamma_from_trc (enum AVColorTransferCharacteristic trc)
 Determine a suitable 'gamma' value to match the supplied AVColorTransferCharacteristic. More...
 

Function Documentation

double avpriv_get_gamma_from_trc ( enum AVColorTransferCharacteristic  trc)

Determine a suitable 'gamma' value to match the supplied AVColorTransferCharacteristic.

See Apple Technical Note TN2257 (https://developer.apple.com/library/mac/technotes/tn2257/_index.html)

Returns
Will return an approximation to the simple gamma function matching the supplied Transfer Characteristic, Will return 0.0 for any we cannot reasonably match against.

Definition at line 24 of file color_utils.c.

Referenced by mov_write_gama_tag(), and png_get_gama().