summaryrefslogtreecommitdiff
path: root/src/shaders/post_processing/Common/PL5x8_PL16x8.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders/post_processing/Common/PL5x8_PL16x8.asm')
-rw-r--r--src/shaders/post_processing/Common/PL5x8_PL16x8.asm29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/shaders/post_processing/Common/PL5x8_PL16x8.asm b/src/shaders/post_processing/Common/PL5x8_PL16x8.asm
new file mode 100644
index 0000000..909f8a7
--- /dev/null
+++ b/src/shaders/post_processing/Common/PL5x8_PL16x8.asm
@@ -0,0 +1,29 @@
+/*
+ * All Video Processing kernels
+ * Copyright © <2010>, Intel Corporation.
+ *
+ * This program is licensed under the terms and conditions of the
+ * Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
+ * http://www.opensource.org/licenses/eclipse-1.0.php.
+ *
+ */
+
+// Module name: PL5x8_PL16x8.asm
+
+#include "Expansion.inc"
+
+//------------------------------ Horizontal Upconversion -----------------------------
+ $for (nUV_NUM_OF_ROWS/2-1; >-1; -1) {
+ avg.sat (16) uwDEST_U(0, %1*32+16) uwDEST_U(0, %1*16+7)<1;2,0> uwDEST_U(0, %1*16+7)<1;2,1>
+ avg.sat (16) uwDEST_V(0, %1*32+16) uwDEST_V(0, %1*16+7)<1;2,0> uwDEST_V(0, %1*16+7)<1;2,1>
+ avg.sat (16) uwDEST_U(0, %1*32) uwDEST_U(0, %1*16)<1;2,0> uwDEST_U(0, %1*16)<1;2,1>
+ avg.sat (16) uwDEST_V(0, %1*32) uwDEST_V(0, %1*16)<1;2,0> uwDEST_V(0, %1*16)<1;2,1>
+ }
+ $for (nUV_NUM_OF_ROWS/2-1; >-1; -1) {
+ avg.sat (16) uwDEST_U(0, %1*32+16) uwDEST_U(0, %1*32+18)<1;2,0> uwDEST_U(0, %1*32+18)<1;2,1>
+ avg.sat (16) uwDEST_V(0, %1*32+16) uwDEST_V(0, %1*32+18)<1;2,0> uwDEST_V(0, %1*32+18)<1;2,1>
+ avg.sat (16) uwDEST_U(0, %1*32) uwDEST_U(0, %1*32)<1;2,0> uwDEST_U(0, %1*32)<1;2,1>
+ avg.sat (16) uwDEST_V(0, %1*32) uwDEST_V(0, %1*32)<1;2,0> uwDEST_V(0, %1*32)<1;2,1>
+ }
+
+// End of PL5x8_PL16x8