summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-01-27 13:30:18 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-01-27 13:30:18 +0000
commit2f349de2861fdbc957f12c925ce5146c045ba834 (patch)
tree5ae87e265ea91bd721cf2f9335e7f8dd69eed5d7 /libavcodec/mpegvideo.h
parent580b82fa244bcb668069ca0a8803258be7ba77bb (diff)
(commit by michael)
mmx & mmx2 quantizer c dct permutation bugfix dont copy input on intra only encodings if it can be avoided dont draw edges on intra only stuff Originally committed as revision 281 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r--libavcodec/mpegvideo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 03ddfc8de5..70c962dd94 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -30,6 +30,9 @@ enum OutputFormat {
#define MPEG_BUF_SIZE (16 * 1024)
+#define QMAT_SHIFT_MMX 19
+#define QMAT_SHIFT 25
+
typedef struct MpegEncContext {
struct AVCodecContext *avctx;
/* the following parameters must be initialized before encoding */
@@ -120,6 +123,9 @@ typedef struct MpegEncContext {
/* precomputed matrix (combine qscale and DCT renorm) */
int q_intra_matrix[64];
int q_non_intra_matrix[64];
+ /* identical to the above but for MMX & these are not permutated */
+ UINT16 __align8 q_intra_matrix16[64] ;
+ UINT16 __align8 q_non_intra_matrix16[64];
int block_last_index[6]; /* last non zero coefficient in block */
void *opaque; /* private data for the user */