comparison smc.c @ 6484:814c8bd77d91 libavcodec

These video decoders do not need to include and initialize the DSP support functions.
author melanson
date Mon, 10 Mar 2008 03:07:44 +0000
parents 8f8017bdf4c8
children 48759bfbd073
comparison
equal deleted inserted replaced
6483:1c99abd63afb 6484:814c8bd77d91
32 #include <stdlib.h> 32 #include <stdlib.h>
33 #include <string.h> 33 #include <string.h>
34 #include <unistd.h> 34 #include <unistd.h>
35 35
36 #include "avcodec.h" 36 #include "avcodec.h"
37 #include "dsputil.h"
38 37
39 #define CPAIR 2 38 #define CPAIR 2
40 #define CQUAD 4 39 #define CQUAD 4
41 #define COCTET 8 40 #define COCTET 8
42 41
43 #define COLORS_PER_TABLE 256 42 #define COLORS_PER_TABLE 256
44 43
45 typedef struct SmcContext { 44 typedef struct SmcContext {
46 45
47 AVCodecContext *avctx; 46 AVCodecContext *avctx;
48 DSPContext dsp;
49 AVFrame frame; 47 AVFrame frame;
50 48
51 const unsigned char *buf; 49 const unsigned char *buf;
52 int size; 50 int size;
53 51
432 { 430 {
433 SmcContext *s = avctx->priv_data; 431 SmcContext *s = avctx->priv_data;
434 432
435 s->avctx = avctx; 433 s->avctx = avctx;
436 avctx->pix_fmt = PIX_FMT_PAL8; 434 avctx->pix_fmt = PIX_FMT_PAL8;
437 dsputil_init(&s->dsp, avctx);
438 435
439 s->frame.data[0] = NULL; 436 s->frame.data[0] = NULL;
440 437
441 return 0; 438 return 0;
442 } 439 }