summaryrefslogtreecommitdiff
path: root/libavcodec/h264_direct.c
Commit message (Collapse)AuthorAge
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of mb2b8_xy and b8_stride, change arrays organized based on b8_stride toMichael Niedermayer2010-02-25
| | | | | | | ones based on mb_stride in h264. about 20 cpu cycles faster overall per MB Originally committed as revision 22065 to svn://svn.ffmpeg.org/ffmpeg/trunk
* H264: use alias-safe macrosMåns Rullgård2010-02-18
| | | | | | | This eliminates all aliasing violation warnings in h264 code. No measurable speed difference with gcc-4.4.3 on i7. Originally committed as revision 21881 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l ;; gcc 2.95 compilation fix by mikeMichael Niedermayer2010-02-15
| | | | Originally committed as revision 21830 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l use pack16to32(), should fix big endian h264 failures.Michael Niedermayer2010-02-15
| | | | Originally committed as revision 21829 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics, vertical align.Michael Niedermayer2010-02-14
| | | | Originally committed as revision 21817 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move setting MB_TYPE_L0L1 for direct MBs up, this is simpler.Michael Niedermayer2010-02-13
| | | | Originally committed as revision 21794 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify if()Michael Niedermayer2010-02-13
| | | | Originally committed as revision 21791 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Init sub_mb_type cleanly.Michael Niedermayer2010-02-13
| | | | Originally committed as revision 21790 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l Forgoten hunk.unbreak compile before someone notices.Michael Niedermayer2010-02-13
| | | | Originally committed as revision 21789 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Restructure spatial direct MV generation so that the zero predictior shortcutMichael Niedermayer2010-02-13
| | | | | | | is closer at the top. 50-130 cpu cycles faster depending on which kind of direct MBs are meassured. Originally committed as revision 21788 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split spatial and temporal direct MV generation.Michael Niedermayer2010-02-13
| | | | | | | | A little faster and needed for future optimizations. This sadly leads to some code duplication (which i hope i can factor out again after the optimizations on the direcr mv code are done) Originally committed as revision 21787 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Special case for spatial direct MV predictor being 0.Michael Niedermayer2010-02-13
| | | | | | a little less than 200 cpu cycles faster with the cathedral sample. Originally committed as revision 21785 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pack MVs together from the begin for spatial direct, this simplifies the codeMichael Niedermayer2010-02-13
| | | | | | and is a bit faster (5-10 cpu cycles depending on what is meassured). Originally committed as revision 21784 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reorder and factorize mb_type ifs, 1 cpu cycle faster and simpler.Michael Niedermayer2010-02-09
| | | | Originally committed as revision 21694 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set partitioning to 16x16 for spatial direct MBs with mixed interlacing.Michael Niedermayer2010-02-08
| | | | | | | 11cylcles slower MV generation 98cycles faster MC Originally committed as revision 21691 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Detect spatial direct MBs partitioned smaller than 16x16 that can be partitionedMichael Niedermayer2010-02-08
| | | | | | | | as 16x16 (except ones changing interlacing relative to the colocated MB). 20 cycles slower during MV generation 175 cycles faster during MC Originally committed as revision 21690 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Detect equal 4x4 blocks in spatial direct MBs.Michael Niedermayer2010-02-08
| | | | | | | 19 cycles slower MV generation 575 cycles faster MC Originally committed as revision 21689 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Branchless calculation of ref_offset.Michael Niedermayer2010-02-08
| | | | | | 7 cpu cycles faster. Originally committed as revision 21685 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove incorrect fixme, i see no case that is missing.Michael Niedermayer2010-02-08
| | | | Originally committed as revision 21684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace call to pred_motion() in direct spatial mv pred by codeMichael Niedermayer2010-02-08
| | | | | | | and simplify cases that cannot happen away. 8 cpu cycles faster Originally committed as revision 21683 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set x264_build so that checks are simpler.Michael Niedermayer2010-02-08
| | | | Originally committed as revision 21681 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Zero a/b only in the branch where they need to be zeroed.Michael Niedermayer2010-02-07
| | | | Originally committed as revision 21679 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge mv&ref related code for spatial direct MV code.Michael Niedermayer2010-02-07
| | | | | | a bit more than 10 cpu cycles faster. Originally committed as revision 21678 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Precalculate a few variables for direct mv prediction for interlaced MBs.Michael Niedermayer2010-02-07
| | | | Originally committed as revision 21677 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set direct MB partitioning for 16x8 and 8x16 colocated MBs to the respective ↵Michael Niedermayer2010-02-07
| | | | | | true partitioning. Originally committed as revision 21675 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize setting sub_mb_type out.Michael Niedermayer2010-02-07
| | | | Originally committed as revision 21674 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove FIXMEs for cases that are disallowed by the spec.Michael Niedermayer2010-02-07
| | | | Originally committed as revision 21669 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Skip the fill_colmap() case thats for MBAFF if we dont have an MBAFF frame.Michael Niedermayer2010-02-07
| | | | Originally committed as revision 21667 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix colocated map.Michael Niedermayer2010-02-07
| | | | Originally committed as revision 21664 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix reference selection for colocated MBs from frames to fields.Michael Niedermayer2010-02-07
| | | | Originally committed as revision 21663 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add assert(sps.direct_8x8_inference_flag) to FIXME comment.Michael Niedermayer2010-02-07
| | | | Originally committed as revision 21662 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ref_offset must be added after checking references validity.Michael Niedermayer2010-02-07
| | | | Originally committed as revision 21661 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Long term references behave different from short term in spatial direct MV ↵Michael Niedermayer2010-02-06
| | | | | | | | calculation. Fixes FRExt_MMCO4_Sony_B / issue1251 Originally committed as revision 21651 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix compilation with -O0.Michael Niedermayer2010-01-18
| | | | Originally committed as revision 21308 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split motion vector prediction off h264.c/h.Michael Niedermayer2010-01-12
| | | | Originally committed as revision 21174 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split direct mode (macro)block decoding off h264.c.Michael Niedermayer2010-01-12
No speedloss meassured (its slightly faster here but that may be random fluctuations) Originally committed as revision 21165 to svn://svn.ffmpeg.org/ffmpeg/trunk