[x264-devel] commit: Partially inline trellis quantization (Jason Garrett-Glaser )

git version control git at videolan.org
Sun Jun 8 07:03:27 CEST 2008


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Fri Jun  6 14:59:10 2008 -0600| [c74a8e29d4ed7f0ca3887ccc99ab02a4661f4bed]

Partially inline trellis quantization
Inlining trellis into the 4x4/8x8 trellis wrappers increases trellis speed by about 5-10% through constant propagation.

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

 encoder/rdo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/encoder/rdo.c b/encoder/rdo.c
index 8607e07..8223efd 100644
--- a/encoder/rdo.c
+++ b/encoder/rdo.c
@@ -295,7 +295,7 @@ typedef struct {
 // comparable to the input. so unquant is the direct inverse of quant,
 // and uses the dct scaling factors, not the idct ones.
 
-static void quant_trellis_cabac( x264_t *h, int16_t *dct,
+static inline void quant_trellis_cabac( x264_t *h, int16_t *dct,
                                  const uint16_t *quant_mf, const int *unquant_mf,
                                  const int *coef_weight, const uint8_t *zigzag,
                                  int i_ctxBlockCat, int i_lambda2, int b_ac, int i_coefs )



More information about the x264-devel mailing list