FFmpeg
Enumerations | Functions
preserve_color.h File Reference
#include <math.h>
#include "libavutil/macros.h"

Go to the source code of this file.

Enumerations

enum  {
  P_NONE, P_LUM, P_MAX, P_AVG,
  P_SUM, P_NRM, P_PWR, NB_PRESERVE
}
 

Functions

static float normalize (float r, float g, float b, float max)
 
static float power (float r, float g, float b, float max)
 
static void preserve_color (int preserve_color, float ir, float ig, float ib, float r, float g, float b, float max, float *icolor, float *ocolor)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
P_NONE 
P_LUM 
P_MAX 
P_AVG 
P_SUM 
P_NRM 
P_PWR 
NB_PRESERVE 

Definition at line 26 of file preserve_color.h.

Function Documentation

◆ normalize()

static float normalize ( float  r,
float  g,
float  b,
float  max 
)
inlinestatic

Definition at line 37 of file preserve_color.h.

Referenced by preserve_color().

◆ power()

static float power ( float  r,
float  g,
float  b,
float  max 
)
inlinestatic

◆ preserve_color()

static void preserve_color ( int  preserve_color,
float  ir,
float  ig,
float  ib,
float  r,
float  g,
float  b,
float  max,
float *  icolor,
float *  ocolor 
)
inlinestatic