|
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 | inter_t int32_t |
| #define | block_t u8block_t |
| #define | px u8 |
| #define | IS_FLOAT 0 |
| #define | FMT_CHAR u |
| #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_FUNC (pack, const int bits0, const int bits1, const int bits2, const int bits3) | |
| DECL_FUNC (unpack, const int bits0, const int bits1, const int bits2, const int bits3) | |
| 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 47 of file ops_tmpl_int.c.
| #define PIXEL_MAX 0xFFu |
Definition at line 48 of file ops_tmpl_int.c.
| #define pixel_t uint8_t |
Definition at line 49 of file ops_tmpl_int.c.
| #define inter_t int32_t |
Definition at line 50 of file ops_tmpl_int.c.
| #define block_t u8block_t |
Definition at line 51 of file ops_tmpl_int.c.
| #define px u8 |
Definition at line 52 of file ops_tmpl_int.c.
| #define IS_FLOAT 0 |
Definition at line 57 of file ops_tmpl_int.c.
| #define FMT_CHAR u |
Definition at line 58 of file ops_tmpl_int.c.
Definition at line 121 of file ops_tmpl_int.c.
Definition at line 149 of file ops_tmpl_int.c.
Definition at line 339 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 431 of file ops_tmpl_int.c.
Definition at line 466 of file ops_tmpl_int.c.
| DECL_READ | ( | read_planar | , |
| const int | elems | ||
| ) |
Definition at line 61 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 93 of file ops_tmpl_int.c.
| DECL_WRITE | ( | write_packed | , |
| const int | elems | ||
| ) |
Definition at line 107 of file ops_tmpl_int.c.
| DECL_READ | ( | read_nibbles | , |
| const int | elems | ||
| ) |
Definition at line 178 of file ops_tmpl_int.c.
| DECL_READ | ( | read_bits | , |
| const int | elems | ||
| ) |
Definition at line 190 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_FUNC | ( | pack | , |
| const int | bits0, | ||
| const int | bits1, | ||
| const int | bits2, | ||
| const int | bits3 | ||
| ) |
Definition at line 306 of file ops_tmpl_int.c.
| DECL_FUNC | ( | unpack | , |
| const int | bits0, | ||
| const int | bits1, | ||
| const int | bits2, | ||
| const int | bits3 | ||
| ) |
Definition at line 322 of file ops_tmpl_int.c.
| DECL_PATTERN | ( | convert_float | ) |
Definition at line 407 of file ops_tmpl_int.c.
| WRAP_COMMON_PATTERNS | ( | convert_float | , |
| . | op = SWS_OP_CONVERT, |
||
| .convert. | to = SWS_PIXEL_F32 |
||
| ) |
|
static |
1.8.17