|
FFmpeg
|
#include "libavutil/avassert.h"#include "libavutil/avconfig.h"#include "libavutil/cpu.h"#include "libavutil/mem.h"#include "ops_internal.h"#include "swscale_internal.h"Go to the source code of this file.
Data Structures | |
| struct | SwsOpImpl |
| struct | SwsOpChain |
| Compiled "chain" of operations, which can be dispatched efficiently. More... | |
| struct | SwsImplParams |
| struct | SwsImplResult |
| struct | SwsUOpEntry |
| struct | SwsUOpTable |
| Copyright (C) 2025 Niklas Haas. More... | |
Macros | |
| #define | SWS_OP_PRIV_PACK(out, data) |
Typedefs | |
| typedef void(* | SwsFuncPtr) (void) |
| Per-kernel execution context. | |
Functions | |
| SwsOpChain * | ff_sws_op_chain_alloc (void) |
| Copyright (C) 2025 Niklas Haas. | |
| void | ff_sws_op_chain_free_cb (void *chain) |
| static void | ff_sws_op_chain_free (SwsOpChain *chain) |
| int | ff_sws_op_chain_append (SwsOpChain *chain, SwsFuncPtr func, const void *ref, const void *data, size_t data_size) |
| 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) |
| int | ff_sws_setup_vec4 (const SwsImplParams *params, SwsImplResult *out) |
| static void | ff_sws_op_priv_pack (SwsImplResult *out, const void *data, size_t size) |
| static void | ff_sws_op_priv_pack_refptr (SwsImplResult *out, const void *data) |
| 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 preference. | |
Definition at line 136 of file ops_chain.h.
Referenced by aarch64_setup(), DECL_SETUP(), DECL_SETUP(), DECL_SETUP(), ff_sws_setup_scalar(), ff_sws_setup_vec4(), setup_clear(), setup_filter_h(), setup_filter_h_4x4(), setup_filter_v(), setup_linear(), and setup_scale().
| typedef void(* SwsFuncPtr) (void) |
Per-kernel execution context.
Note: This struct is hard-coded in assembly, so do not change the layout.
Definition at line 50 of file ops_chain.h.
| SwsOpChain * ff_sws_op_chain_alloc | ( | void | ) |
Copyright (C) 2025 Niklas Haas.
This file is part of FFmpeg.
FFmpeg is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
FFmpeg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with FFmpeg; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Definition at line 27 of file ops_chain.c.
Referenced by compile_uops_aarch64(), compile_uops_c(), and compile_uops_x86().
| void ff_sws_op_chain_free_cb | ( | void * | chain | ) |
Definition at line 32 of file ops_chain.c.
Referenced by ff_sws_op_chain_attach(), and ff_sws_op_chain_free().
|
inlinestatic |
Definition at line 85 of file ops_chain.h.
Referenced by compile_uops_aarch64(), compile_uops_c(), and compile_uops_x86().
| int ff_sws_op_chain_append | ( | SwsOpChain * | chain, |
| SwsFuncPtr | func, | ||
| const void * | ref, | ||
| const void * | data, | ||
| size_t | data_size ) |
Definition at line 44 of file ops_chain.c.
Referenced by compile_uops_aarch64(), and ff_sws_uop_lookup().
| void ff_sws_op_chain_attach | ( | const SwsOpChain * | chain, |
| SwsCompiledOp * | out ) |
Attach a SwsOpChain and all metadata to a SwsCompiledOp (as out->priv).
Note: This does not initialize *out. The caller is responsible for assigning out->func.
Definition at line 67 of file ops_chain.c.
Referenced by compile_uops_aarch64(), compile_uops_c(), and compile_uops_x86().
| int ff_sws_setup_scalar | ( | const SwsImplParams * | params, |
| SwsImplResult * | out ) |
Definition at line 144 of file ops_chain.c.
Referenced by aarch64_setup().
| int ff_sws_setup_vec4 | ( | const SwsImplParams * | params, |
| SwsImplResult * | out ) |
Definition at line 159 of file ops_chain.c.
Referenced by aarch64_setup().
|
inlinestatic |
Definition at line 137 of file ops_chain.h.
Referenced by aarch64_setup(), aarch64_setup_linear(), and ff_sws_op_priv_pack_refptr().
|
inlinestatic |
Definition at line 144 of file ops_chain.h.
Referenced by aarch64_setup_dither(), DECL_SETUP(), DECL_SETUP(), setup_dither(), and setup_linear().
| 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 preference.
Returns 0 or a negative error code.
Definition at line 77 of file ops_chain.c.
Referenced by compile_uops_c(), and compile_uops_x86().