xan.c File Reference
Detailed Description
Xan video decoder for Wing Commander III computer game by Mario Brito (
mbrito@student.dei.uc.pt) and Mike Melanson (
melanson@pcisys.net).
The xan_wc3 decoder outputs PAL8 data.
Definition in file xan.c.
Go to the source code of this file.
|
Classes |
| struct | XanContext |
Functions |
| static int | xan_decode_init (AVCodecContext *avctx) |
| static void | bytecopy (unsigned char *dest, unsigned char *src, int count) |
| static int | xan_huffman_decode (unsigned char *dest, unsigned char *src, int dest_len) |
| static void | xan_unpack (unsigned char *dest, unsigned char *src, int dest_len) |
| static void | xan_wc3_output_pixel_run (XanContext *s, unsigned char *pixel_buffer, int x, int y, int pixel_count) |
| static void | xan_wc3_copy_pixel_run (XanContext *s, int x, int y, int pixel_count, int motion_x, int motion_y) |
| static void | xan_wc3_decode_frame (XanContext *s) |
| static void | xan_wc4_decode_frame (XanContext *s) |
| static int | xan_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | xan_decode_end (AVCodecContext *avctx) |
Variables |
| AVCodec | xan_wc3_decoder |
Function Documentation
Definition at line 57 of file xan.c.
| static void bytecopy |
( |
unsigned char * |
dest, |
|
|
unsigned char * |
src, |
|
|
int |
count | |
|
) |
| | [inline, static] |
| static int xan_huffman_decode |
( |
unsigned char * |
dest, |
|
|
unsigned char * |
src, |
|
|
int |
dest_len | |
|
) |
| | [static] |
| static void xan_unpack |
( |
unsigned char * |
dest, |
|
|
unsigned char * |
src, |
|
|
int |
dest_len | |
|
) |
| | [static] |
| static void xan_wc3_output_pixel_run |
( |
XanContext * |
s, |
|
|
unsigned char * |
pixel_buffer, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
pixel_count | |
|
) |
| | [inline, static] |
| static void xan_wc3_copy_pixel_run |
( |
XanContext * |
s, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
pixel_count, |
|
|
int |
motion_x, |
|
|
int |
motion_y | |
|
) |
| | [inline, static] |
| static void xan_wc3_decode_frame |
( |
XanContext * |
s |
) |
[static] |
| static void xan_wc4_decode_frame |
( |
XanContext * |
s |
) |
[static] |
| static int xan_decode_frame |
( |
AVCodecContext * |
avctx, |
|
|
void * |
data, |
|
|
int * |
data_size, |
|
|
uint8_t * |
buf, |
|
|
int |
buf_size | |
|
) |
| | [static] |
Variable Documentation
Initial value:
Definition at line 464 of file xan.c.