FFmpeg
Loading...
Searching...
No Matches
vf_lut3d_init.c File Reference

Go to the source code of this file.

Macros

#define DEFINE_INTERP_FUNC(name, format, opt)
 

Functions

av_cold void ff_lut3d_init_x86 (LUT3DContext *s, const AVPixFmtDescriptor *desc)
 

Macro Definition Documentation

◆ DEFINE_INTERP_FUNC

#define DEFINE_INTERP_FUNC ( name,
format,
opt )
Value:
void ff_interp_##name##_##format##_##opt(LUT3DContext *lut3d, Lut3DPreLut *prelut, AVFrame *src, AVFrame *dst, int slice_start, int slice_end, int has_alpha); \
static int interp_##name##_##format##_##opt(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \
{ \
LUT3DContext *lut3d = ctx->priv; \
Lut3DPreLut *prelut = lut3d->prelut.size > 0? &lut3d->prelut: NULL; \
ThreadData *td = arg; \
AVFrame *in = td->in; \
AVFrame *out = td->out; \
int has_alpha = in->linesize[3] && out != in; \
int slice_start = ff_slice_pos(in->height, jobnr, nb_jobs); \
int slice_end = ff_slice_pos(in->height, jobnr + 1, nb_jobs); \
ff_interp_##name##_##format##_##opt(lut3d, prelut, in, out, slice_start, slice_end, has_alpha); \
return 0; \
}
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:87
static const char *const format[]
Definition af_aiir.c:444
#define _
static FILE * out
static AVFormatContext * ctx
#define NULL
Definition coverity.c:32
const char * arg
Definition jacosubdec.c:65
static int ff_slice_pos(int total, int jobnr, int nb_jobs)
Compute the boundary index for a slice when work of size total is split into nb_jobs slices.
Definition filters.h:763
static int slice_end(AVCodecContext *avctx, AVFrame *pict, int *got_output)
Handle slice ends.
Definition mpeg12dec.c:1697
const char * name
Definition qsvenc.c:142
An instance of a filter.
Definition avfilter.h:273
This structure describes decoded (raw) audio or video data.
Definition frame.h:472
int height
Definition frame.h:544
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
Definition frame.h:517
Lut3DPreLut prelut
Definition lut3d.h:67
int size
Definition lut3d.h:49
Used for passing data between threads.
Definition dsddec.c:71
AVFrame * out
#define src
Definition vp8dsp.c:248
static int slice_start(SliceContext *sc, VVCContext *s, VVCFrameContext *fc, const CodedBitstreamUnit *unit, const int is_first_slice)
Definition dec.c:844

Definition at line 27 of file vf_lut3d_init.c.

Function Documentation

◆ ff_lut3d_init_x86()

av_cold void ff_lut3d_init_x86 ( LUT3DContext * s,
const AVPixFmtDescriptor * desc )

Definition at line 59 of file vf_lut3d_init.c.