[Mplayer-cvslog] CVS: main/libvo jpeg_enc.c,1.13,1.14

Rik Snel CVS rik at mplayerhq.hu
Sat Feb 15 21:14:21 CET 2003


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv29865

Modified Files:
	jpeg_enc.c 
Log Message:
UINTX -> uintx_t (following libavcodec)

Index: jpeg_enc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/jpeg_enc.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- jpeg_enc.c	31 Jan 2003 18:03:17 -0000	1.13
+++ jpeg_enc.c	15 Feb 2003 20:14:04 -0000	1.14
@@ -46,15 +46,15 @@
 /* zr_mjpeg_encode_mb needs access to these tables for the black & white 
  * option */
 typedef struct MJpegContext {
-    UINT8 huff_size_dc_luminance[12];
-    UINT16 huff_code_dc_luminance[12];
-    UINT8 huff_size_dc_chrominance[12];
-    UINT16 huff_code_dc_chrominance[12];
-
-    UINT8 huff_size_ac_luminance[256];
-    UINT16 huff_code_ac_luminance[256];
-    UINT8 huff_size_ac_chrominance[256];
-    UINT16 huff_code_ac_chrominance[256];
+    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;
 
 
@@ -75,7 +75,7 @@
 
 static void convert_matrix(MpegEncContext *s, int (*qmat)[64], 
 		uint16_t (*qmat16)[64], uint16_t (*qmat16_bias)[64],
-		const UINT16 *quant_matrix, int bias)
+		const uint16_t *quant_matrix, int bias)
 {
     int qscale;
 
@@ -125,7 +125,7 @@
 }
 
 static inline void encode_dc(MpegEncContext *s, int val, 
-                             UINT8 *huff_size, UINT16 *huff_code)
+                             uint8_t *huff_size, uint16_t *huff_code)
 {
     int mant, nbits;
 
@@ -156,8 +156,8 @@
     int mant, nbits, code, i, j;
     int component, dc, run, last_index, val;
     MJpegContext *m = s->mjpeg_ctx;
-    UINT8 *huff_size_ac;
-    UINT16 *huff_code_ac;
+    uint8_t *huff_size_ac;
+    uint16_t *huff_code_ac;
     
     /* DC coef */
     component = (n <= 3 ? 0 : n - 4 + 1);



More information about the MPlayer-cvslog mailing list