|
FFmpeg
|
#include <stdbool.h>#include "libavutil/avassert.h"#include "libavutil/mem.h"#include "libavutil/refstruct.h"#include "ops.h"#include "uops.h"#include "uops_list.h"Go to the source code of this file.
Macros | |
| #define | UOP_NAME(OP, ABBR) [OP] = { ABBR }, |
| #define | Q2PIXEL(val) pixel_from_q64(op->type, val) |
Variables | |
| struct { | |
| char abbr [32] | |
| } | uop_names [SWS_UOP_TYPE_NB] |
Copyright (C) 2026 Niklas Haas.
Compare two SwsUOps for equality (excluding constant data).
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 31 of file uops.c.
Referenced by ff_sws_uop_cmp_v(), and ff_sws_uop_lookup().
|
static |
Definition at line 50 of file uops.c.
Referenced by exact_prod().
|
static |
Definition at line 68 of file uops.c.
Referenced by translate_op().
| void ff_sws_uop_name | ( | const SwsUOp * | op, |
| char | buf[SWS_UOP_NAME_MAX] | ||
| ) |
Definition at line 81 of file uops.c.
Referenced by compile(), ff_sws_uop_lookup(), generate_entry_args(), generate_entry_struct(), and print_ops().
|
static |
Definition at line 174 of file uops.c.
Referenced by ff_sws_uop_list_append(), and ff_sws_uop_list_free().
| void ff_sws_uop_list_free | ( | SwsUOpList ** | p_ops | ) |
Definition at line 190 of file uops.c.
Referenced by compile(), print_ops(), and register_flags().
| SwsUOpList* ff_sws_uop_list_alloc | ( | void | ) |
Definition at line 204 of file uops.c.
Referenced by compile(), print_ops(), and register_flags().
| int ff_sws_uop_list_append | ( | SwsUOpList * | uops, |
| SwsUOp * | uop | ||
| ) |
Definition at line 209 of file uops.c.
Referenced by translate_dither_op(), translate_linear_op(), translate_move(), translate_op(), translate_rw_op(), and translate_swizzle().
| int ff_sws_dither_height | ( | const SwsDitherUOp * | dither | ) |
Computes (1 << size_log2) + MAX(y_offset).
The dither matrix attached to the SwsUOp is always pre-padded to this number of lines.
Definition at line 222 of file uops.c.
Referenced by DECL_SETUP(), and translate_dither_op().
|
static |
Definition at line 230 of file uops.c.
Referenced by translate_move(), translate_op(), translate_rw_op(), and translate_swizzle().
Definition at line 243 of file uops.c.
Referenced by exact_prod().
|
static |
Definition at line 250 of file uops.c.
Referenced by translate_linear_op().
|
static |
Definition at line 272 of file uops.c.
Referenced by translate_rw_op().
|
static |
Definition at line 290 of file uops.c.
Referenced by translate_op().
|
static |
Definition at line 336 of file uops.c.
Referenced by translate_move().
|
static |
Definition at line 347 of file uops.c.
Referenced by translate_swizzle().
|
static |
Definition at line 418 of file uops.c.
Referenced by translate_op().
|
static |
Definition at line 476 of file uops.c.
Referenced by translate_op().
|
static |
Definition at line 524 of file uops.c.
Referenced by translate_op().
|
static |
Definition at line 564 of file uops.c.
Referenced by translate_op().
|
static |
Definition at line 582 of file uops.c.
Referenced by ff_sws_ops_translate().
| 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 executed by backends.
Return 0 or a negative error code.
Definition at line 685 of file uops.c.
Referenced by compile(), print_ops(), and register_flags().
| char abbr[32] |
Definition at line 43 of file uops.c.
Referenced by av_parse_video_rate(), and av_parse_video_size().
| const { ... } uop_names[SWS_UOP_TYPE_NB] |
Referenced by ff_sws_uop_name().
1.8.17