FFmpeg
Data Structures | Enumerations | Functions
vf_colordetect.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "libavutil/avassert.h"
#include "libavutil/pixfmt.h"

Go to the source code of this file.

Data Structures

struct  FFColorDetectDSPContext
 

Enumerations

enum  FFAlphaDetect { FF_ALPHA_NONE = -1, FF_ALPHA_UNDETERMINED = 0, FF_ALPHA_TRANSPARENT = 1 << 0, FF_ALPHA_STRAIGHT = (1 << 1) | FF_ALPHA_TRANSPARENT }
 

Functions

void ff_color_detect_dsp_init (FFColorDetectDSPContext *dsp, int depth, enum AVColorRange color_range)
 
void ff_color_detect_dsp_init_aarch64 (FFColorDetectDSPContext *dsp, int depth, enum AVColorRange color_range)
 
void ff_color_detect_dsp_init_x86 (FFColorDetectDSPContext *dsp, int depth, enum AVColorRange color_range)
 
static int ff_detect_range_impl_c (const uint8_t *data, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, uint8_t mpeg_min, uint8_t mpeg_max)
 
static int ff_detect_range_c (const uint8_t *data, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, int mpeg_min, int mpeg_max)
 
static int ff_detect_range16_impl_c (const uint8_t *data, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, uint16_t mpeg_min, uint16_t mpeg_max)
 
static int ff_detect_range16_c (const uint8_t *data, ptrdiff_t stride, ptrdiff_t width, ptrdiff_t height, int mpeg_min, int mpeg_max)
 
static int ff_detect_alpha_full_c (const uint8_t *color, ptrdiff_t color_stride, const uint8_t *alpha, ptrdiff_t alpha_stride, ptrdiff_t width, ptrdiff_t height, int alpha_max, int mpeg_range, int offset)
 
static int ff_detect_alpha_limited_c (const uint8_t *color, ptrdiff_t color_stride, const uint8_t *alpha, ptrdiff_t alpha_stride, ptrdiff_t width, ptrdiff_t height, int alpha_max, int mpeg_range, int offset)
 
static int ff_detect_alpha16_full_c (const uint8_t *color, ptrdiff_t color_stride, const uint8_t *alpha, ptrdiff_t alpha_stride, ptrdiff_t width, ptrdiff_t height, int alpha_max, int mpeg_range, int offset)
 
static int ff_detect_alpha16_limited_c (const uint8_t *color, ptrdiff_t color_stride, const uint8_t *alpha, ptrdiff_t alpha_stride, ptrdiff_t width, ptrdiff_t height, int alpha_max, int mpeg_range, int offset)
 

Enumeration Type Documentation

◆ FFAlphaDetect

Enumerator
FF_ALPHA_NONE 
FF_ALPHA_UNDETERMINED 
FF_ALPHA_TRANSPARENT 

alpha < alpha_max

FF_ALPHA_STRAIGHT 

alpha < pixel

Definition at line 28 of file vf_colordetect.h.

Function Documentation

◆ ff_color_detect_dsp_init()

void ff_color_detect_dsp_init ( FFColorDetectDSPContext dsp,
int  depth,
enum AVColorRange  color_range 
)

Definition at line 229 of file vf_colordetect.c.

Referenced by check_alpha_detect(), check_range_detect(), and config_input().

◆ ff_color_detect_dsp_init_aarch64()

void ff_color_detect_dsp_init_aarch64 ( FFColorDetectDSPContext dsp,
int  depth,
enum AVColorRange  color_range 
)

Definition at line 52 of file vf_colordetect_init.c.

Referenced by ff_color_detect_dsp_init().

◆ ff_color_detect_dsp_init_x86()

void ff_color_detect_dsp_init_x86 ( FFColorDetectDSPContext dsp,
int  depth,
enum AVColorRange  color_range 
)

Definition at line 80 of file vf_colordetect_init.c.

Referenced by ff_color_detect_dsp_init().

◆ ff_detect_range_impl_c()

static int ff_detect_range_impl_c ( const uint8_t *  data,
ptrdiff_t  stride,
ptrdiff_t  width,
ptrdiff_t  height,
uint8_t  mpeg_min,
uint8_t  mpeg_max 
)
inlinestatic

Definition at line 57 of file vf_colordetect.h.

Referenced by ff_detect_range_c().

◆ ff_detect_range_c()

static int ff_detect_range_c ( const uint8_t *  data,
ptrdiff_t  stride,
ptrdiff_t  width,
ptrdiff_t  height,
int  mpeg_min,
int  mpeg_max 
)
inlinestatic

Definition at line 75 of file vf_colordetect.h.

Referenced by ff_color_detect_dsp_init().

◆ ff_detect_range16_impl_c()

static int ff_detect_range16_impl_c ( const uint8_t *  data,
ptrdiff_t  stride,
ptrdiff_t  width,
ptrdiff_t  height,
uint16_t  mpeg_min,
uint16_t  mpeg_max 
)
inlinestatic

Definition at line 84 of file vf_colordetect.h.

Referenced by ff_detect_range16_c().

◆ ff_detect_range16_c()

static int ff_detect_range16_c ( const uint8_t *  data,
ptrdiff_t  stride,
ptrdiff_t  width,
ptrdiff_t  height,
int  mpeg_min,
int  mpeg_max 
)
inlinestatic

Definition at line 103 of file vf_colordetect.h.

Referenced by ff_color_detect_dsp_init().

◆ ff_detect_alpha_full_c()

static int ff_detect_alpha_full_c ( const uint8_t *  color,
ptrdiff_t  color_stride,
const uint8_t *  alpha,
ptrdiff_t  alpha_stride,
ptrdiff_t  width,
ptrdiff_t  height,
int  alpha_max,
int  mpeg_range,
int  offset 
)
inlinestatic

Definition at line 113 of file vf_colordetect.h.

Referenced by ff_color_detect_dsp_init().

◆ ff_detect_alpha_limited_c()

static int ff_detect_alpha_limited_c ( const uint8_t *  color,
ptrdiff_t  color_stride,
const uint8_t *  alpha,
ptrdiff_t  alpha_stride,
ptrdiff_t  width,
ptrdiff_t  height,
int  alpha_max,
int  mpeg_range,
int  offset 
)
inlinestatic

Definition at line 134 of file vf_colordetect.h.

Referenced by ff_color_detect_dsp_init().

◆ ff_detect_alpha16_full_c()

static int ff_detect_alpha16_full_c ( const uint8_t *  color,
ptrdiff_t  color_stride,
const uint8_t *  alpha,
ptrdiff_t  alpha_stride,
ptrdiff_t  width,
ptrdiff_t  height,
int  alpha_max,
int  mpeg_range,
int  offset 
)
inlinestatic

Definition at line 155 of file vf_colordetect.h.

Referenced by ff_color_detect_dsp_init().

◆ ff_detect_alpha16_limited_c()

static int ff_detect_alpha16_limited_c ( const uint8_t *  color,
ptrdiff_t  color_stride,
const uint8_t *  alpha,
ptrdiff_t  alpha_stride,
ptrdiff_t  width,
ptrdiff_t  height,
int  alpha_max,
int  mpeg_range,
int  offset 
)
inlinestatic

Definition at line 178 of file vf_colordetect.h.

Referenced by ff_color_detect_dsp_init().