[x265] [PATCH 1 of 2] asm: the pixel value in blockcopy_ps is saturation by calcRecon, so asm can use packuswb

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


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1383819472 -28800
# Node ID 31ec0bc30ea383dce0768c162e81db2aef05c8f5
# Parent  2cf0e87eaf6e3d7679d2f6c278a7bb353a6d7826
asm: the pixel value in blockcopy_ps is saturation by calcRecon, so asm can use packuswb

diff -r 2cf0e87eaf6e -r 31ec0bc30ea3 source/common/pixel.cpp
--- a/source/common/pixel.cpp	Thu Nov 07 13:13:47 2013 +0800
+++ b/source/common/pixel.cpp	Thu Nov 07 18:17:52 2013 +0800
@@ -408,6 +408,7 @@
     {
         for (int x = 0; x < bx; x++)
         {
+            assert((b[x] >= 0) && (b[x] <= ((1 << X265_DEPTH) - 1)));
             a[x] = (pixel)b[x];
         }
 



More information about the x265-devel mailing list