[x265] [PATCH] add encodeOrder field to Frame class

sagar at multicorewareinc.com sagar at multicorewareinc.com
Thu Mar 10 11:18:59 CET 2016


# HG changeset patch
# User Sagar Kotecha<sagar at multicorewareinc.com>
# Date 1457605128 -19800
#      Thu Mar 10 15:48:48 2016 +0530
# Node ID 8d98a1d91aa8ed6bee56ff5269afe1eb3fe86c0a
# Parent  3bebe9f8aa3c8303c3d65fc0f96ac6a1de754869
add encodeOrder field to Frame class

diff -r 3bebe9f8aa3c -r 8d98a1d91aa8 source/common/frame.h
--- a/source/common/frame.h	Tue Mar 08 18:30:15 2016 +0530
+++ b/source/common/frame.h	Thu Mar 10 15:48:48 2016 +0530
@@ -49,6 +49,7 @@
     /* Data associated with x265_picture */
     PicYuv*                m_fencPic;
     int                    m_poc;
+    int                    m_encodeOrder;
     int64_t                m_pts;                // user provided presentation time stamp
     int64_t                m_reorderedPts;
     int64_t                m_dts;
diff -r 3bebe9f8aa3c -r 8d98a1d91aa8 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Tue Mar 08 18:30:15 2016 +0530
+++ b/source/encoder/encoder.cpp	Thu Mar 10 15:48:48 2016 +0530
@@ -855,7 +855,7 @@
                 slice->m_endCUAddr = slice->realEndAddress(m_sps.numCUsInFrame * NUM_4x4_PARTITIONS);
             }
 
-            curEncoder->m_rce.encodeOrder = m_encodedFrameNum++;
+            curEncoder->m_rce.encodeOrder = frameEnc->m_encodeOrder = m_encodedFrameNum++;
             if (m_bframeDelay)
             {
                 int64_t *prevReorderedPts = m_prevReorderedPts;
diff -r 3bebe9f8aa3c -r 8d98a1d91aa8 source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp	Tue Mar 08 18:30:15 2016 +0530
+++ b/source/encoder/frameencoder.cpp	Thu Mar 10 15:48:48 2016 +0530
@@ -401,6 +401,7 @@
 
     /* Get the QP for this frame from rate control. This call may block until
      * frames ahead of it in encode order have called rateControlEnd() */
+    m_rce.encodeOrder = m_frame->m_encodeOrder;
     int qp = m_top->m_rateControl->rateControlStart(m_frame, &m_rce, m_top);
     m_rce.newQp = qp;
 


More information about the x265-devel mailing list