[x265] [PATCH 2 of 2] cleanup: remove unused blockcpy_sc

Min Chen chenm003 at 163.com
Thu Nov 7 11:18:29 CET 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1383819496 -28800
# Node ID ed6c59ee1ee351e83debaf254406ae4a33422396
# Parent  31ec0bc30ea383dce0768c162e81db2aef05c8f5
cleanup: remove unused blockcpy_sc

diff -r 31ec0bc30ea3 -r ed6c59ee1ee3 source/common/pixel.cpp
--- a/source/common/pixel.cpp	Thu Nov 07 18:17:52 2013 +0800
+++ b/source/common/pixel.cpp	Thu Nov 07 18:18:16 2013 +0800
@@ -417,20 +417,6 @@
     }
 }
 
-void blockcopy_s_c(int bx, int by, int16_t *a, intptr_t stridea, uint8_t *b, intptr_t strideb)
-{
-    for (int y = 0; y < by; y++)
-    {
-        for (int x = 0; x < bx; x++)
-        {
-            a[x] = (int16_t)b[x];
-        }
-
-        a += stridea;
-        b += strideb;
-    }
-}
-
 template<int size>
 void blockfil_s_c(int16_t *dst, intptr_t dstride, int16_t val)
 {
@@ -901,7 +887,6 @@
     p.blockcpy_pp = blockcopy_p_p;
     p.blockcpy_ps = blockcopy_p_s;
     p.blockcpy_sp = blockcopy_s_p;
-    p.blockcpy_sc = blockcopy_s_c;
 
     p.blockfill_s[BLOCK_4x4]   = blockfil_s_c<4>;
     p.blockfill_s[BLOCK_8x8]   = blockfil_s_c<8>;
diff -r 31ec0bc30ea3 -r ed6c59ee1ee3 source/common/primitives.h
--- a/source/common/primitives.h	Thu Nov 07 18:17:52 2013 +0800
+++ b/source/common/primitives.h	Thu Nov 07 18:18:16 2013 +0800
@@ -234,7 +234,6 @@
     blockcpy_pp_t   blockcpy_pp;                // block copy pixel from pixel
     blockcpy_ps_t   blockcpy_ps;                // block copy pixel from short
     blockcpy_sp_t   blockcpy_sp;                // block copy short from pixel
-    blockcpy_sc_t   blockcpy_sc;                // block copy short from unsigned char
     blockfill_s_t   blockfill_s[NUM_SQUARE_BLOCKS];  // block fill with value
     cvt16to32_shl_t cvt16to32_shl;
     cvt16to16_shl_t cvt16to16_shl;
diff -r 31ec0bc30ea3 -r ed6c59ee1ee3 source/common/vec/blockcopy-sse3.cpp
--- a/source/common/vec/blockcopy-sse3.cpp	Thu Nov 07 18:17:52 2013 +0800
+++ b/source/common/vec/blockcopy-sse3.cpp	Thu Nov 07 18:18:16 2013 +0800
@@ -394,7 +394,6 @@
     p.blockcpy_pp = blockcopy_pp;
     p.blockcpy_ps = blockcopy_ps;
     p.blockcpy_sp = blockcopy_sp;
-    p.blockcpy_sc = blockcopy_sp;
     p.pixelsub_ps = pixelsub_ps;
     p.pixeladd_ss = pixeladd_ss;
 #endif // if HIGH_BIT_DEPTH



More information about the x265-devel mailing list