|
FFmpeg
|
KTX 1.0 muxer for ASTC textures. More...
#include "avformat.h"#include "avio.h"#include "mux.h"#include "libavcodec/defs.h"#include "libavutil/intreadwrite.h"#include "libavutil/opt.h"Go to the source code of this file.
Data Structures | |
| struct | KTXMuxerContext |
Macros | |
| #define | ASTC_HEADER_SIZE 16 |
| #define | OFFSET(x) |
| #define | VE AV_OPT_FLAG_ENCODING_PARAM |
Functions | |
| static int | ktx_orientation_from_side_data (AVFormatContext *s, AVStream *st, int *hflip, int *vflip) |
| static int | ktx_write_header (AVFormatContext *s) |
| static int | ktx_write_packet (AVFormatContext *s, AVPacket *pkt) |
Variables | |
| static const uint8_t | astc_magic [4] = { 0x13, 0xAB, 0xA1, 0x5C } |
| static const int | astc_gl_linear [14] |
| static const int | astc_gl_srgb [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 } |
| static const char | ktx_orientation_key [] = "KTXorientation" |
| static const AVOption | ktx_options [] |
| static const AVClass | ktx_muxer_class |
| const FFOutputFormat | ff_ktx_muxer |
KTX 1.0 muxer for ASTC textures.
Writes the KTX 1.0 header (64 bytes) followed by a uint32 image size and the raw ASTC bitstream. The block size is recovered from the encoder's .astc-style extradata; the sRGB vs linear GL enum is chosen by the "srgb" muxer option.
Definition in file ktxenc.c.
| #define OFFSET | ( | x | ) |
| #define VE AV_OPT_FLAG_ENCODING_PARAM |
|
static |
Definition at line 70 of file ktxenc.c.
Referenced by ktx_write_header().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 48 of file ktxenc.c.
Referenced by ktx_write_header().
|
static |
|
static |
|
static |
Definition at line 62 of file ktxenc.c.
Referenced by ktx_write_header().
|
static |
|
static |
| const FFOutputFormat ff_ktx_muxer |