FFmpeg
|
#include <stdint.h>
#include "bytestream.h"
#include "get_bits.h"
#include "jpegxl.h"
#include "jpegxl_parse.h"
Go to the source code of this file.
Macros | |
#define | UNCHECKED_BITSTREAM_READER 0 |
#define | BITSTREAM_READER_LE |
Functions | |
static av_always_inline uint32_t | jxl_u32 (GetBitContext *gb, uint32_t c0, uint32_t c1, uint32_t c2, uint32_t c3, uint32_t u0, uint32_t u1, uint32_t u2, uint32_t u3) |
static av_always_inline uint32_t | jxl_enum (GetBitContext *gb) |
static uint64_t | jxl_u64 (GetBitContext *gb) |
static uint32_t | jpegxl_width_from_ratio (uint32_t height, int ratio) |
static int | jpegxl_read_size_header (GetBitContext *gb, FFJXLMetadata *meta, int validate) |
validate a Jpeg XL Size Header More... | |
static int | jpegxl_read_preview_header (GetBitContext *gb, int validate) |
validate a Jpeg XL Preview Header More... | |
static void | jpegxl_get_bit_depth (GetBitContext *gb, FFJXLMetadata *meta) |
get a Jpeg XL BitDepth Header. More... | |
static int | jpegxl_read_extra_channel_info (GetBitContext *gb, FFJXLMetadata *meta, int validate) |
validate a Jpeg XL Extra Channel Info bundle More... | |
static int | jpegxl_skip_extensions (GetBitContext *gb) |
int | ff_jpegxl_parse_codestream_header (const uint8_t *buf, int buflen, FFJXLMetadata *meta, int validate) |
int | ff_jpegxl_collect_codestream_header (const uint8_t *input_buffer, int input_len, uint8_t *buffer, int buflen, int *copied) |
#define UNCHECKED_BITSTREAM_READER 0 |
Definition at line 25 of file jpegxl_parse.c.
#define BITSTREAM_READER_LE |
Definition at line 26 of file jpegxl_parse.c.
|
static |
Definition at line 32 of file jpegxl_parse.c.
Referenced by ff_jpegxl_parse_codestream_header(), jpegxl_get_bit_depth(), jpegxl_read_extra_channel_info(), jpegxl_read_preview_header(), jpegxl_read_size_header(), and jxl_enum().
|
static |
Definition at line 47 of file jpegxl_parse.c.
Referenced by ff_jpegxl_parse_codestream_header(), and jpegxl_read_extra_channel_info().
|
static |
Definition at line 53 of file jpegxl_parse.c.
Referenced by jpegxl_skip_extensions().
|
static |
Definition at line 83 of file jpegxl_parse.c.
Referenced by jpegxl_read_preview_header(), and jpegxl_read_size_header().
|
static |
validate a Jpeg XL Size Header
Definition at line 112 of file jpegxl_parse.c.
Referenced by ff_jpegxl_parse_codestream_header().
|
static |
validate a Jpeg XL Preview Header
Definition at line 145 of file jpegxl_parse.c.
Referenced by ff_jpegxl_parse_codestream_header().
|
static |
get a Jpeg XL BitDepth Header.
These cannot be invalid.
Definition at line 171 of file jpegxl_parse.c.
Referenced by ff_jpegxl_parse_codestream_header(), and jpegxl_read_extra_channel_info().
|
static |
validate a Jpeg XL Extra Channel Info bundle
Definition at line 190 of file jpegxl_parse.c.
Referenced by ff_jpegxl_parse_codestream_header().
|
static |
Definition at line 230 of file jpegxl_parse.c.
Referenced by ff_jpegxl_parse_codestream_header().
int ff_jpegxl_parse_codestream_header | ( | const uint8_t * | buf, |
int | buflen, | ||
FFJXLMetadata * | meta, | ||
int | validate | ||
) |
Definition at line 255 of file jpegxl_parse.c.
Referenced by jpegxl_anim_probe(), jpegxl_anim_read_header(), jpegxl_probe(), and try_parse().
int ff_jpegxl_collect_codestream_header | ( | const uint8_t * | input_buffer, |
int | input_len, | ||
uint8_t * | buffer, | ||
int | buflen, | ||
int * | copied | ||
) |
Definition at line 449 of file jpegxl_parse.c.
Referenced by jpegxl_anim_probe(), jpegxl_anim_read_header(), and try_parse().