|
FFmpeg
|
#include <errno.h>#include <stdint.h>#include <string.h>#include "libavutil/attributes.h"#include "libavutil/error.h"#include "libavutil/intmath.h"#include "libavutil/macros.h"#include "libavutil/mem.h"#include "libavutil/pixfmt.h"#include "bytestream.h"#include "codec_id.h"#include "parser_internal.h"#include "get_bits.h"#include "jpegxl.h"#include "jpegxl_parse.h"#include "parser.h"#include "vlc.h"Go to the source code of this file.
Data Structures | |
| struct | JXLHybridUintConf |
| struct | JXLSymbolDistribution |
| struct | JXLDistributionBundle |
| struct | JXLEntropyDecoder |
| struct | JXLFrame |
| struct | JXLCodestream |
| struct | JXLParseContext |
Macros | |
| #define | UNCHECKED_BITSTREAM_READER 0 |
| JPEG XL parser Copyright (c) 2023 Leo Izen leo.izen@gmail.com More... | |
| #define | BITSTREAM_READER_LE |
| #define | JXL_FLAG_NOISE 1 |
| #define | JXL_FLAG_PATCHES 2 |
| #define | JXL_FLAG_SPLINES 16 |
| #define | JXL_FLAG_USE_LF_FRAME 32 |
| #define | JXL_FLAG_SKIP_ADAPTIVE_LF_SMOOTH 128 |
| #define | MAX_PREFIX_ALPHABET_SIZE (1u << 15) |
| #define | clog1p(x) (ff_log2(x) + !!(x)) |
| #define | unpack_signed(x) (((x) & 1 ? -(x)-1 : (x))/2) |
| #define | div_ceil(x, y) (((x) - 1) / (y) + 1) |
| #define | vlm(a, b) {.sym = (a), .len = (b)} |
Variables | |
| static const VLCElem | level0_table [16] |
| static const VLCElem | dist_prefix_table [128] |
| static const uint8_t | prefix_codelen_map [18] |
| const FFCodecParser | ff_jpegxl_parser |
| #define UNCHECKED_BITSTREAM_READER 0 |
JPEG XL parser Copyright (c) 2023 Leo Izen leo.izen@gmail.com
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 36 of file jpegxl_parser.c.
| #define BITSTREAM_READER_LE |
Definition at line 37 of file jpegxl_parser.c.
| #define JXL_FLAG_NOISE 1 |
Definition at line 44 of file jpegxl_parser.c.
| #define JXL_FLAG_PATCHES 2 |
Definition at line 45 of file jpegxl_parser.c.
| #define JXL_FLAG_SPLINES 16 |
Definition at line 46 of file jpegxl_parser.c.
| #define JXL_FLAG_USE_LF_FRAME 32 |
Definition at line 47 of file jpegxl_parser.c.
| #define JXL_FLAG_SKIP_ADAPTIVE_LF_SMOOTH 128 |
Definition at line 48 of file jpegxl_parser.c.
| #define MAX_PREFIX_ALPHABET_SIZE (1u << 15) |
Definition at line 50 of file jpegxl_parser.c.
| #define clog1p | ( | x | ) | (ff_log2(x) + !!(x)) |
Definition at line 52 of file jpegxl_parser.c.
| #define unpack_signed | ( | x | ) | (((x) & 1 ? -(x)-1 : (x))/2) |
Definition at line 53 of file jpegxl_parser.c.
| #define div_ceil | ( | x, | |
| y | |||
| ) | (((x) - 1) / (y) + 1) |
Definition at line 54 of file jpegxl_parser.c.
|
static |
Read a variable-length 8-bit integer.
Used when populating the ANS frequency tables.
Definition at line 203 of file jpegxl_parser.c.
Referenced by populate_distribution().
|
static |
Definition at line 214 of file jpegxl_parser.c.
Referenced by parse_frame_header(), and read_distribution_bundle().
|
static |
Definition at line 230 of file jpegxl_parser.c.
Referenced by parse_frame_header(), skip_extensions(), and skip_icc_profile().
|
static |
Definition at line 260 of file jpegxl_parser.c.
Referenced by read_distribution_bundle().
|
static |
Definition at line 278 of file jpegxl_parser.c.
Referenced by decode_hybrid_varlen_uint().
|
inlinestatic |
Definition at line 300 of file jpegxl_parser.c.
Referenced by decode_hybrid_varlen_uint().
|
static |
Definition at line 308 of file jpegxl_parser.c.
Referenced by decode_hybrid_varlen_uint().
|
static |
Definition at line 328 of file jpegxl_parser.c.
Referenced by entropy_decoder_read_symbol(), and read_dist_clustering().
|
static |
Definition at line 383 of file jpegxl_parser.c.
Referenced by read_distribution_bundle().
|
static |
Definition at line 483 of file jpegxl_parser.c.
Referenced by entropy_decoder_close(), and read_dist_clustering().
|
static |
Definition at line 832 of file jpegxl_parser.c.
Referenced by entropy_decoder_init(), and read_dist_clustering().
|
static |
Definition at line 496 of file jpegxl_parser.c.
Referenced by read_distribution_bundle().
|
static |
Definition at line 566 of file jpegxl_parser.c.
Referenced by read_distribution_bundle().
|
static |
Definition at line 628 of file jpegxl_parser.c.
Referenced by read_vlc_prefix().
|
static |
Definition at line 686 of file jpegxl_parser.c.
Referenced by read_distribution_bundle().
|
static |
Definition at line 918 of file jpegxl_parser.c.
Referenced by entropy_decoder_init(), parse_frame_header(), and skip_icc_profile().
|
static |
Definition at line 926 of file jpegxl_parser.c.
Referenced by parse_frame_header(), and skip_icc_profile().
|
static |
Definition at line 943 of file jpegxl_parser.c.
Referenced by parse_frame_header(), and skip_icc_profile().
|
inlinestatic |
Definition at line 955 of file jpegxl_parser.c.
Referenced by skip_icc_profile().
|
inlinestatic |
Definition at line 989 of file jpegxl_parser.c.
Referenced by parse_frame_header().
|
static |
Definition at line 994 of file jpegxl_parser.c.
Referenced by try_parse().
|
static |
Definition at line 1085 of file jpegxl_parser.c.
Referenced by try_parse().
|
static |
Definition at line 1145 of file jpegxl_parser.c.
Referenced by parse_frame_header().
|
static |
Definition at line 1170 of file jpegxl_parser.c.
Referenced by try_parse().
|
static |
Definition at line 1366 of file jpegxl_parser.c.
Referenced by jpegxl_parse().
|
static |
Definition at line 1412 of file jpegxl_parser.c.
Referenced by jpegxl_parse().
|
static |
Definition at line 1485 of file jpegxl_parser.c.
|
static |
|
static |
Definition at line 176 of file jpegxl_parser.c.
Referenced by populate_distribution().
|
static |
Definition at line 195 of file jpegxl_parser.c.
Referenced by read_vlc_prefix().
| const FFCodecParser ff_jpegxl_parser |
Definition at line 1549 of file jpegxl_parser.c.
1.8.17