[x265] [PATCH 1 of 3] slicetype: identify and mark scenecuts as P slices when scenecutThreshold is 0
aarthi at multicorewareinc.com
aarthi at multicorewareinc.com
Tue Sep 22 11:50:56 CEST 2015
# HG changeset patch
# User Aarthi Thirumalai
# Date 1442908993 -19800
# Tue Sep 22 13:33:13 2015 +0530
# Node ID 819f8cf72d15c6a3dba77383881b8f4c1140542c
# Parent acc2394e34ef7b203a5337d12c926b42bfd8740a
slicetype: identify and mark scenecuts as P slices when scenecutThreshold is 0
When scenecut threshold is 0, there is no I frame placements for scene changes,
still the scenecuts are identified and tagged to be used by Ratecontrol.
diff -r acc2394e34ef -r 819f8cf72d15 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp Mon Sep 21 18:48:46 2015 -0500
+++ b/source/encoder/slicetype.cpp Tue Sep 22 13:33:13 2015 +0530
@@ -1364,7 +1364,7 @@
/* Check scenecut on the first minigop. */
for (int j = 1; j < numBFrames + 1; j++)
{
- if (m_param->scenecutThreshold && scenecut(frames, j, j + 1, false, origNumFrames))
+ if (scenecut(frames, j - 1, j, false, origNumFrames))
{
frames[j]->sliceType = X265_TYPE_P;
numAnalyzed = j;
More information about the x265-devel
mailing list