FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
dxtory.c File Reference
#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
 

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 uint8_t decode_sym_565 (GetBitContext *gb, uint8_t lru[8], int bits)
 
static int dx2_decode_slice_565 (GetBitContext *gb, int width, int height, uint8_t *dst, int stride, int is_565)
 
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, int width, int height, uint8_t *dst, int stride)
 
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, int width, int height, uint8_t *Y, uint8_t *U, uint8_t *V, int ystride, int ustride, int vstride)
 
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, int width, int height, uint8_t *Y, uint8_t *U, uint8_t *V, int ystride, int ustride, int vstride)
 
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, int width, int height, uint8_t *Y, uint8_t *U, uint8_t *V, int ystride, int ustride, int vstride)
 
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
 

Macro Definition Documentation

#define BITSTREAM_READER_LE

Definition at line 23 of file dxtory.c.

Function Documentation

static int dxtory_decode_v1_rgb ( AVCodecContext avctx,
AVFrame pic,
const uint8_t src,
int  src_size,
int  id,
int  bpp 
)
static

Definition at line 32 of file dxtory.c.

Referenced by decode_frame().

static int dxtory_decode_v1_410 ( AVCodecContext avctx,
AVFrame pic,
const uint8_t src,
int  src_size 
)
static

Definition at line 59 of file dxtory.c.

Referenced by decode_frame().

static int dxtory_decode_v1_420 ( AVCodecContext avctx,
AVFrame pic,
const uint8_t src,
int  src_size 
)
static

Definition at line 102 of file dxtory.c.

Referenced by decode_frame().

static int dxtory_decode_v1_444 ( AVCodecContext avctx,
AVFrame pic,
const uint8_t src,
int  src_size 
)
static

Definition at line 139 of file dxtory.c.

Referenced by decode_frame().

static uint8_t decode_sym ( GetBitContext gb,
uint8_t  lru[8] 
)
inlinestatic
static uint8_t decode_sym_565 ( GetBitContext gb,
uint8_t  lru[8],
int  bits 
)
inlinestatic

Definition at line 193 of file dxtory.c.

Referenced by dx2_decode_slice_565().

static int dx2_decode_slice_565 ( GetBitContext gb,
int  width,
int  height,
uint8_t dst,
int  stride,
int  is_565 
)
static

Definition at line 211 of file dxtory.c.

Referenced by dxtory_decode_v2_565().

static int dxtory_decode_v2_565 ( AVCodecContext avctx,
AVFrame pic,
const uint8_t src,
int  src_size,
int  is_565 
)
static

Definition at line 238 of file dxtory.c.

Referenced by decode_frame().

static int dx2_decode_slice_rgb ( GetBitContext gb,
int  width,
int  height,
uint8_t dst,
int  stride 
)
static

Definition at line 297 of file dxtory.c.

Referenced by dxtory_decode_v2_rgb().

static int dxtory_decode_v2_rgb ( AVCodecContext avctx,
AVFrame pic,
const uint8_t src,
int  src_size 
)
static

Definition at line 319 of file dxtory.c.

Referenced by decode_frame().

static int dx2_decode_slice_410 ( GetBitContext gb,
int  width,
int  height,
uint8_t Y,
uint8_t U,
uint8_t V,
int  ystride,
int  ustride,
int  vstride 
)
static

Definition at line 378 of file dxtory.c.

Referenced by dxtory_decode_v2_410().

static int dxtory_decode_v2_410 ( AVCodecContext avctx,
AVFrame pic,
const uint8_t src,
int  src_size 
)
static

Definition at line 405 of file dxtory.c.

Referenced by decode_frame().

static int dx2_decode_slice_420 ( GetBitContext gb,
int  width,
int  height,
uint8_t Y,
uint8_t U,
uint8_t V,
int  ystride,
int  ustride,
int  vstride 
)
static

Definition at line 481 of file dxtory.c.

Referenced by dxtory_decode_v2_420().

static int dxtory_decode_v2_420 ( AVCodecContext avctx,
AVFrame pic,
const uint8_t src,
int  src_size 
)
static

Definition at line 509 of file dxtory.c.

Referenced by decode_frame().

static int dx2_decode_slice_444 ( GetBitContext gb,
int  width,
int  height,
uint8_t Y,
uint8_t U,
uint8_t V,
int  ystride,
int  ustride,
int  vstride 
)
static

Definition at line 585 of file dxtory.c.

Referenced by dxtory_decode_v2_444().

static int dxtory_decode_v2_444 ( AVCodecContext avctx,
AVFrame pic,
const uint8_t src,
int  src_size 
)
static

Definition at line 610 of file dxtory.c.

Referenced by decode_frame().

static int decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 676 of file dxtory.c.

Variable Documentation

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

Definition at line 173 of file dxtory.c.

Referenced by dx2_decode_slice_565().

const uint8_t def_lru_565[8] = { 0x00, 0x08, 0x10, 0x20, 0x30, 0x3F }
static

Definition at line 174 of file dxtory.c.

Referenced by dx2_decode_slice_565().

AVCodec ff_dxtory_decoder
Initial value:
= {
.name = "dxtory",
.long_name = NULL_IF_CONFIG_SMALL("Dxtory"),
.decode = decode_frame,
.capabilities = CODEC_CAP_DR1,
}

Definition at line 745 of file dxtory.c.