Mercurial > libavcodec.hg
comparison ffv1.c @ 10098:fef90da31453 libavcodec
Fix comments after switching from CABAC to range coder in r3658.
Patch by Lars T¸«£uber, lars D taeuber A gmx D net
author | cehoyos |
---|---|
date | Wed, 26 Aug 2009 21:25:43 +0000 |
parents | 88dcf5f43a9c |
children | 3ae2df444cdb |
comparison
equal
deleted
inserted
replaced
10097:9b608d9428ae | 10098:fef90da31453 |
---|---|
210 int chroma_h_shift, chroma_v_shift; | 210 int chroma_h_shift, chroma_v_shift; |
211 int flags; | 211 int flags; |
212 int picture_number; | 212 int picture_number; |
213 AVFrame picture; | 213 AVFrame picture; |
214 int plane_count; | 214 int plane_count; |
215 int ac; ///< 1-> CABAC 0-> golomb rice | 215 int ac; ///< 1=range coder <-> 0=golomb rice |
216 PlaneContext plane[MAX_PLANES]; | 216 PlaneContext plane[MAX_PLANES]; |
217 int16_t quant_table[5][256]; | 217 int16_t quant_table[5][256]; |
218 int run_index; | 218 int run_index; |
219 int colorspace; | 219 int colorspace; |
220 | 220 |
734 AVFrame * const p= &f->picture; | 734 AVFrame * const p= &f->picture; |
735 int used_count= 0; | 735 int used_count= 0; |
736 uint8_t keystate=128; | 736 uint8_t keystate=128; |
737 | 737 |
738 ff_init_range_encoder(c, buf, buf_size); | 738 ff_init_range_encoder(c, buf, buf_size); |
739 // ff_init_cabac_states(c, ff_h264_lps_range, ff_h264_mps_state, ff_h264_lps_state, 64); | |
740 ff_build_rac_states(c, 0.05*(1LL<<32), 256-8); | 739 ff_build_rac_states(c, 0.05*(1LL<<32), 256-8); |
741 | 740 |
742 *p = *pict; | 741 *p = *pict; |
743 p->pict_type= FF_I_TYPE; | 742 p->pict_type= FF_I_TYPE; |
744 | 743 |