summaryrefslogtreecommitdiff
path: root/libavcodec/h264_cabac.c
Commit message (Collapse)AuthorAge
* h264: Use + instead of | in some placesAlexander Strange2010-03-26
| | | | | | 6 insns less on x86-64/gcc 4.2. Originally committed as revision 22692 to svn://svn.ffmpeg.org/ffmpeg/trunk
* h264: Remove unused function argumentAlexander Strange2010-03-26
| | | | Originally committed as revision 22690 to svn://svn.ffmpeg.org/ffmpeg/trunk
* h264: Simplify decode_cabac_residual() specializationAlexander Strange2010-03-26
| | | | | | Gives more consistent inlining with some compilers (such as llvm). Originally committed as revision 22689 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove some unneeded fill_rectangle() for 16x16 blocks.Michael Niedermayer2010-02-28
| | | | Originally committed as revision 22124 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimize (amvd>2)+(amvd>32), about 1 cpu cycles faster.Zhou Zongyi2010-02-26
| | | | | | patch by Zhou Zongyi @ zhouzy () os punkt pku dot edu speck cn Originally committed as revision 22084 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change mvd_cache & mvd_table to 8bit, this is overall a bit fasterMichael Niedermayer2010-02-24
| | | | | | | for high resolution videos. about 20cycles faster per MB for cathederal. Originally committed as revision 22038 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Calculate mvd without abs()Michael Niedermayer2010-02-24
| | | | | | same speed (ask gcc why, i dont know) Originally committed as revision 22035 to svn://svn.ffmpeg.org/ffmpeg/trunk
* switch back to (amvd>2)+(amvd>32), its 5 cpu cycles faster now.Michael Niedermayer2010-02-24
| | | | Originally committed as revision 22032 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize common code from the top of decode_cabac_mb_mvd()Michael Niedermayer2010-02-24
| | | | | | 10-15 cpu cycles faster. Originally committed as revision 22029 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace mvd>2 + mvd>32 by MIN((mvd+28)*17>>9, 2)Michael Niedermayer2010-02-24
| | | | | | | | same speed as far as i can meassure but it might have fewer branches on some archs. Idea from x264 / jason Originally committed as revision 22027 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace ad-hoc fill rectangle by fill_rectangle().Michael Niedermayer2010-02-24
| | | | Originally committed as revision 22025 to svn://svn.ffmpeg.org/ffmpeg/trunk
* get rid of an if() 1 cpu cycle faster.Michael Niedermayer2010-02-19
| | | | Originally committed as revision 21889 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of a local variable, 10 cpu cycles faster.Michael Niedermayer2010-02-19
| | | | Originally committed as revision 21888 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move abs() from decode_cabac_mb_mvd() to the code that writes mvd_cache.Michael Niedermayer2010-02-18
| | | | | | 4-8 cycles faster Originally committed as revision 21887 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Speedup decode_cabac_field_decoding_flag() by 9 cpu cycles.Michael Niedermayer2010-02-18
| | | | Originally committed as revision 21875 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move check for and call of predict_field_decoding_flag() from the mb code toMichael Niedermayer2010-02-17
| | | | | | the row code. This function would only be needed on a MB basis for MBAFF+FMO Originally committed as revision 21860 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 2x faster ff_h264_init_cabac_states(), 4k cpu cycles less.Michael Niedermayer2010-02-16
| | | | | | Sadly this is just per slice so the speedup with normal files should be negligible. Originally committed as revision 21859 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 2 cpu cycles faster context calculation for decode_cabac_intra_mb_type()Michael Niedermayer2010-02-16
| | | | Originally committed as revision 21845 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Drop a few redundant slice_num checks.Michael Niedermayer2010-02-16
| | | | Originally committed as revision 21844 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Drop compute_mb_neighbors() and move fill_decode_neighbors() up to take itsMichael Niedermayer2010-02-15
| | | | | | | role. Should be faster as this is a strict code removial. Originally committed as revision 21843 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split setting neighboring MBs from fill_decode_caches()Michael Niedermayer2010-02-15
| | | | | | no speed change. Originally committed as revision 21842 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify decode_cabac_mb_intra4x4_pred_mode().Michael Niedermayer2010-02-15
| | | | | | same speed Originally committed as revision 21839 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge decode_cabac_mb_type_b() into calling code.Michael Niedermayer2010-02-15
| | | | | | This avoids a conditional branch and is about 3 cpu cyclues faster. Originally committed as revision 21838 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge the single line function decode_cabac_mb_transform_size()Michael Niedermayer2010-02-15
| | | | | | | into the calling code. 8 cpu cycles faster Originally committed as revision 21828 to svn://svn.ffmpeg.org/ffmpeg/trunk
* indentMichael Niedermayer2010-02-14
| | | | Originally committed as revision 21827 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge decode_cabac_mb_dqp() with surronding code.Michael Niedermayer2010-02-14
| | | | | | ~20 cpu cycles faster Originally committed as revision 21826 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set sub_mb_type in direct_cache instead of just the direct flag.Michael Niedermayer2010-02-14
| | | | | | Simpler, cleaner and faster. Originally committed as revision 21822 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Store sub_mb_type in direct_cache/direct_table.Michael Niedermayer2010-02-14
| | | | | | This is equal complexity but could be more usefull. Originally committed as revision 21821 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove slice_table checks from decode_cabac_mb_cbp_luma() and set ↵Michael Niedermayer2010-02-14
| | | | | | | | left/top_cbp so these checks arent needed. Originally committed as revision 21819 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Optimize decode_cabac_field_decoding_flag().Michael Niedermayer2010-01-25
| | | | | | ~4 cpu cycles faster Originally committed as revision 21447 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move array specifiers outside DECLARE_ALIGNED() invocationsMåns Rullgård2010-01-22
| | | | Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetic, get rid of &x[0]Michael Niedermayer2010-01-18
| | | | Originally committed as revision 21309 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split fill_caches() between filter and decoder.Michael Niedermayer2010-01-17
| | | | Originally committed as revision 21271 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rearchitecturing the stiched up goose part 1Michael Niedermayer2010-01-17
| | | | | | | | | | | Run loop filter per row instead of per MB, this also should make it much easier to switch to per frame filtering and also doing so in a seperate thread in the future if some volunteer wants to try. Overall decoding speedup of 1.7% (single thread on pentium dual / cathedral sample) This change also allows some optimizations to be tried that would not have been possible before. Originally committed as revision 21270 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace cabac checks in inline functions from h264.h with constants.Michael Niedermayer2010-01-16
| | | | | | | No benchmark because its just replacing variables with litteral constants (so no risk for slowdown outside gcc silliness) and i need sleep. Originally committed as revision 21237 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split cabac decoding code out of h264.c.Michael Niedermayer2010-01-13
not slower according to benchmarks. Originally committed as revision 21181 to svn://svn.ffmpeg.org/ffmpeg/trunk