FFmpeg
|
#include "libavutil/avstring.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
Go to the source code of this file.
Data Structures | |
struct | XPMContext |
struct | ColorEntry |
Macros | |
#define | MIN_ELEMENT ' ' |
#define | MAX_ELEMENT 0xfe |
#define | NB_ELEMENTS (MAX_ELEMENT - MIN_ELEMENT + 1) |
#define | TIMES256(idx) TIMES64(4 * (idx)) TIMES64(4 * (idx) + 1) TIMES64(4 * (idx) + 2) TIMES64(4 * (idx) + 3) |
#define | TIMES64(idx) TIMES16(4 * (idx)) TIMES16(4 * (idx) + 1) TIMES16(4 * (idx) + 2) TIMES16(4 * (idx) + 3) |
#define | TIMES16(idx) TIMES4(4 * (idx)) TIMES4(4 * (idx) + 1) TIMES4(4 * (idx) + 2) TIMES4(4 * (idx) + 3) |
#define | TIMES4(idx) ENTRY(4 * (idx)) ENTRY(4 * (idx) + 1) ENTRY(4 * (idx) + 2) ENTRY(4 * (idx) + 3) |
#define | ENTRY(x) |
Functions | |
static int | color_table_compare (const void *lhs, const void *rhs) |
static unsigned | hex_char_to_number (uint8_t x) |
static size_t | mod_strcspn (const char *string, const char *reject) |
static uint32_t | color_string_to_rgba (const char *p, size_t len) |
static int | ascii2index (const uint8_t *cpixel, int cpp) |
static int | xpm_decode_frame (AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt) |
static av_cold int | xpm_decode_close (AVCodecContext *avctx) |
Variables | |
static const ColorEntry | color_table [] |
const FFCodec | ff_xpm_decoder |
#define NB_ELEMENTS (MAX_ELEMENT - MIN_ELEMENT + 1) |
#define TIMES256 | ( | idx | ) | TIMES64(4 * (idx)) TIMES64(4 * (idx) + 1) TIMES64(4 * (idx) + 2) TIMES64(4 * (idx) + 3) |
#define TIMES64 | ( | idx | ) | TIMES16(4 * (idx)) TIMES16(4 * (idx) + 1) TIMES16(4 * (idx) + 2) TIMES16(4 * (idx) + 3) |
#define TIMES16 | ( | idx | ) | TIMES4(4 * (idx)) TIMES4(4 * (idx) + 1) TIMES4(4 * (idx) + 2) TIMES4(4 * (idx) + 3) |
#define TIMES4 | ( | idx | ) | ENTRY(4 * (idx)) ENTRY(4 * (idx) + 1) ENTRY(4 * (idx) + 2) ENTRY(4 * (idx) + 3) |
#define ENTRY | ( | x | ) |
|
static |
Definition at line 46 of file xpmdec.c.
Referenced by color_string_to_rgba().
|
static |
Definition at line 195 of file xpmdec.c.
Referenced by color_string_to_rgba().
|
static |
Definition at line 218 of file xpmdec.c.
Referenced by xpm_decode_frame().
|
static |
Definition at line 244 of file xpmdec.c.
Referenced by xpm_decode_frame().
|
static |
Definition at line 298 of file xpmdec.c.
Referenced by xpm_decode_frame().
|
static |
|
static |
|
static |
Definition at line 51 of file xpmdec.c.
Referenced by color_string_to_rgba(), ff_get_qtpalette(), rgtc1_block_internal(), and seq_decode_op1().
const FFCodec ff_xpm_decoder |