[x265] [PATCH 3 of 4] slice: signal sps_max_latency_increase_plus1 more accurately (refs #99)

Steve Borho steve at borho.org
Wed Jan 21 16:29:43 CET 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1421853586 21600
#      Wed Jan 21 09:19:46 2015 -0600
# Node ID bf1726a155cd33106233ab98e7bc92a0c09be29d
# Parent  21b73398d9b6c4a165eb389668e0ab1d0c61d12a
slice: signal sps_max_latency_increase_plus1 more accurately (refs #99)

diff -r 21b73398d9b6 -r bf1726a155cd source/common/slice.h
--- a/source/common/slice.h	Wed Jan 21 09:13:01 2015 -0600
+++ b/source/common/slice.h	Wed Jan 21 09:19:46 2015 -0600
@@ -230,6 +230,7 @@
 
     uint32_t maxDecPicBuffering; // these are dups of VPS values
     int      numReorderPics;
+    int      maxLatencyIncrease;
 
     bool     bUseStrongIntraSmoothing; // use param
     bool     bTemporalMVPEnabled;
diff -r 21b73398d9b6 -r bf1726a155cd source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Wed Jan 21 09:13:01 2015 -0600
+++ b/source/encoder/encoder.cpp	Wed Jan 21 09:19:46 2015 -0600
@@ -1289,6 +1289,7 @@
 
     sps->maxDecPicBuffering = m_vps.maxDecPicBuffering;
     sps->numReorderPics = m_vps.numReorderPics;
+    sps->maxLatencyIncrease = m_param->bframes;
 
     sps->bUseStrongIntraSmoothing = m_param->bEnableStrongIntraSmoothing;
     sps->bTemporalMVPEnabled = m_param->bEnableTemporalMvp;
diff -r 21b73398d9b6 -r bf1726a155cd source/encoder/entropy.cpp
--- a/source/encoder/entropy.cpp	Wed Jan 21 09:13:01 2015 -0600
+++ b/source/encoder/entropy.cpp	Wed Jan 21 09:19:46 2015 -0600
@@ -103,7 +103,7 @@
 
     WRITE_UVLC(sps.maxDecPicBuffering - 1, "sps_max_dec_pic_buffering_minus1[i]");
     WRITE_UVLC(sps.numReorderPics,         "sps_num_reorder_pics[i]");
-    WRITE_UVLC(0,                          "sps_max_latency_increase_plus1[i]");
+    WRITE_UVLC(sps.maxLatencyIncrease + 1, "sps_max_latency_increase_plus1[i]");
 
     WRITE_UVLC(sps.log2MinCodingBlockSize - 3,    "log2_min_coding_block_size_minus3");
     WRITE_UVLC(sps.log2DiffMaxMinCodingBlockSize, "log2_diff_max_min_coding_block_size");


More information about the x265-devel mailing list