summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-12-31 17:23:56 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-12-31 17:23:56 +0000
commit477ab036ad89e13fbbce502281861364113a492a (patch)
treee599356d5c69a5735239e909d63ce8ddbe93761c /libavcodec/mpegvideo.h
parentbb87a84ce99e3e94ef9f456a36ede3624f92bdf7 (diff)
trellis quantization
Originally committed as revision 1380 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 65c8011ed7..e6af7fa287 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -307,6 +307,13 @@ typedef struct MpegEncContext {
int inter_quant_bias; /* bias for the quantizer */
int min_qcoeff; /* minimum encodable coefficient */
int max_qcoeff; /* maximum encodable coefficient */
+ int ac_esc_length; /* num of bits needed to encode the longest esc */
+ uint8_t *intra_ac_vlc_length;
+ uint8_t *intra_ac_vlc_last_length;
+ uint8_t *inter_ac_vlc_length;
+ uint8_t *inter_ac_vlc_last_length;
+#define UNI_ENC_INDEX(run,level) ((run)*128 + (level))
+
/* precomputed matrix (combine qscale and DCT renorm) */
int __align8 q_intra_matrix[32][64];
int __align8 q_inter_matrix[32][64];