[x264-devel] commit: Massive cosmetic and syntax cleanup (Jason Garrett-Glaser )

git at videolan.org git at videolan.org
Tue Apr 6 21:48:28 CEST 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Wed Mar 31 01:44:07 2010 -0700| [4abe704f9c23e342ed485d2f92f5d7ce7e32b4ff] | committer: Jason Garrett-Glaser 

Massive cosmetic and syntax cleanup
Convert all applicable loops to use C99 loop index syntax.
Clean up most inconsistent syntax in ratecontrol.c, visualize, ppc, etc.
Replace log(x)/log(2) constructs with log2, and similar with log10.
Fix all -Wshadow violations.
Fix visualize support.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=4abe704f9c23e342ed485d2f92f5d7ce7e32b4ff
---

 common/cabac.c         |   14 +--
 common/common.c        |   15 +-
 common/common.h        |    4 +-
 common/cpu.c           |   13 +-
 common/dct.c           |  202 ++++++++++------------
 common/display-x11.c   |  337 ++++++++++++++++++-------------------
 common/frame.c         |  182 +++++++++-----------
 common/macroblock.c    |  182 +++++++++-----------
 common/macroblock.h    |    5 +-
 common/mc.c            |  126 ++++++---------
 common/osdep.h         |    3 +-
 common/pixel.c         |  117 ++++++-------
 common/ppc/dct.c       |    9 +-
 common/ppc/dct.h       |   15 +-
 common/ppc/deblock.c   |   60 +++----
 common/ppc/mc.c        |  151 +++++++---------
 common/ppc/pixel.c     |   95 +++--------
 common/ppc/predict.c   |   61 +++-----
 common/ppc/quant.c     |  175 ++++++++++----------
 common/predict.c       |  167 +++++++-----------
 common/quant.c         |   42 +++---
 common/set.c           |   61 ++++----
 common/visualize.c     |  318 ++++++++++++++++++-----------------
 common/vlc.c           |    6 +-
 encoder/analyse.c      |  226 +++++++++++--------------
 encoder/cabac.c        |   71 ++++-----
 encoder/cavlc.c        |   41 ++---
 encoder/encoder.c      |  262 +++++++++++------------------
 encoder/lookahead.c    |    6 +-
 encoder/macroblock.c   |   77 ++++-----
 encoder/me.c           |  258 ++++++++++++++--------------
 encoder/ratecontrol.c  |  440 ++++++++++++++++++++++-------------------------
 encoder/rdo.c          |   46 ++---
 encoder/set.c          |   31 ++--
 encoder/slicetype.c    |  113 ++++++-------
 input/avs.c            |   10 +-
 input/timecode.c       |    9 +-
 input/y4m.c            |    4 +-
 input/yuv.c            |    3 +-
 output/matroska_ebml.c |    6 +-
 output/mp4.c           |    4 +-
 tools/checkasm.c       |  375 ++++++++++++++++++++---------------------
 x264.c                 |   59 ++++---
 43 files changed, 1983 insertions(+), 2418 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=4abe704f9c23e342ed485d2f92f5d7ce7e32b4ff


More information about the x264-devel mailing list