FFmpeg
|
#include <inttypes.h>
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "internal.h"
#include "unary.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
Go to the source code of this file.
Macros | |
#define | BITSTREAM_READER_LE |
Typedefs | |
typedef int(* | decode_slice_func )(GetBitContext *gb, AVFrame *frame, int line, int height, uint8_t lru[3][8]) |
typedef void(* | setup_lru_func )(uint8_t lru[3][8]) |
Functions | |
static int | dxtory_decode_v1_rgb (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size, int id, int bpp) |
static int | dxtory_decode_v1_410 (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) |
static int | dxtory_decode_v1_420 (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) |
static int | dxtory_decode_v1_444 (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) |
static uint8_t | decode_sym (GetBitContext *gb, uint8_t lru[8]) |
static int | check_slice_size (AVCodecContext *avctx, const uint8_t *src, int src_size, int slice_size, int off) |
static int | load_buffer (AVCodecContext *avctx, const uint8_t *src, int src_size, GetByteContext *gb, int *nslices, int *off) |
static uint8_t | decode_sym_565 (GetBitContext *gb, uint8_t lru[8], int bits) |
static int | dxtory_decode_v2 (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size, decode_slice_func decode_slice, setup_lru_func setup_lru, enum AVPixelFormat fmt) |
static av_always_inline int | dx2_decode_slice_5x5 (GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8], int is_565) |
static void | setup_lru_555 (uint8_t lru[3][8]) |
static void | setup_lru_565 (uint8_t lru[3][8]) |
static int | dx2_decode_slice_555 (GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8]) |
static int | dx2_decode_slice_565 (GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8]) |
static int | dxtory_decode_v2_565 (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size, int is_565) |
static int | dx2_decode_slice_rgb (GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8]) |
static void | default_setup_lru (uint8_t lru[3][8]) |
static int | dxtory_decode_v2_rgb (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) |
static int | dx2_decode_slice_410 (GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8]) |
static int | dxtory_decode_v2_410 (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) |
static int | dx2_decode_slice_420 (GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8]) |
static int | dxtory_decode_v2_420 (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) |
static int | dx2_decode_slice_444 (GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8]) |
static int | dxtory_decode_v2_444 (AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) |
static int | decode_frame (AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) |
Variables | |
static const uint8_t | def_lru [8] = { 0x00, 0x20, 0x40, 0x60, 0x80, 0xA0, 0xC0, 0xFF } |
static const uint8_t | def_lru_555 [8] = { 0x00, 0x08, 0x10, 0x18, 0x1F } |
static const uint8_t | def_lru_565 [8] = { 0x00, 0x08, 0x10, 0x20, 0x30, 0x3F } |
AVCodec | ff_dxtory_decoder |
|
static |
Definition at line 34 of file dxtory.c.
Referenced by decode_frame().
|
static |
Definition at line 61 of file dxtory.c.
Referenced by decode_frame().
|
static |
Definition at line 104 of file dxtory.c.
Referenced by decode_frame().
|
static |
Definition at line 141 of file dxtory.c.
Referenced by decode_frame().
|
inlinestatic |
Definition at line 178 of file dxtory.c.
Referenced by dx2_decode_slice_410(), dx2_decode_slice_420(), dx2_decode_slice_444(), and dx2_decode_slice_rgb().
|
static |
Definition at line 195 of file dxtory.c.
Referenced by dxtory_decode_v2().
|
static |
Definition at line 223 of file dxtory.c.
Referenced by dxtory_decode_v2().
|
inlinestatic |
Definition at line 245 of file dxtory.c.
Referenced by dx2_decode_slice_5x5().
|
static |
Definition at line 268 of file dxtory.c.
Referenced by dxtory_decode_v2_410(), dxtory_decode_v2_420(), dxtory_decode_v2_444(), dxtory_decode_v2_565(), and dxtory_decode_v2_rgb().
|
static |
Definition at line 318 of file dxtory.c.
Referenced by dx2_decode_slice_555(), and dx2_decode_slice_565().
Definition at line 344 of file dxtory.c.
Referenced by dxtory_decode_v2_565().
Definition at line 351 of file dxtory.c.
Referenced by dxtory_decode_v2_565().
|
static |
Definition at line 358 of file dxtory.c.
Referenced by dxtory_decode_v2_565().
|
static |
Definition at line 364 of file dxtory.c.
Referenced by dxtory_decode_v2_565().
|
static |
Definition at line 370 of file dxtory.c.
Referenced by decode_frame().
|
static |
Definition at line 386 of file dxtory.c.
Referenced by dxtory_decode_v2_rgb().
Definition at line 407 of file dxtory.c.
Referenced by dxtory_decode_v2_410(), dxtory_decode_v2_420(), dxtory_decode_v2_444(), and dxtory_decode_v2_rgb().
|
static |
Definition at line 415 of file dxtory.c.
Referenced by decode_frame().
|
static |
Definition at line 424 of file dxtory.c.
Referenced by dxtory_decode_v2_410().
|
static |
Definition at line 457 of file dxtory.c.
Referenced by decode_frame().
|
static |
Definition at line 466 of file dxtory.c.
Referenced by dxtory_decode_v2_420().
|
static |
Definition at line 501 of file dxtory.c.
Referenced by decode_frame().
|
static |
Definition at line 510 of file dxtory.c.
Referenced by dxtory_decode_v2_444().
|
static |
Definition at line 541 of file dxtory.c.
Referenced by decode_frame().
|
static |
|
static |
Definition at line 174 of file dxtory.c.
Referenced by default_setup_lru(), setup_lru_555(), and setup_lru_565().
|
static |
Definition at line 175 of file dxtory.c.
Referenced by setup_lru_555(), and setup_lru_565().
|
static |
Definition at line 176 of file dxtory.c.
Referenced by setup_lru_565().
AVCodec ff_dxtory_decoder |