[x265] [PATCH] slicetype: compute frame satd cost for zero latency
aarthi at multicorewareinc.com
aarthi at multicorewareinc.com
Mon Jul 28 13:04:26 CEST 2014
# HG changeset patch
# User Aarthi Thirumalai
# Date 1406545360 -19800
# Mon Jul 28 16:32:40 2014 +0530
# Node ID a8c3e4d73eccfc69d9fa657cb84fa8c17749e70e
# Parent 8bab5275baed85f8a6e183d7edfeba9a516a3669
slicetype: compute frame satd cost for zero latency
diff -r 8bab5275baed -r a8c3e4d73ecc source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp Mon Jul 28 00:14:55 2014 -0500
+++ b/source/encoder/slicetype.cpp Mon Jul 28 16:32:40 2014 +0530
@@ -430,9 +430,15 @@
}
/* calculate the frame costs ahead of time for estimateFrameCost while we still have lowres */
- if (m_param->rc.rateControlMode != X265_RC_CQP && maxSearch > 0)
+ if (m_param->rc.rateControlMode != X265_RC_CQP)
{
int p0, p1, b;
+ /* For zero latency tuning, calculate frame cost to be used later in RC */
+ if (!maxSearch)
+ {
+ for (int i = 0; i <= bframes; i++)
+ frames[i + 1] = &list[i]->m_lowres;
+ }
/* estimate new non-B cost */
p1 = b = bframes + 1;
More information about the x265-devel
mailing list