comparison qtrle.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 9ac5c0cfeb56
children 48759bfbd073
comparison
equal deleted inserted replaced
6483:1c99abd63afb 6484:814c8bd77d91
35 #include <stdlib.h> 35 #include <stdlib.h>
36 #include <string.h> 36 #include <string.h>
37 #include <unistd.h> 37 #include <unistd.h>
38 38
39 #include "avcodec.h" 39 #include "avcodec.h"
40 #include "dsputil.h"
41 40
42 typedef struct QtrleContext { 41 typedef struct QtrleContext {
43 42
44 AVCodecContext *avctx; 43 AVCodecContext *avctx;
45 DSPContext dsp;
46 AVFrame frame; 44 AVFrame frame;
47 45
48 const unsigned char *buf; 46 const unsigned char *buf;
49 int size; 47 int size;
50 48
519 default: 517 default:
520 av_log (avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n", 518 av_log (avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n",
521 avctx->bits_per_sample); 519 avctx->bits_per_sample);
522 break; 520 break;
523 } 521 }
524 dsputil_init(&s->dsp, avctx);
525 522
526 s->frame.data[0] = NULL; 523 s->frame.data[0] = NULL;
527 524
528 return 0; 525 return 0;
529 } 526 }