Mercurial > libavcodec.hg
comparison roqvideodec.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 | de5d97b6c25b |
children | 48759bfbd073 |
comparison
equal
deleted
inserted
replaced
6483:1c99abd63afb | 6484:814c8bd77d91 |
---|---|
30 #include <string.h> | 30 #include <string.h> |
31 #include <unistd.h> | 31 #include <unistd.h> |
32 | 32 |
33 #include "avcodec.h" | 33 #include "avcodec.h" |
34 #include "bytestream.h" | 34 #include "bytestream.h" |
35 #include "dsputil.h" | |
36 #include "roqvideo.h" | 35 #include "roqvideo.h" |
37 | 36 |
38 static void roqvideo_decode_frame(RoqContext *ri) | 37 static void roqvideo_decode_frame(RoqContext *ri) |
39 { | 38 { |
40 unsigned int chunk_id = 0, chunk_arg = 0; | 39 unsigned int chunk_id = 0, chunk_arg = 0; |
162 s->width = avctx->width; | 161 s->width = avctx->width; |
163 s->height = avctx->height; | 162 s->height = avctx->height; |
164 s->last_frame = &s->frames[0]; | 163 s->last_frame = &s->frames[0]; |
165 s->current_frame = &s->frames[1]; | 164 s->current_frame = &s->frames[1]; |
166 avctx->pix_fmt = PIX_FMT_YUV444P; | 165 avctx->pix_fmt = PIX_FMT_YUV444P; |
167 dsputil_init(&s->dsp, avctx); | |
168 | 166 |
169 return 0; | 167 return 0; |
170 } | 168 } |
171 | 169 |
172 static int roq_decode_frame(AVCodecContext *avctx, | 170 static int roq_decode_frame(AVCodecContext *avctx, |