[x265] [PATCH] Encoder: Factor out duplicated code NAL data extraction

Gopu Govindaswamy gopu at multicorewareinc.com
Thu Sep 12 12:32:10 CEST 2013


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1378981570 -19800
# Node ID 383672220844c58f31dc754d9e2963673d6d3c20
# Parent  185918a342b05a9e420bcaeccc9b286a988c17ea
Encoder: Factor out duplicated code NAL data extraction

diff -r 185918a342b0 -r 383672220844 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Thu Sep 12 15:23:32 2013 +0530
+++ b/source/encoder/encoder.cpp	Thu Sep 12 15:56:10 2013 +0530
@@ -47,7 +47,7 @@
 
     void configure(x265_param_t *param);
     void determineLevelAndProfile(x265_param_t *param);
-    void x265_extract_naldata(AccessUnit &au, size_t &nalcount);
+    void extract_naldata(AccessUnit &au, size_t &nalcount);
 };
 
 x265_t::x265_t()
@@ -345,7 +345,7 @@
     if (encoder->getStreamHeaders(au) == 0)
     {
         size_t nalcount;
-        encoder->x265_extract_naldata( au, nalcount);
+        encoder->extract_naldata( au, nalcount);
 
         *pp_nal = &encoder->m_nals[0];
         if (pi_nal) *pi_nal = (int)nalcount;
@@ -365,7 +365,7 @@
     if (pp_nal && numEncoded)
     {
         size_t nalcount;
-        encoder->x265_extract_naldata( au, nalcount);
+        encoder->extract_naldata( au, nalcount);
 
         *pp_nal = &encoder->m_nals[0];
         if (pi_nal) *pi_nal =(int) nalcount;
@@ -398,7 +398,7 @@
     BitCost::destroy();
 }
 
-void x265_t::x265_extract_naldata( AccessUnit &au, size_t &nalcount)
+void x265_t::extract_naldata( AccessUnit &au, size_t &nalcount)
 {
         UInt memsize = 0;
         nalcount = 0;


More information about the x265-devel mailing list