46#define ENTRY(fname, ...) extern void fname(void);
54#define ENTRY(fname, ...) { .func = fname, .params = __VA_ARGS__ },
91 for (
int j = 0; j < 5; j++) {
92 const int jj = (j == 0) ? 4 : (j - 1);
93 if (!(p->par.lin.zero &
SWS_MASK(
i, jj))) {
123 static const int8_t
shift[16] = {
124 -7, -6, -5, -4, -3, -2, -1, 0,
125 -7, -6, -5, -4, -3, -2, -1, 0,
132 static const uint8_t
shift[16] = {
133 7, 6, 5, 4, 3, 2, 1, 0,
134 7, 6, 5, 4, 3, 2, 1, 0,
147 static const uint8_t
zero[16];
181 .block_size = block_size,
206 void ff_sws_process_0001_neon(
void);
207 void ff_sws_process_0011_neon(
void);
208 void ff_sws_process_0111_neon(
void);
209 void ff_sws_process_1111_neon(
void);
213 case 1: process_func = (
SwsOpFunc) ff_sws_process_0001_neon;
break;
214 case 2: process_func = (
SwsOpFunc) ff_sws_process_0011_neon;
break;
215 case 3: process_func = (
SwsOpFunc) ff_sws_process_0111_neon;
break;
216 case 4: process_func = (
SwsOpFunc) ff_sws_process_1111_neon;
break;
219 out->func = process_func;
static int aarch64_setup_dither(const SwsUOp *uop, SwsImplResult *res)
static int compile_ops_aarch64(SwsContext *ctx, const SwsOpList *ops, SwsCompiledOp *out)
static int aarch64_setup(const SwsUOp *uop, const SwsAArch64OpImplParams *p, SwsImplResult *out)
static int aarch64_setup_linear(const SwsAArch64OpImplParams *p, const SwsUOp *uop, SwsImplResult *res)
static const struct @070174075374214234277303002223103136214276265127 ops_entries[]
SwsAArch64OpImplParams params
static int compile_uops_aarch64(SwsContext *ctx, const SwsUOpList *uops, SwsCompiledOp *out)
const SwsOpBackend backend_aarch64
static SwsFuncPtr aarch64_lookup(const SwsAArch64OpImplParams *p)
static AVFormatContext * ctx
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert1(cond)
assert() equivalent, that does not lie in speed critical code.
#define av_assert0(cond)
assert() equivalent, that is always enabled.
#define flags(name, subs,...)
#define i(width, name, range_min, range_max)
@ SWS_BACKEND_AARCH64
Chained AArch64 NEON kernels.
static int zero(InterplayACMContext *s, unsigned ind, unsigned col)
static int shift(int a, int b)
int(* func)(AVBPrint *dst, const char *in, const char *arg)
static atomic_int cpu_flags
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
int ff_sws_op_chain_append(SwsOpChain *chain, SwsFuncPtr func, const void *ref, const void *data, size_t data_size)
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_setup_scalar(const SwsImplParams *params, SwsImplResult *out)
static void ff_sws_op_priv_pack_refptr(SwsImplResult *out, const void *data)
static void ff_sws_op_chain_free(SwsOpChain *chain)
void(* SwsFuncPtr)(void)
Per-kernel execution context.
static void ff_sws_op_priv_pack(SwsImplResult *out, const void *data, size_t size)
#define SWS_OP_PRIV_PACK(out, data)
void(* SwsOpFunc)(const SwsOpExec *exec, const void *priv, int bx_start, int y_start, int bx_end, int y_end)
Process a given range of pixel blocks.
static int linear_num_vregs(const SwsAArch64OpImplParams *params)
#define offsetof_exec_out_bump
#define offsetof_impl_func
#define offsetof_exec_in
These values will be used by ops_asmgen to access fields inside of SwsOpExec and SwsOpImpl.
#define offsetof_exec_out
#define LOOP_MASK(p, idx)
#define offsetof_exec_in_bump
static int aarch64_priv_size(const SwsAArch64OpImplParams *params)
Number of bytes of private data consumed by each kernel; must match what aarch64_setup() packs.
#define offsetof_impl_priv
static void convert_to_aarch64_impl(const SwsUOp *uop, int block_size, SwsAArch64OpImplParams *out)
NOTE: This file is #include'd directly by both the NEON backend and the sws_ops_aarch64 tool.
void av_refstruct_unref(void *objp)
Decrement the reference count of the underlying object and automatically free the object if there are...
void * av_refstruct_ref(void *obj)
Create a new reference to an object managed via this API, i.e.
#define FF_ARRAY_ELEMS(a)
SwsAArch64OpImplParams describes the parameters for an SwsUOpType operation.
Main external API structure.
Compiled "chain" of operations, which can be dispatched efficiently.
Copyright (C) 2026 Niklas Haas.
Helper struct for representing a list of operations.
union SwsUOp::@242237116251216327057105100216205033300341206345 data
static void error(const char *err)
int ff_sws_ops_translate(SwsContext *ctx, const SwsOpList *ops, SwsUOpFlags flags, SwsUOpList *uops)
Translate a list of operations down to micro-ops, which can be further optimized and then directly ex...
SwsUOpList * ff_sws_uop_list_alloc(void)
void ff_sws_uop_list_free(SwsUOpList **p_ops)