FFmpeg
Loading...
Searching...
No Matches
vf_threshold_init.c File Reference
#include <stdint.h>
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/x86/cpu.h"
#include "libavfilter/threshold.h"

Go to the source code of this file.

Macros

#define THRESHOLD_FUNC(depth, opt)
 
#define THRESHOLD_X86(depth, opt, vec_elements)
 

Functions

static void threshold8_tail (const uint8_t *in, const uint8_t *threshold, const uint8_t *min, const uint8_t *max, uint8_t *out, ptrdiff_t ilinesize, ptrdiff_t tlinesize, ptrdiff_t flinesize, ptrdiff_t slinesize, ptrdiff_t olinesize, int start, int end, int h)
 
static void threshold16_tail (const uint8_t *iin, const uint8_t *tthreshold, const uint8_t *ffirst, const uint8_t *ssecond, uint8_t *oout, ptrdiff_t ilinesize, ptrdiff_t tlinesize, ptrdiff_t flinesize, ptrdiff_t slinesize, ptrdiff_t olinesize, int start, int end, int h)
 
av_cold void ff_threshold_init_x86 (ThresholdContext *s)
 

Macro Definition Documentation

◆ THRESHOLD_FUNC

#define THRESHOLD_FUNC ( depth,
opt )
Value:
void ff_threshold##depth##_##opt(const uint8_t *in, const uint8_t *threshold,\
const uint8_t *min, const uint8_t *max, \
uint8_t *out, \
ptrdiff_t ilinesize, ptrdiff_t tlinesize, \
ptrdiff_t flinesize, ptrdiff_t slinesize, \
ptrdiff_t olinesize, \
int w, int h);
#define _
static FILE * out
#define min(a, b)
#define max(a, b)
uint8_t w
Definition llvidencdsp.c:39

Definition at line 28 of file vf_threshold_init.c.

◆ THRESHOLD_X86

#define THRESHOLD_X86 ( depth,
opt,
vec_elements )
Value:
static void threshold##depth##_##opt##_x86(const uint8_t *in, const uint8_t *threshold, \
const uint8_t *min, const uint8_t *max, \
uint8_t *out, \
ptrdiff_t ilinesize, ptrdiff_t tlinesize, \
ptrdiff_t flinesize, ptrdiff_t slinesize, \
ptrdiff_t olinesize, \
int w, int h) \
{ \
int aligned_w = w & ~((vec_elements) - 1); \
if (aligned_w > 0) \
ff_threshold##depth##_##opt(in, threshold, min, max, out, \
ilinesize, tlinesize, flinesize, slinesize, olinesize, \
aligned_w, h); \
if (aligned_w < w) \
threshold##depth##_tail(in, threshold, min, max, out, \
ilinesize, tlinesize, flinesize, slinesize, olinesize, \
aligned_w, w, h); \
}

Definition at line 86 of file vf_threshold_init.c.

Function Documentation

◆ threshold8_tail()

static void threshold8_tail ( const uint8_t * in,
const uint8_t * threshold,
const uint8_t * min,
const uint8_t * max,
uint8_t * out,
ptrdiff_t ilinesize,
ptrdiff_t tlinesize,
ptrdiff_t flinesize,
ptrdiff_t slinesize,
ptrdiff_t olinesize,
int start,
int end,
int h )
static

Definition at line 42 of file vf_threshold_init.c.

Referenced by threshold8_tail().

◆ threshold16_tail()

static void threshold16_tail ( const uint8_t * iin,
const uint8_t * tthreshold,
const uint8_t * ffirst,
const uint8_t * ssecond,
uint8_t * oout,
ptrdiff_t ilinesize,
ptrdiff_t tlinesize,
ptrdiff_t flinesize,
ptrdiff_t slinesize,
ptrdiff_t olinesize,
int start,
int end,
int h )
static

Definition at line 61 of file vf_threshold_init.c.

◆ ff_threshold_init_x86()

av_cold void ff_threshold_init_x86 ( ThresholdContext * s)

Definition at line 111 of file vf_threshold_init.c.

Referenced by ff_threshold_init(), and ff_threshold_init_x86().