21#ifndef SWSCALE_OPS_CHAIN_H
22#define SWSCALE_OPS_CHAIN_H
25#include "libavutil/avconfig.h"
56#if ARCH_X86_64 || ARCH_AARCH64
57static_assert(offsetof(
SwsOpImpl, priv) == 8,
"SwsOpImpl layout mismatch");
58static_assert(
alignof(
SwsOpImpl) ==
sizeof(
void *),
"SwsOpImpl alignment mismatch");
92 const void *
data,
size_t data_size);
136#define SWS_OP_PRIV_PACK(out, data) ff_sws_op_priv_pack(out, &data, sizeof(data))
164 int num_tables,
const SwsUOp *uop,
const int block_size,
SwsAArch64OpImplParams params
static AVFormatContext * ctx
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert0(cond)
assert() equivalent, that is always enabled.
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Memory handling functions.
static void ff_sws_op_priv_pack_refptr(SwsImplResult *out, const void *data)
int ff_sws_op_chain_append(SwsOpChain *chain, SwsFuncPtr func, const void *ref, const void *data, size_t data_size)
static void ff_sws_op_chain_free(SwsOpChain *chain)
void ff_sws_op_chain_free_cb(void *chain)
void(* SwsFuncPtr)(void)
Per-kernel execution context.
int ff_sws_setup_vec4(const SwsImplParams *params, SwsImplResult *out)
SwsOpChain * ff_sws_op_chain_alloc(void)
Copyright (C) 2025 Niklas Haas.
void ff_sws_op_chain_attach(const SwsOpChain *chain, SwsCompiledOp *out)
Attach a SwsOpChain and all metadata to a SwsCompiledOp (as out->priv).
int ff_sws_uop_lookup(SwsContext *ctx, const SwsUOpTable *const tables[], int num_tables, const SwsUOp *uop, const int block_size, SwsOpChain *chain)
"Compile" a single uop by looking it up in a list of fixed size uop tables, in decreasing order of pr...
static void ff_sws_op_priv_pack(SwsImplResult *out, const void *data, size_t size)
int ff_sws_setup_scalar(const SwsImplParams *params, SwsImplResult *out)
Main external API structure.
const SwsUOpTable * table
Compiled "chain" of operations, which can be dispatched efficiently.
DECLARE_ALIGNED_8(uint8_t, impl)[1024]
int(* setup)(const SwsImplParams *params, SwsImplResult *out)
bool(* check)(const SwsImplParams *params)
Copyright (C) 2025 Niklas Haas.
const SwsUOpEntry * entries[]
static int ref[MAX_W *MAX_W]
static const uint8_t *const tables[]
uint8_t SwsCompMask
Bit-mask of components.