summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-07-30 23:26:26 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-07-30 23:26:26 +0000
commit21af69f7876d7708ee59fcb94384ab1d2f7ff14f (patch)
treec26944a3f1e9db17f64a309570747ed88e434fcb /libavcodec/mpegvideo.h
parentb7ec19d39e8a881e973523bce1704dfd3a0470e6 (diff)
use block[] in structure to have it aligned on 8 bytes for mmx optimizations - dct_unquantize is always a function pointer - added specialized dct_unquantize_h263
Originally committed as revision 22 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r--libavcodec/mpegvideo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index a097b01b00..71f8b139cf 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -173,6 +173,10 @@ typedef struct MpegEncContext {
int interlaced_dct;
int last_qscale;
int first_slice;
+
+ DCTELEM block[6][64] __align8;
+ void (*dct_unquantize)(struct MpegEncContext *s,
+ DCTELEM *block, int n, int qscale);
} MpegEncContext;
extern const UINT8 zigzag_direct[64];
@@ -182,6 +186,9 @@ void MPV_common_end(MpegEncContext *s);
void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64]);
void MPV_frame_start(MpegEncContext *s);
void MPV_frame_end(MpegEncContext *s);
+#ifdef HAVE_MMX
+void MPV_common_init_mmx(MpegEncContext *s);
+#endif
/* motion_est.c */