#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "bytestream.h"
#include "get_bits.h"
#include "libavutil/lzo.h"
Go to the source code of this file.
Data Structures | |
struct | XanContext |
Defines | |
#define | ALT_BITSTREAM_READER_LE |
Functions | |
static av_cold int | xan_decode_init (AVCodecContext *avctx) |
static int | xan_huffman_decode (unsigned char *dest, int dest_len, const unsigned char *src, int src_len) |
static void | xan_unpack (unsigned char *dest, const unsigned char *src, int dest_len) |
unpack simple compression | |
static void | xan_wc3_output_pixel_run (XanContext *s, const 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, AVPacket *avpkt) |
static av_cold int | xan_decode_end (AVCodecContext *avctx) |
Variables | |
AVCodec | xan_wc3_decoder |
The xan_wc3 decoder outputs PAL8 data.
Definition in file xan.c.
static av_cold int xan_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
static int xan_decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int xan_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static int xan_huffman_decode | ( | unsigned char * | dest, | |
int | dest_len, | |||
const unsigned char * | src, | |||
int | src_len | |||
) | [static] |
static void xan_unpack | ( | unsigned char * | dest, | |
const unsigned char * | src, | |||
int | dest_len | |||
) | [static] |
unpack simple compression
dest | destination buffer of dest_len, must be padded with at least 130 bytes |
Definition at line 123 of file xan.c.
Referenced by xan_wc3_decode_frame().
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_wc3_output_pixel_run | ( | XanContext * | s, | |
const unsigned char * | pixel_buffer, | |||
int | x, | |||
int | y, | |||
int | pixel_count | |||
) | [inline, static] |
static void xan_wc4_decode_frame | ( | XanContext * | s | ) | [static] |
Initial value:
{ "xan_wc3", AVMEDIA_TYPE_VIDEO, CODEC_ID_XAN_WC3, sizeof(XanContext), xan_decode_init, NULL, xan_decode_end, xan_decode_frame, CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("Wing Commander III / Xan"), }