|
FFmpeg
|
KTX 1.0 demuxer for ASTC textures. More...
#include "config_components.h"#include <inttypes.h>#include <limits.h>#include "libavcodec/defs.h"#include "avformat.h"#include "avio.h"#include "avio_internal.h"#include "demux.h"#include "internal.h"#include "libavutil/display.h"#include "libavutil/intreadwrite.h"Go to the source code of this file.
Data Structures | |
| struct | KTXDemuxerContext |
Macros | |
| #define | ASTC_HEADER_SIZE 16 |
Functions | |
| static int | gl_enum_to_block (uint32_t e, int *bx, int *by) |
| static int | ktx_probe (const AVProbeData *p) |
| static void | ktx_orientation_flips (const char *value, int *hflip, int *vflip) |
| static int | ktx_read_orientation (AVFormatContext *s, uint32_t kvdata, int *hflip, int *vflip) |
| static int | ktx_read_header (AVFormatContext *s) |
| static int | ktx_read_packet (AVFormatContext *s, AVPacket *pkt) |
Variables | |
| static const uint8_t | astc_magic [4] = { 0x13, 0xAB, 0xA1, 0x5C } |
| static const uint8_t | ktx_magic [12] |
| static const int | astc_gl_linear [14] |
| static const int | astc_bx [14] = { 4, 5, 5, 6, 6, 8, 8, 8, 10, 10, 10, 10, 12, 12 } |
| static const int | astc_by [14] = { 4, 4, 5, 5, 6, 5, 6, 8, 5, 6, 8, 10, 10, 12 } |
| const FFInputFormat | ff_ktx_demuxer |
KTX 1.0 demuxer for ASTC textures.
Parses the KTX 1.0 header, recovers the ASTC block size from the GL internal format enum, and synthesizes a 16-byte .astc-style extradata for the decoder. The raw ASTC bitstream is emitted as a single packet.
Definition in file ktxdec.c.
|
static |
Definition at line 65 of file ktxdec.c.
Referenced by ktx_probe(), and ktx_read_header().
|
static |
|
static |
Definition at line 99 of file ktxdec.c.
Referenced by ktx_read_orientation().
|
static |
Definition at line 116 of file ktxdec.c.
Referenced by ktx_read_header().
|
static |
|
static |
|
static |
|
static |
Definition at line 47 of file ktxdec.c.
Referenced by ktx_probe(), and ktx_read_header().
|
static |
Definition at line 52 of file ktxdec.c.
Referenced by gl_enum_to_block(), and ktx_write_header().
|
static |
Definition at line 56 of file ktxdec.c.
Referenced by gl_enum_to_block(), and ktx_write_header().
|
static |
Definition at line 57 of file ktxdec.c.
Referenced by gl_enum_to_block(), and ktx_write_header().
| const FFInputFormat ff_ktx_demuxer |