|
FFmpeg
|
#include <string.h>#include "libavutil/avassert.h"#include "libavutil/mem_internal.h"#include "libavutil/refstruct.h"#include "libswscale/ops.h"#include "libswscale/ops_dispatch.h"#include "libswscale/uops.h"#include "libswscale/uops_macros.h"#include "checkasm.h"Go to the source code of this file.
Macros | |
| #define | FMT(fmt, ...) tprintf((char[256]) {0}, 256, fmt, __VA_ARGS__) |
| #define | CHECK_RANGES(NAME, RANGES, N_IN, N_OUT, IN, OUT, ...) |
| #define | MK_RANGES(R) ((const unsigned[]) { R, R, R, R }) |
| #define | CHECK_RANGE(NAME, RANGE, N_IN, N_OUT, IN, OUT, ...) CHECK_RANGES(NAME, MK_RANGES(RANGE), N_IN, N_OUT, IN, OUT, __VA_ARGS__) |
| #define | CHECK(NAME, N_IN, N_OUT, IN, OUT, ...) CHECK_RANGE(NAME, 0, N_IN, N_OUT, IN, OUT, __VA_ARGS__) |
| #define | CHECK_MASK(NAME, MASK, RANGES, IN, OUT, ...) |
| #define | CHECK_FUNCTION(CHECK, NAME, ...) CHECK(#NAME, &(SwsUOp) { __VA_ARGS__ }); |
| #define | CHECK_FOR(UOP, CHECK) |
Enumerations | |
| enum | { NB_PLANES = 4, PIXELS = 64, LINES = 16 } |
| Copyright (C) 2025 Niklas Haas. More... | |
| enum | { U8 = SWS_PIXEL_U8, U16 = SWS_PIXEL_U16, U32 = SWS_PIXEL_U32, F32 = SWS_PIXEL_F32 } |
Functions | |
| static const char * | tprintf (char buf[], size_t size, const char *fmt,...) |
| static int | rw_pixel_bits (const SwsOp *op) |
| static float | rndf (void) |
| static void | fill32f (float *line, int num, unsigned range) |
| static void | fill32 (uint32_t *line, int num, unsigned range) |
| static void | fill16 (uint16_t *line, int num, unsigned range) |
| static void | fill8 (uint8_t *line, int num, unsigned range) |
| static void | set_range (AVRational64 *rangeq, unsigned range, unsigned range_def) |
| static void | check_compiled (const char *name, const SwsOp *read_op, const SwsOp *write_op, const int ranges[NB_PLANES], const SwsCompiledOp *comp_ref, const SwsCompiledOp *comp_new) |
| static void | check_ops (const char *name, const unsigned ranges[NB_PLANES], const SwsOp *ops) |
| static int | mask_num (const SwsCompMask mask) |
| static AVRational64 | rndq (SwsPixelType t) |
| static void | check_read (const char *name, const SwsUOp *uop) |
| static void | check_write (const char *name, const SwsUOp *uop) |
| static void | check_filter (const char *name, const SwsUOp *uop) |
| static void | check_cast (const char *name, const SwsUOp *uop) |
| static void | check_expand_bit (const char *name, const SwsUOp *uop) |
| static void | check_expand (const char *name, const SwsUOp *uop) |
| static void | check_swizzle (const char *name, const SwsUOp *uop) |
| static void | check_scale (const char *name, const SwsUOp *uop) |
| static void | check_clamp (const char *name, const SwsUOp *uop) |
| static void | check_swap_bytes (const char *name, const SwsUOp *uop) |
| static void | check_unpack (const char *name, const SwsUOp *uop) |
| static void | check_pack (const char *name, const SwsUOp *uop) |
| static void | check_shift (const char *name, const SwsUOp *uop) |
| static void | check_clear (const char *name, const SwsUOp *uop) |
| static void | check_linear (const char *name, const SwsUOp *uop) |
| static void | check_dither (const char *name, const SwsUOp *uop) |
| static void | check_add (const char *name, const SwsUOp *uop) |
| void | checkasm_check_sw_ops (void) |
| #define FMT | ( | fmt, | |
| ... | |||
| ) | tprintf((char[256]) {0}, 256, fmt, __VA_ARGS__) |
| #define CHECK | ( | NAME, | |
| N_IN, | |||
| N_OUT, | |||
| IN, | |||
| OUT, | |||
| ... | |||
| ) | CHECK_RANGE(NAME, 0, N_IN, N_OUT, IN, OUT, __VA_ARGS__) |
| #define CHECK_FOR | ( | UOP, | |
| CHECK | |||
| ) |
| anonymous enum |
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 General Public License as published by the Free Software Foundation; either version 2 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 General Public License for more details.
You should have received a copy of the GNU 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.
| Enumerator | |
|---|---|
| NB_PLANES | |
| PIXELS | |
| LINES | |
|
static |
|
static |
Definition at line 57 of file sw_ops.c.
Referenced by check_compiled().
|
static |
Definition at line 83 of file sw_ops.c.
Referenced by check_compiled().
|
static |
Definition at line 90 of file sw_ops.c.
Referenced by check_compiled(), fill16(), and fill8().
|
static |
Definition at line 96 of file sw_ops.c.
Referenced by check_compiled().
|
static |
Definition at line 106 of file sw_ops.c.
Referenced by check_compiled().
|
static |
Definition at line 116 of file sw_ops.c.
Referenced by check_ops().
|
static |
We can't use check_func() alone because the actual function pointer may be a wrapper or entry point shared by multiple implementations. Solve it by hashing in the active CPU flags as well.
Definition at line 124 of file sw_ops.c.
Referenced by check_ops().
|
static |
Definition at line 256 of file sw_ops.c.
Referenced by check_filter(), check_read(), and check_write().
|
inlinestatic |
Definition at line 375 of file sw_ops.c.
Referenced by check_filter(), check_read(), and check_write().
|
static |
Definition at line 395 of file sw_ops.c.
Referenced by check_dither(), check_linear(), and check_scale().
|
static |
Definition at line 408 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 437 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 469 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 518 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 542 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 559 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 578 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 588 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 610 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 620 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 628 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 642 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 657 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 666 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 692 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
|
static |
Definition at line 717 of file sw_ops.c.
Referenced by check_add(), and checkasm_check_sw_ops().
|
static |
Definition at line 746 of file sw_ops.c.
Referenced by checkasm_check_sw_ops().
1.8.17