[x264-devel] commit: Save a bit of memory with weightp + high bit depth ( Jason Garrett-Glaser )
git at videolan.org
git at videolan.org
Sun Nov 14 08:10:00 CET 2010
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Thu Nov 11 22:25:31 2010 -0800| [8442a656f4606c3a12cfa3778266d4ce92c25fb6] | committer: Jason Garrett-Glaser
Save a bit of memory with weightp + high bit depth
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=8442a656f4606c3a12cfa3778266d4ce92c25fb6
---
common/macroblock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/macroblock.c b/common/macroblock.c
index 1a28418..99302d0 100644
--- a/common/macroblock.c
+++ b/common/macroblock.c
@@ -238,7 +238,7 @@ int x264_macroblock_cache_allocate( x264_t *h )
{
int i_refs = X264_MIN(X264_REF_MAX, (i ? 1 + !!h->param.i_bframe_pyramid : h->param.i_frame_reference) ) << h->param.b_interlaced;
if( h->param.analyse.i_weighted_pred == X264_WEIGHTP_SMART )
- i_refs = X264_MIN(X264_REF_MAX, i_refs + 2); //smart weights add two duplicate frames
+ i_refs = X264_MIN(X264_REF_MAX, i_refs + 1 + (BIT_DEPTH == 8)); //smart weights add two duplicate frames, one in >8-bit
else if( h->param.analyse.i_weighted_pred == X264_WEIGHTP_BLIND )
i_refs = X264_MIN(X264_REF_MAX, i_refs + 1); //blind weights add one duplicate frame
More information about the x264-devel
mailing list