Mercurial > libavcodec.hg
comparison mpeg12.c @ 1164:0e3c0c4a7b3d libavcodec
msmpeg4 2pass support & some related cleanup
author | michaelni |
---|---|
date | Wed, 02 Apr 2003 09:57:34 +0000 |
parents | 8c15d82c1893 |
children | fea03d2c4946 |
comparison
equal
deleted
inserted
replaced
1163:0951691c4225 | 1164:0e3c0c4a7b3d |
---|---|
77 static uint8_t fcode_tab[MAX_MV*2+1]; | 77 static uint8_t fcode_tab[MAX_MV*2+1]; |
78 | 78 |
79 static uint32_t uni_mpeg1_ac_vlc_bits[64*64*2]; | 79 static uint32_t uni_mpeg1_ac_vlc_bits[64*64*2]; |
80 static uint8_t uni_mpeg1_ac_vlc_len [64*64*2]; | 80 static uint8_t uni_mpeg1_ac_vlc_len [64*64*2]; |
81 #endif | 81 #endif |
82 | |
83 static inline int get_bits_diff(MpegEncContext *s){ | |
84 int bits,ret; | |
85 | |
86 bits= get_bit_count(&s->pb); | |
87 ret= bits - s->last_bits; | |
88 s->last_bits=bits; | |
89 | |
90 return ret; | |
91 } | |
92 | 82 |
93 static void init_2d_vlc_rl(RLTable *rl) | 83 static void init_2d_vlc_rl(RLTable *rl) |
94 { | 84 { |
95 int i; | 85 int i; |
96 | 86 |