summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-14 16:04:09 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-10-14 16:04:09 +0000
commit1a85bf593b1b58f17fe1aa970612126cddcffb7f (patch)
tree8f635b1af7f1a237f51d1d05b1d121738971da1a /libmpcodecs
parentb60ab0c001a2b7f9bb7bbbe4779c575357e1b9f1 (diff)
downloadmpv-1a85bf593b1b58f17fe1aa970612126cddcffb7f.tar.bz2
mpv-1a85bf593b1b58f17fe1aa970612126cddcffb7f.tar.xz
#include necessary libavcodec header and remove duplicated struct declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27769 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_zrmjpeg.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/libmpcodecs/vf_zrmjpeg.c b/libmpcodecs/vf_zrmjpeg.c
index a94e63723e..0d45666aa4 100644
--- a/libmpcodecs/vf_zrmjpeg.c
+++ b/libmpcodecs/vf_zrmjpeg.c
@@ -49,8 +49,7 @@
* be2me_32, otherwise the linker will complain that it doesn't exist */
#define HAVE_AV_CONFIG_H
#include "libavcodec/avcodec.h"
-#include "libavcodec/dsputil.h"
-#include "libavcodec/mpegvideo.h"
+#include "libavcodec/mjpegenc.h"
//#include "jpeg_enc.h" /* this file is not present yet */
#undef malloc
@@ -69,21 +68,6 @@
// set when init is done, so that initialization is not done twice.
extern int avcodec_initialized;
-/// structure copied from mjpeg.c
-/* zrmjpeg_encode_mb needs access to these tables for the black & white
- * option */
-typedef struct MJpegContext {
- uint8_t huff_size_dc_luminance[12];
- uint16_t huff_code_dc_luminance[12];
- uint8_t huff_size_dc_chrominance[12];
- uint16_t huff_code_dc_chrominance[12];
-
- uint8_t huff_size_ac_luminance[256];
- uint16_t huff_code_ac_luminance[256];
- uint8_t huff_size_ac_chrominance[256];
- uint16_t huff_code_ac_chrominance[256];
-} MJpegContext;
-
/// The get_pixels() routine to use. The real routine comes from dsputil
static void (*get_pixels)(DCTELEM *restrict block, const uint8_t *pixels, int line_size);