[x265] [PATCH 1 of 7] frame: add x265_param* to each frame

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Tue May 5 17:51:40 CEST 2015


# HG changeset patch
# User Aarthi Thirumalai
# Date 1427281133 -19800
#      Wed Mar 25 16:28:53 2015 +0530
# Node ID fc12a89d17cbf231f63e7eeba4a9112d1cf0fe17
# Parent  f32e6464225afa02983af1b1905f50cdccae5244
frame: add x265_param* to each frame

The x265_param* points to encoder's param settings by default.
This design will be useful to specify parameters for each input picture separately.

diff -r f32e6464225a -r fc12a89d17cb source/common/frame.cpp
--- a/source/common/frame.cpp	Mon May 04 15:15:42 2015 -0500
+++ b/source/common/frame.cpp	Wed Mar 25 16:28:53 2015 +0530
@@ -38,12 +38,14 @@
     m_reconPic = NULL;
     m_next = NULL;
     m_prev = NULL;
+    m_param = NULL;
     memset(&m_lowres, 0, sizeof(m_lowres));
 }
 
 bool Frame::create(x265_param *param)
 {
     m_fencPic = new PicYuv;
+    m_param = param;
 
     return m_fencPic->create(param->sourceWidth, param->sourceHeight, param->internalCsp) &&
            m_lowres.create(m_fencPic, param->bframes, !!param->rc.aqMode);
diff -r f32e6464225a -r fc12a89d17cb source/common/frame.h
--- a/source/common/frame.h	Mon May 04 15:15:42 2015 -0500
+++ b/source/common/frame.h	Wed Mar 25 16:28:53 2015 +0530
@@ -65,7 +65,7 @@
 
     Frame*                 m_next;               // PicList doubly linked list pointers
     Frame*                 m_prev;
-
+    x265_param*            m_param;             // Points to the latest Param set for the frame.
     x265_analysis_data     m_analysisData;
     Frame();
 


More information about the x265-devel mailing list