comparison rpza.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 8705a4d4904f
children 48759bfbd073
comparison
equal deleted inserted replaced
6483:1c99abd63afb 6484:814c8bd77d91
38 #include <stdlib.h> 38 #include <stdlib.h>
39 #include <string.h> 39 #include <string.h>
40 #include <unistd.h> 40 #include <unistd.h>
41 41
42 #include "avcodec.h" 42 #include "avcodec.h"
43 #include "dsputil.h"
44 43
45 typedef struct RpzaContext { 44 typedef struct RpzaContext {
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
232 { 230 {
233 RpzaContext *s = avctx->priv_data; 231 RpzaContext *s = avctx->priv_data;
234 232
235 s->avctx = avctx; 233 s->avctx = avctx;
236 avctx->pix_fmt = PIX_FMT_RGB555; 234 avctx->pix_fmt = PIX_FMT_RGB555;
237 dsputil_init(&s->dsp, avctx);
238 235
239 s->frame.data[0] = NULL; 236 s->frame.data[0] = NULL;
240 237
241 return 0; 238 return 0;
242 } 239 }