FFmpeg
|
#include <stdint.h>
#include <zlib.h>
#include "libavutil/imgutils.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
Go to the source code of this file.
Data Structures | |
struct | TDSCContext |
Macros | |
#define | BITMAPINFOHEADER_SIZE 0x28 |
#define | TDSF_HEADER_SIZE 0x56 |
#define | TDSB_HEADER_SIZE 0x08 |
#define | APPLY_ALPHA(src, new, alpha) src = (src * (256 - alpha) + new * alpha) >> 8 |
Enumerations | |
enum | TDSCCursorFormat { CUR_FMT_MONO = 0x01010004, CUR_FMT_BGRA = 0x20010004, CUR_FMT_RGBA = 0x20010008 } |
Functions | |
static av_cold int | tdsc_close (AVCodecContext *avctx) |
static av_cold int | tdsc_init (AVCodecContext *avctx) |
static void | tdsc_paint_cursor (AVCodecContext *avctx, uint8_t *dst, int stride) |
static int | tdsc_load_cursor (AVCodecContext *avctx) |
static void | tdsc_yuv2rgb (uint8_t *out, int Y, int U, int V) |
static av_always_inline void | tdsc_blit (uint8_t *dst, int dst_stride, const uint8_t *srcy, int srcy_stride, const uint8_t *srcu, const uint8_t *srcv, int srcuv_stride, int width, int height) |
static int | tdsc_decode_jpeg_tile (AVCodecContext *avctx, int tile_size, int x, int y, int w, int h) |
static int | tdsc_decode_tiles (AVCodecContext *avctx, int number_tiles) |
static int | tdsc_parse_tdsf (AVCodecContext *avctx, int number_tiles) |
static int | tdsc_parse_dtsm (AVCodecContext *avctx) |
static int | tdsc_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *avpkt) |
Variables | |
const FFCodec | ff_tdsc_decoder |
TDSC decoder
Fourcc: TSDC
TDSC is very simple. It codes picture by tiles, storing them in raw BGR24 format or compressing them in JPEG. Frames can be full pictures or just updates to the previous frame. Cursor is found in its own frame or at the bottom of the picture. Every frame is then packed with zlib.
Supports: BGR24
Definition in file tdsc.c.
enum TDSCCursorFormat |
|
static |
|
static |
|
static |
Definition at line 146 of file tdsc.c.
Referenced by tdsc_decode_frame().
|
static |
Definition at line 191 of file tdsc.c.
Referenced by tdsc_parse_dtsm().
|
inlinestatic |
Definition at line 318 of file tdsc.c.
Referenced by tdsc_blit().
|
static |
Definition at line 326 of file tdsc.c.
Referenced by tdsc_decode_jpeg_tile().
|
static |
Definition at line 345 of file tdsc.c.
Referenced by tdsc_decode_tiles().
|
static |
Definition at line 387 of file tdsc.c.
Referenced by tdsc_parse_tdsf().
|
static |
Definition at line 455 of file tdsc.c.
Referenced by tdsc_decode_frame().
|
static |
Definition at line 498 of file tdsc.c.
Referenced by tdsc_decode_frame().
|
static |
const FFCodec ff_tdsc_decoder |