[x265] [PATCH] csv: Change I-slice into i-slice for non-IDR frames
Divya Manivannan
divya at multicorewareinc.com
Wed Sep 14 07:14:59 CEST 2016
# HG changeset patch
# User Divya Manivannan <divya at multicorewareinc.com>
# Date 1473768302 -19800
# Tue Sep 13 17:35:02 2016 +0530
# Node ID 658d94d5cab42913f64c869c7ac8e9297639eb4b
# Parent d5a1c8b5bad1038b8ee37d007c39f43782c81107
csv: Change I-slice into i-slice for non-IDR frames
diff -r d5a1c8b5bad1 -r 658d94d5cab4 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp Mon Sep 12 20:45:25 2016 +0200
+++ b/source/encoder/encoder.cpp Tue Sep 13 17:35:02 2016 +0530
@@ -1338,7 +1338,7 @@
m_analyzeAll.m_maxFALL += curFrame->m_fencPic->m_avgLumaLevel;
m_analyzeAll.m_maxCLL = X265_MAX(m_analyzeAll.m_maxCLL, curFrame->m_fencPic->m_maxLumaLevel);
- char c = (slice->isIntra() ? 'I' : slice->isInterP() ? 'P' : 'B');
+ char c = (slice->isIntra() ? (curFrame->m_lowres.sliceType == X265_TYPE_IDR ? 'I' : 'i') : slice->isInterP() ? 'P' : 'B');
int poc = slice->m_poc;
if (!IS_REFERENCED(curFrame))
c += 32; // lower case if unreferenced
More information about the x265-devel
mailing list