[MPlayer-cvslog] r21740 - in trunk: libmpcodecs/vf_zrmjpeg.c libvo/jpeg_enc.c
rik
subversion at mplayerhq.hu
Sat Dec 23 14:18:43 CET 2006
Author: rik
Date: Sat Dec 23 14:18:43 2006
New Revision: 21740
Modified:
trunk/libmpcodecs/vf_zrmjpeg.c
trunk/libvo/jpeg_enc.c
Log:
compilation fixes: define always_inline and don't use uint64_t_C
Modified: trunk/libmpcodecs/vf_zrmjpeg.c
==============================================================================
--- trunk/libmpcodecs/vf_zrmjpeg.c (original)
+++ trunk/libmpcodecs/vf_zrmjpeg.c Sat Dec 23 14:18:43 2006
@@ -39,6 +39,13 @@
#include "libavcodec/mpegvideo.h"
//#include "jpeg_enc.h" /* this file is not present yet */
+/* code from ffmpeg/libavcodec */
+#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC_ == 3 && __GNUC_MINOR__ > 0)
+# define always_inline __attribute__((always_inline)) inline
+#else
+# define always_inline inline
+#endif
+
#undef malloc
#undef free
#undef realloc
@@ -151,7 +158,7 @@
* So 16 <= qscale * quant_matrix[i] <= 7905
* so (1<<19) / 16 >= (1<<19) / (qscale * quant_matrix[i]) >= (1<<19) / 7905
* so 32768 >= (1<<19) / (qscale * quant_matrix[i]) >= 67 */
- qmat[qscale][i] = (int)((uint64_t_C(1) <<
+ qmat[qscale][i] = (int)((UINT64_C(1) <<
QMAT_SHIFT_MMX) / (qscale
*quant_matrix[j]));
qmat16[qscale][0][i] = (1 << QMAT_SHIFT_MMX)
Modified: trunk/libvo/jpeg_enc.c
==============================================================================
--- trunk/libvo/jpeg_enc.c (original)
+++ trunk/libvo/jpeg_enc.c Sat Dec 23 14:18:43 2006
@@ -113,7 +113,7 @@
so (1<<19) / 16 >= (1<<19) / (qscale * quant_matrix[i]) >= (1<<19) / 7905
so 32768 >= (1<<19) / (qscale * quant_matrix[i]) >= 67
*/
- qmat [qscale][i] = (int)((uint64_t_C(1) << QMAT_SHIFT_MMX) / (qscale * quant_matrix[j]));
+ qmat [qscale][i] = (int)((UINT64_C(1) << QMAT_SHIFT_MMX) / (qscale * quant_matrix[j]));
qmat16[qscale][0][i] = (1 << QMAT_SHIFT_MMX) / (qscale * quant_matrix[j]);
if(qmat16[qscale][0][i]==0 || qmat16[qscale][0][i]==128*256) qmat16[qscale][0][i]=128*256-1;
More information about the MPlayer-cvslog
mailing list