|
FFmpeg
|
#include <assert.h>#include <float.h>#include <stdint.h>#include "libavutil/attributes.h"#include "ops_chain.h"#include "uops_macros.h"Go to the source code of this file.
Data Structures | |
| union | block_t |
| struct | SwsOpIter |
| Internal context holding per-iter execution data. More... | |
Macros | |
| #define | SWS_BLOCK_SIZE 32 |
| Copyright (C) 2026 Niklas Haas. | |
| #define | SIZEOF_BLOCK (sizeof(pixel_t) * SWS_BLOCK_SIZE) |
| #define | SWS_LOOP AV_PRAGMA(GCC ivdep) |
| #define | bitfn2(name, ext) |
| #define | bitfn(name, ext) |
| #define | fn(name) |
| #define | bump_ptr(ptr, bump) |
| #define | X SWS_COMP_TEST(mask, 0) |
| #define | Y SWS_COMP_TEST(mask, 1) |
| #define | Z SWS_COMP_TEST(mask, 2) |
| #define | W SWS_COMP_TEST(mask, 3) |
| #define | DECL_FUNC(NAME, ...) |
| #define | DECL_READ(NAME, ...) |
| #define | DECL_WRITE(NAME, ...) |
| #define | CALL(NAME, ...) |
| #define | CONTINUE(...) |
| #define | DECL_SETUP(NAME, PARAMS, OUT) |
| #define | DECL_IMPL(FUNC, NAME, TYPE, UOP, ...) |
| #define | DECL_IMPL_READ(...) |
| #define | DECL_IMPL_WRITE(...) |
| #define | REF_ENTRY(DUMMY, NAME, ...) |
| #define | DECL_ENTRY(SETUP, NAME, ...) |
| #define SWS_BLOCK_SIZE 32 |
Copyright (C) 2026 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 Helper macros for the C-based backend.
To use these macros, pixel_t should be defined as the type of pixels.
Definition at line 40 of file uops_tmpl.h.
Referenced by compile_uops_c(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_READ(), DECL_READ(), DECL_READ(), DECL_READ(), DECL_SETUP(), DECL_WRITE(), DECL_WRITE(), and process().
| #define SIZEOF_BLOCK (sizeof(pixel_t) * SWS_BLOCK_SIZE) |
Definition at line 50 of file uops_tmpl.h.
Referenced by DECL_READ(), DECL_READ(), DECL_READ(), DECL_WRITE(), and DECL_WRITE().
| #define SWS_LOOP AV_PRAGMA(GCC ivdep) |
Definition at line 68 of file uops_tmpl.h.
Referenced by DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_READ(), DECL_READ(), DECL_READ(), DECL_WRITE(), and DECL_WRITE().
| #define bitfn2 | ( | name, | |
| ext ) |
Definition at line 74 of file uops_tmpl.h.
| #define bitfn | ( | name, | |
| ext ) |
Definition at line 75 of file uops_tmpl.h.
| #define fn | ( | name | ) |
Definition at line 76 of file uops_tmpl.h.
| #define bump_ptr | ( | ptr, | |
| bump ) |
Definition at line 78 of file uops_tmpl.h.
Referenced by DECL_READ(), and DECL_READ().
| #define X SWS_COMP_TEST(mask, 0) |
Definition at line 81 of file uops_tmpl.h.
| #define Y SWS_COMP_TEST(mask, 1) |
Definition at line 82 of file uops_tmpl.h.
| #define Z SWS_COMP_TEST(mask, 2) |
Definition at line 83 of file uops_tmpl.h.
Referenced by DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_READ(), DECL_READ(), DECL_READ(), DECL_READ(), DECL_WRITE(), DECL_WRITE(), ff_sws_rgb2xyz(), fill_rgb2yuv_table(), get_rgb2xyz_matrix(), and main().
| #define W SWS_COMP_TEST(mask, 3) |
Definition at line 84 of file uops_tmpl.h.
| #define DECL_FUNC | ( | NAME, | |
| ... ) |
Definition at line 87 of file uops_tmpl.h.
Referenced by DECL_FUNC(), and DECL_FUNC().
| #define DECL_READ | ( | NAME, | |
| ... ) |
Definition at line 94 of file uops_tmpl.h.
| #define DECL_WRITE | ( | NAME, | |
| ... ) |
Definition at line 99 of file uops_tmpl.h.
| #define CALL | ( | NAME, | |
| ... ) |
Definition at line 104 of file uops_tmpl.h.
| #define CONTINUE | ( | ... | ) |
Definition at line 107 of file uops_tmpl.h.
Referenced by DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_FUNC(), DECL_READ(), DECL_READ(), DECL_READ(), DECL_READ(), and process().
Definition at line 114 of file uops_tmpl.h.
Referenced by DECL_SETUP(), DECL_SETUP(), and DECL_SETUP().
Definition at line 119 of file uops_tmpl.h.
| #define DECL_IMPL_READ | ( | ... | ) |
Definition at line 128 of file uops_tmpl.h.
| #define DECL_IMPL_WRITE | ( | ... | ) |
Definition at line 133 of file uops_tmpl.h.
| #define REF_ENTRY | ( | DUMMY, | |
| NAME, | |||
| ... ) |
Definition at line 138 of file uops_tmpl.h.
| #define DECL_ENTRY | ( | SETUP, | |
| NAME, | |||
| ... ) |
Definition at line 139 of file uops_tmpl.h.
Referenced by SWS_DECL_FUNC().