From: Fiona Glaser Date: Fri, 6 Jun 2008 20:59:10 +0000 (-0600) Subject: Partially inline trellis quantization X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cc180ac4a79cae85790c1eeefa692d4f12b5232;p=libx264 Partially inline trellis quantization Inlining trellis into the 4x4/8x8 trellis wrappers increases trellis speed by about 5-10% through constant propagation. --- diff --git a/encoder/rdo.c b/encoder/rdo.c index 8607e075..8223efd8 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 )