changeset 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 1c99abd63afb
children 949e4f444a50
files cinepak.c idcinvideo.c msvideo1.c qtrle.c roqvideodec.c rpza.c smc.c vmdav.c vqavideo.c
diffstat 9 files changed, 0 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/cinepak.c	Mon Mar 10 03:07:15 2008 +0000
+++ b/cinepak.c	Mon Mar 10 03:07:44 2008 +0000
@@ -35,7 +35,6 @@
 #include <unistd.h>
 
 #include "avcodec.h"
-#include "dsputil.h"
 
 
 typedef struct {
@@ -56,7 +55,6 @@
 typedef struct CinepakContext {
 
     AVCodecContext *avctx;
-    DSPContext dsp;
     AVFrame frame;
 
     const unsigned char *data;
@@ -405,8 +403,6 @@
         avctx->pix_fmt = PIX_FMT_PAL8;
     }
 
-    dsputil_init(&s->dsp, avctx);
-
     s->frame.data[0] = NULL;
 
     return 0;
--- a/idcinvideo.c	Mon Mar 10 03:07:15 2008 +0000
+++ b/idcinvideo.c	Mon Mar 10 03:07:44 2008 +0000
@@ -50,7 +50,6 @@
 #include <unistd.h>
 
 #include "avcodec.h"
-#include "dsputil.h"
 
 #define HUFFMAN_TABLE_SIZE 64 * 1024
 #define HUF_TOKENS 256
@@ -66,7 +65,6 @@
 typedef struct IdcinContext {
 
     AVCodecContext *avctx;
-    DSPContext dsp;
     AVFrame frame;
 
     const unsigned char *buf;
@@ -153,7 +151,6 @@
 
     s->avctx = avctx;
     avctx->pix_fmt = PIX_FMT_PAL8;
-    dsputil_init(&s->dsp, avctx);
 
     /* make sure the Huffman tables make it */
     if (s->avctx->extradata_size != HUFFMAN_TABLE_SIZE) {
--- a/msvideo1.c	Mon Mar 10 03:07:15 2008 +0000
+++ b/msvideo1.c	Mon Mar 10 03:07:44 2008 +0000
@@ -36,7 +36,6 @@
 #include <unistd.h>
 
 #include "avcodec.h"
-#include "dsputil.h"
 
 #define PALETTE_COUNT 256
 #define CHECK_STREAM_PTR(n) \
@@ -49,7 +48,6 @@
 typedef struct Msvideo1Context {
 
     AVCodecContext *avctx;
-    DSPContext dsp;
     AVFrame frame;
 
     const unsigned char *buf;
@@ -74,8 +72,6 @@
         avctx->pix_fmt = PIX_FMT_RGB555;
     }
 
-    dsputil_init(&s->dsp, avctx);
-
     s->frame.data[0] = NULL;
 
     return 0;
--- a/qtrle.c	Mon Mar 10 03:07:15 2008 +0000
+++ b/qtrle.c	Mon Mar 10 03:07:44 2008 +0000
@@ -37,12 +37,10 @@
 #include <unistd.h>
 
 #include "avcodec.h"
-#include "dsputil.h"
 
 typedef struct QtrleContext {
 
     AVCodecContext *avctx;
-    DSPContext dsp;
     AVFrame frame;
 
     const unsigned char *buf;
@@ -521,7 +519,6 @@
             avctx->bits_per_sample);
         break;
     }
-    dsputil_init(&s->dsp, avctx);
 
     s->frame.data[0] = NULL;
 
--- a/roqvideodec.c	Mon Mar 10 03:07:15 2008 +0000
+++ b/roqvideodec.c	Mon Mar 10 03:07:44 2008 +0000
@@ -32,7 +32,6 @@
 
 #include "avcodec.h"
 #include "bytestream.h"
-#include "dsputil.h"
 #include "roqvideo.h"
 
 static void roqvideo_decode_frame(RoqContext *ri)
@@ -164,7 +163,6 @@
     s->last_frame    = &s->frames[0];
     s->current_frame = &s->frames[1];
     avctx->pix_fmt = PIX_FMT_YUV444P;
-    dsputil_init(&s->dsp, avctx);
 
     return 0;
 }
--- a/rpza.c	Mon Mar 10 03:07:15 2008 +0000
+++ b/rpza.c	Mon Mar 10 03:07:44 2008 +0000
@@ -40,12 +40,10 @@
 #include <unistd.h>
 
 #include "avcodec.h"
-#include "dsputil.h"
 
 typedef struct RpzaContext {
 
     AVCodecContext *avctx;
-    DSPContext dsp;
     AVFrame frame;
 
     const unsigned char *buf;
@@ -234,7 +232,6 @@
 
     s->avctx = avctx;
     avctx->pix_fmt = PIX_FMT_RGB555;
-    dsputil_init(&s->dsp, avctx);
 
     s->frame.data[0] = NULL;
 
--- a/smc.c	Mon Mar 10 03:07:15 2008 +0000
+++ b/smc.c	Mon Mar 10 03:07:44 2008 +0000
@@ -34,7 +34,6 @@
 #include <unistd.h>
 
 #include "avcodec.h"
-#include "dsputil.h"
 
 #define CPAIR 2
 #define CQUAD 4
@@ -45,7 +44,6 @@
 typedef struct SmcContext {
 
     AVCodecContext *avctx;
-    DSPContext dsp;
     AVFrame frame;
 
     const unsigned char *buf;
@@ -434,7 +432,6 @@
 
     s->avctx = avctx;
     avctx->pix_fmt = PIX_FMT_PAL8;
-    dsputil_init(&s->dsp, avctx);
 
     s->frame.data[0] = NULL;
 
--- a/vmdav.c	Mon Mar 10 03:07:15 2008 +0000
+++ b/vmdav.c	Mon Mar 10 03:07:44 2008 +0000
@@ -45,7 +45,6 @@
 #include <unistd.h>
 
 #include "avcodec.h"
-#include "dsputil.h"
 
 #define VMD_HEADER_SIZE 0x330
 #define PALETTE_COUNT 256
@@ -57,7 +56,6 @@
 typedef struct VmdVideoContext {
 
     AVCodecContext *avctx;
-    DSPContext dsp;
     AVFrame frame;
     AVFrame prev_frame;
 
@@ -336,7 +334,6 @@
 
     s->avctx = avctx;
     avctx->pix_fmt = PIX_FMT_PAL8;
-    dsputil_init(&s->dsp, avctx);
 
     /* make sure the VMD header made it */
     if (s->avctx->extradata_size != VMD_HEADER_SIZE) {
--- a/vqavideo.c	Mon Mar 10 03:07:15 2008 +0000
+++ b/vqavideo.c	Mon Mar 10 03:07:44 2008 +0000
@@ -69,7 +69,6 @@
 #include <unistd.h>
 
 #include "avcodec.h"
-#include "dsputil.h"
 
 #define PALETTE_COUNT 256
 #define VQA_HEADER_SIZE 0x2A
@@ -101,7 +100,6 @@
 typedef struct VqaContext {
 
     AVCodecContext *avctx;
-    DSPContext dsp;
     AVFrame frame;
 
     const unsigned char *buf;
@@ -137,7 +135,6 @@
 
     s->avctx = avctx;
     avctx->pix_fmt = PIX_FMT_PAL8;
-    dsputil_init(&s->dsp, avctx);
 
     /* make sure the extradata made it */
     if (s->avctx->extradata_size != VQA_HEADER_SIZE) {