#include <stdint.h>
#include "libavutil/imgutils.h"
#include "mathops.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "dxv.h"
#include "lzf.h"
#include "texturedsp.h"
#include "thread.h"
Go to the source code of this file.
|
static int | dxv_decompress_dxt1 (AVCodecContext *avctx) |
|
static int | fill_ltable (GetByteContext *gb, uint32_t *table, int *nb_elements) |
|
static int | fill_optable (unsigned *table0, OpcodeTable *table1, int nb_elements) |
|
static int | get_opcodes (GetByteContext *gb, uint32_t *table, uint8_t *dst, int op_size, int nb_elements) |
|
static int | dxv_decompress_opcodes (GetByteContext *gb, void *dstp, size_t op_size) |
|
static int | dxv_decompress_cgo (DXVContext *ctx, GetByteContext *gb, uint8_t *tex_data, int tex_size, uint8_t *op_data, int *oindex, int op_size, uint8_t **dstp, int *statep, uint8_t **tab0, uint8_t **tab1, int offset) |
|
static int | dxv_decompress_cocg (DXVContext *ctx, GetByteContext *gb, uint8_t *tex_data, int tex_size, uint8_t *op_data0, uint8_t *op_data1, int max_op_size0, int max_op_size1) |
|
static int | dxv_decompress_yo (DXVContext *ctx, GetByteContext *gb, uint8_t *tex_data, int tex_size, uint8_t *op_data, int max_op_size) |
|
static int | dxv_decompress_ycg6 (AVCodecContext *avctx) |
|
static int | dxv_decompress_yg10 (AVCodecContext *avctx) |
|
static int | dxv_decompress_dxt5 (AVCodecContext *avctx) |
|
static int | dxv_decompress_lzf (AVCodecContext *avctx) |
|
static int | dxv_decompress_raw (AVCodecContext *avctx) |
|
static int | dxv_decode (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt) |
|
static int | dxv_init (AVCodecContext *avctx) |
|
static int | dxv_close (AVCodecContext *avctx) |
|
◆ CHECKPOINT
Value: do { \
value = bytestream2_get_le32(gbc); \
state = 16; \
} \
value >>= 2; \
state--; \
case 1: \
idx = x; \
break; \
case 2: \
idx = (bytestream2_get_byte(gbc) + 2) * x; \
} \
break; \
case 3: \
idx = (bytestream2_get_le16(gbc) + 0x102) * x; \
} \
break; \
} \
} while(0)
Definition at line 56 of file dxv.c.
◆ dxv_decompress_dxt1()
◆ fill_ltable()
◆ fill_optable()
◆ get_opcodes()
◆ dxv_decompress_opcodes()
static int dxv_decompress_opcodes |
( |
GetByteContext * |
gb, |
|
|
void * |
dstp, |
|
|
size_t |
op_size |
|
) |
| |
|
static |
◆ dxv_decompress_cgo()
static int dxv_decompress_cgo |
( |
DXVContext * |
ctx, |
|
|
GetByteContext * |
gb, |
|
|
uint8_t * |
tex_data, |
|
|
int |
tex_size, |
|
|
uint8_t * |
op_data, |
|
|
int * |
oindex, |
|
|
int |
op_size, |
|
|
uint8_t ** |
dstp, |
|
|
int * |
statep, |
|
|
uint8_t ** |
tab0, |
|
|
uint8_t ** |
tab1, |
|
|
int |
offset |
|
) |
| |
|
static |
◆ dxv_decompress_cocg()
static int dxv_decompress_cocg |
( |
DXVContext * |
ctx, |
|
|
GetByteContext * |
gb, |
|
|
uint8_t * |
tex_data, |
|
|
int |
tex_size, |
|
|
uint8_t * |
op_data0, |
|
|
uint8_t * |
op_data1, |
|
|
int |
max_op_size0, |
|
|
int |
max_op_size1 |
|
) |
| |
|
static |
◆ dxv_decompress_yo()
◆ dxv_decompress_ycg6()
◆ dxv_decompress_yg10()
◆ dxv_decompress_dxt5()
◆ dxv_decompress_lzf()
◆ dxv_decompress_raw()
◆ dxv_decode()
◆ dxv_init()
◆ dxv_close()
◆ ff_dxv_decoder
Initial value:
Definition at line 1092 of file dxv.c.
static int op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.