[x265] [PATCH] slicetype: allow scenecut engine independent of adaptive bframe option

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Thu Oct 8 11:28:24 CEST 2015


# HG changeset patch
# User Aarthi Thirumalai
# Date 1444296492 -19800
#      Thu Oct 08 14:58:12 2015 +0530
# Branch stable
# Node ID 232c387fc7242c3cca6565e2094672082834ec29
# Parent  af9a5476502c7f8bb814b6dfd79eaadb3304a805
slicetype: allow scenecut engine independent of adaptive bframe option

diff -r af9a5476502c -r 232c387fc724 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Thu Oct 08 11:05:42 2015 +0530
+++ b/source/encoder/slicetype.cpp	Thu Oct 08 14:58:12 2015 +0530
@@ -1254,16 +1254,12 @@
 
     int numBFrames = 0;
     int numAnalyzed = numFrames;
-
-    if (m_param->bFrameAdaptive)
+    bool isScenecut = scenecut(frames, 0, 1, true, origNumFrames);
+    /* When scenecut threshold is set, use scenecut detection for I frame placements */
+    if (m_param->scenecutThreshold && isScenecut)
     {
-        bool isScenecut = scenecut(frames, 0, 1, true, origNumFrames);
-        /* When scenecut threshold is set, use scenecut detection for I frame placements */
-        if (m_param->scenecutThreshold && isScenecut)
-        {
-            frames[1]->sliceType = X265_TYPE_I;
-            return;
-        }
+        frames[1]->sliceType = X265_TYPE_I;
+        return;
     }
 
     if (m_param->bframes)


More information about the x265-devel mailing list