[x265] [PATCH] added blockcopy_pp_c primitive according to modified argument list
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Wed Oct 30 15:57:21 CET 2013
# HG changeset patch
# User Praveen Tiwari
# Date 1383144817 -19800
# Node ID ad7f9c9a0c89b413f8a2e0da4d1a7f90139c297e
# Parent bb3c2693897146b41f26f8e6eb7b28a0b2b50e55
added blockcopy_pp_c primitive according to modified argument list
diff -r bb3c26938971 -r ad7f9c9a0c89 source/common/pixel.cpp
--- a/source/common/pixel.cpp Wed Oct 30 13:44:16 2013 +0530
+++ b/source/common/pixel.cpp Wed Oct 30 20:23:37 2013 +0530
@@ -758,6 +758,22 @@
}
}
}
+
+template<int bx, int by>
+void blockcopy_pp_c(pixel *a, intptr_t stridea, pixel *b, intptr_t strideb)
+{
+ for (int y = 0; y < by; y++)
+ {
+ for (int x = 0; x < bx; x++)
+ {
+ a[x] = b[x];
+ }
+
+ a += stridea;
+ b += strideb;
+ }
+}
+
} // end anonymous namespace
namespace x265 {
More information about the x265-devel
mailing list