summaryrefslogtreecommitdiff
path: root/libavcodec/xan.c
diff options
context:
space:
mode:
authorKostya <kostya.shishkov@gmail.com>2011-02-03 10:06:12 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-07 08:06:16 -0500
commit90e8a9c34f641d0cb9137190c1912a3da3095e01 (patch)
tree66d75eb8ad0aa18d4a2c2f6f4347b35cccd2f81e /libavcodec/xan.c
parent44ddfd47d671d2587903d94c8b565f68f45bd4bc (diff)
Remove Xan WC4 cruft from xan.c
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/xan.c')
-rw-r--r--libavcodec/xan.c32
1 files changed, 2 insertions, 30 deletions
diff --git a/libavcodec/xan.c b/libavcodec/xan.c
index 0ae84a6903..520331634c 100644
--- a/libavcodec/xan.c
+++ b/libavcodec/xan.c
@@ -358,9 +358,6 @@ static void xan_wc3_decode_frame(XanContext *s) {
}
}
-static void xan_wc4_decode_frame(XanContext *s) {
-}
-
#if RUNTIME_GAMMA
static inline unsigned mul(unsigned a, unsigned b)
{
@@ -515,23 +512,12 @@ static int xan_decode_frame(AVCodecContext *avctx,
if (!s->frame_size)
s->frame_size = s->current_frame.linesize[0] * s->avctx->height;
- if (avctx->codec->id == CODEC_ID_XAN_WC3) {
- memcpy(s->current_frame.data[1], s->palettes + s->cur_palette * AVPALETTE_COUNT, AVPALETTE_SIZE);
- } else {
- AVPaletteControl *palette_control = avctx->palctrl;
- palette_control->palette_changed = 0;
- memcpy(s->current_frame.data[1], palette_control->palette,
- AVPALETTE_SIZE);
- s->current_frame.palette_has_changed = 1;
- }
+ memcpy(s->current_frame.data[1], s->palettes + s->cur_palette * AVPALETTE_COUNT, AVPALETTE_SIZE);
s->buf = buf;
s->size = buf_size;
- if (avctx->codec->id == CODEC_ID_XAN_WC3)
- xan_wc3_decode_frame(s);
- else if (avctx->codec->id == CODEC_ID_XAN_WC4)
- xan_wc4_decode_frame(s);
+ xan_wc3_decode_frame(s);
/* release the last frame if it is allocated */
if (s->last_frame.data[0])
@@ -577,17 +563,3 @@ AVCodec ff_xan_wc3_decoder = {
.long_name = NULL_IF_CONFIG_SMALL("Wing Commander III / Xan"),
};
-/*
-AVCodec ff_xan_wc4_decoder = {
- "xan_wc4",
- AVMEDIA_TYPE_VIDEO,
- CODEC_ID_XAN_WC4,
- sizeof(XanContext),
- xan_decode_init,
- NULL,
- xan_decode_end,
- xan_decode_frame,
- CODEC_CAP_DR1,
- .long_name = NULL_IF_CONFIG_SMALL("Wing Commander IV / Xxan"),
-};
-*/