[MPlayer-cvslog] r25545 - trunk/libvo/jpeg_enc.c

diego subversion at mplayerhq.hu
Sun Dec 30 11:49:44 CET 2007


Author: diego
Date: Sun Dec 30 11:49:43 2007
New Revision: 25545

Log:
Do not duplicate MJpegContext struct, #include the proper header instead.
This also fixes the warnings:
jpeg_enc.c:342: warning: implicit declaration of function 'ff_mjpeg_encode_init'
jpeg_enc.c:384: warning: implicit declaration of function 'ff_mjpeg_encode_picture_header'
jpeg_enc.c:489: warning: implicit declaration of function 'ff_mjpeg_encode_picture_trailer'
jpeg_enc.c:500: warning: implicit declaration of function 'ff_mjpeg_encode_close'


Modified:
   trunk/libvo/jpeg_enc.c

Modified: trunk/libvo/jpeg_enc.c
==============================================================================
--- trunk/libvo/jpeg_enc.c	(original)
+++ trunk/libvo/jpeg_enc.c	Sun Dec 30 11:49:43 2007
@@ -35,25 +35,12 @@
 #include "libavcodec/avcodec.h"
 #include "libavcodec/dsputil.h"
 #include "libavcodec/mpegvideo.h"
+#include "libavcodec/mjpegenc.h"
 
 #include "jpeg_enc.h"
 
 extern int avcodec_inited;
 
-/* zr_mjpeg_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;
-
 
 /* Begin excessive code duplication ************************************/
 /* Code coming from mpegvideo.c and mjpeg.c in ../libavcodec ***********/



More information about the MPlayer-cvslog mailing list