#include <unistd.h>
#include "avcodec.h"
-#include "dsputil.h"
#define CPAIR 2
#define CQUAD 4
typedef struct SmcContext {
AVCodecContext *avctx;
- DSPContext dsp;
AVFrame frame;
const unsigned char *buf;
}
}
-static int smc_decode_init(AVCodecContext *avctx)
+static av_cold int smc_decode_init(AVCodecContext *avctx)
{
SmcContext *s = avctx->priv_data;
s->avctx = avctx;
avctx->pix_fmt = PIX_FMT_PAL8;
- dsputil_init(&s->dsp, avctx);
s->frame.data[0] = NULL;
return buf_size;
}
-static int smc_decode_end(AVCodecContext *avctx)
+static av_cold int smc_decode_end(AVCodecContext *avctx)
{
SmcContext *s = avctx->priv_data;
smc_decode_end,
smc_decode_frame,
CODEC_CAP_DR1,
+ .long_name = NULL_IF_CONFIG_SMALL("QuickTime Graphics (SMC)"),
};