FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/bswap.h"
#include "ops_backend.h"
#include "ops_tmpl_common.c"
Go to the source code of this file.
Macros | |
#define | BIT_DEPTH 8 |
Copyright (C) 2025 Niklas Haas. More... | |
#define | PIXEL_TYPE SWS_PIXEL_U8 |
#define | PIXEL_MAX 0xFFu |
#define | pixel_t uint8_t |
#define | block_t u8block_t |
#define | px u8 |
#define | IS_FLOAT 0 |
#define | FMT_CHAR u |
#define | PIXEL_MIN 0 |
#define | WRAP_READ(FUNC, ELEMS, FRAC, PACKED) |
#define | WRAP_WRITE(FUNC, ELEMS, FRAC, PACKED) |
#define | WRAP_PACK_UNPACK(X, Y, Z, W) |
#define | DECL_SWIZZLE(X, Y, Z, W) |
Swizzle by directly swapping the order of arguments to the continuation. More... | |
#define | DECL_EXPAND_LUMA(X, W, T0, T1) |
Functions | |
DECL_READ (read_planar, const int elems) | |
DECL_READ (read_packed, const int elems) | |
DECL_WRITE (write_planar, const int elems) | |
DECL_WRITE (write_packed, const int elems) | |
DECL_READ (read_nibbles, const int elems) | |
DECL_READ (read_bits, const int elems) | |
DECL_WRITE (write_nibbles, const int elems) | |
DECL_WRITE (write_bits, const int elems) | |
DECL_PATTERN (expand16) | |
WRAP_COMMON_PATTERNS (expand16,.op=SWS_OP_CONVERT,.convert.to=SWS_PIXEL_U16,.convert.expand=true,) | |
DECL_PATTERN (expand32) | |
WRAP_COMMON_PATTERNS (expand32,.op=SWS_OP_CONVERT,.convert.to=SWS_PIXEL_U32,.convert.expand=true,) | |
DECL_PATTERN (convert_float) | |
WRAP_COMMON_PATTERNS (convert_float,.op=SWS_OP_CONVERT,.convert.to=SWS_PIXEL_F32,) | |
static const SwsOpTable | fn (op_table_int) |
#define BIT_DEPTH 8 |
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_tmpl_int.c.
#define PIXEL_TYPE SWS_PIXEL_U8 |
Definition at line 45 of file ops_tmpl_int.c.
#define PIXEL_MAX 0xFFu |
Definition at line 46 of file ops_tmpl_int.c.
#define pixel_t uint8_t |
Definition at line 47 of file ops_tmpl_int.c.
#define block_t u8block_t |
Definition at line 48 of file ops_tmpl_int.c.
#define px u8 |
Definition at line 49 of file ops_tmpl_int.c.
#define IS_FLOAT 0 |
Definition at line 54 of file ops_tmpl_int.c.
#define FMT_CHAR u |
Definition at line 55 of file ops_tmpl_int.c.
#define PIXEL_MIN 0 |
Definition at line 56 of file ops_tmpl_int.c.
Definition at line 123 of file ops_tmpl_int.c.
Definition at line 148 of file ops_tmpl_int.c.
Definition at line 306 of file ops_tmpl_int.c.
Swizzle by directly swapping the order of arguments to the continuation.
Note that this is only safe to do if no arguments are duplicated.
Definition at line 427 of file ops_tmpl_int.c.
Definition at line 461 of file ops_tmpl_int.c.
DECL_READ | ( | read_planar | , |
const int | elems | ||
) |
Definition at line 59 of file ops_tmpl_int.c.
DECL_READ | ( | read_packed | , |
const int | elems | ||
) |
Definition at line 77 of file ops_tmpl_int.c.
DECL_WRITE | ( | write_planar | , |
const int | elems | ||
) |
Definition at line 95 of file ops_tmpl_int.c.
DECL_WRITE | ( | write_packed | , |
const int | elems | ||
) |
Definition at line 109 of file ops_tmpl_int.c.
DECL_READ | ( | read_nibbles | , |
const int | elems | ||
) |
Definition at line 174 of file ops_tmpl_int.c.
DECL_READ | ( | read_bits | , |
const int | elems | ||
) |
Definition at line 188 of file ops_tmpl_int.c.
DECL_WRITE | ( | write_nibbles | , |
const int | elems | ||
) |
Definition at line 211 of file ops_tmpl_int.c.
DECL_WRITE | ( | write_bits | , |
const int | elems | ||
) |
Definition at line 218 of file ops_tmpl_int.c.
DECL_PATTERN | ( | expand16 | ) |
Definition at line 259 of file ops_tmpl_int.c.
WRAP_COMMON_PATTERNS | ( | expand16 | , |
. | op = SWS_OP_CONVERT , |
||
.convert. | to = SWS_PIXEL_U16 , |
||
.convert. | expand = true |
||
) |
DECL_PATTERN | ( | expand32 | ) |
Definition at line 284 of file ops_tmpl_int.c.
WRAP_COMMON_PATTERNS | ( | expand32 | , |
. | op = SWS_OP_CONVERT , |
||
.convert. | to = SWS_PIXEL_U32 , |
||
.convert. | expand = true |
||
) |
DECL_PATTERN | ( | convert_float | ) |
Definition at line 403 of file ops_tmpl_int.c.
WRAP_COMMON_PATTERNS | ( | convert_float | , |
. | op = SWS_OP_CONVERT , |
||
.convert. | to = SWS_PIXEL_F32 |
||
) |
|
static |