[x265] [PATCH] corrected chroma partition for blockcopy_sp

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Nov 5 11:47:57 CET 2013


# HG changeset patch
# User Praveen Tiwari
# Date 1383648468 -19800
# Node ID 47e2da8747e7e622d56b9f3acfecfc0676a09a2c
# Parent  158f6c0760cb595f6c5a4f0b44aa48f78e76c2df
corrected chroma partition for blockcopy_sp

diff -r 158f6c0760cb -r 47e2da8747e7 source/test/pixelharness.cpp
--- a/source/test/pixelharness.cpp	Tue Nov 05 16:09:56 2013 +0530
+++ b/source/test/pixelharness.cpp	Tue Nov 05 16:17:48 2013 +0530
@@ -678,15 +678,6 @@
             return false;
         }
     }
-
-    if (opt.chroma_copy_sp[part])
-    {
-        if (!check_block_copy_sp(ref.chroma_copy_sp[part], opt.chroma_copy_sp[part]))
-        {
-            printf("chroma_copy_sp[%s] failed\n", chromaPartStr[part]);
-            return false;
-        }
-    }
     return true;
 }
 
@@ -856,6 +847,15 @@
               return false;
           }
       }
+
+     if (opt.chroma_copy_sp[i])
+     {
+        if (!check_block_copy_sp(ref.chroma_copy_sp[i], opt.chroma_copy_sp[i]))
+        {
+            printf("chroma_copy_sp[%s] failed\n", chromaPartStr[i]);
+            return false;
+        }
+     }
     }
      return true;
 }
@@ -930,12 +930,6 @@
         printf("lcpy_sp[%s]", lumaPartStr[part]);
         REPORT_SPEEDUP(opt.luma_copy_sp[part], ref.luma_copy_sp[part], pbuf1, 64, sbuf1, 128);
     }
-
-    if (opt.chroma_copy_sp[part])
-    {
-        printf("ccpy_sp[%s]", chromaPartStr[part]);
-        REPORT_SPEEDUP(opt.chroma_copy_sp[part], ref.chroma_copy_sp[part], pbuf1, 64, sbuf1, 128);
-    }
 }
 
 void PixelHarness::measureSpeed(const EncoderPrimitives& ref, const EncoderPrimitives& opt)
@@ -1060,5 +1054,10 @@
             printf("ccpy_pp[%s]", chromaPartStr[i]);
             REPORT_SPEEDUP(opt.chroma_copy_pp[i], ref.chroma_copy_pp[i], pbuf1, 64, pbuf2, 128);
         }
+       if (opt.chroma_copy_sp[i])
+       {
+        printf("ccpy_sp[%s]", chromaPartStr[i]);
+        REPORT_SPEEDUP(opt.chroma_copy_sp[i], ref.chroma_copy_sp[i], pbuf1, 64, sbuf1, 128);
+       }
     }
 }


More information about the x265-devel mailing list