summaryrefslogtreecommitdiff
path: root/examples/example3.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example3.c')
-rw-r--r--examples/example3.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/example3.c b/examples/example3.c
new file mode 100644
index 0000000..5b04b3f
--- /dev/null
+++ b/examples/example3.c
@@ -0,0 +1,24 @@
+#include <stdio.h>
+#include "example3orc.h"
+
+#define N 10
+
+unsigned char input_y[640*480];
+unsigned char input_u[320*240];
+unsigned char input_v[320*240];
+
+unsigned int output[640*480];
+
+int
+main (int argc, char *argv[])
+{
+
+ /* Call a function that uses Orc */
+ convert_I420_AYUV (output, 1280*4, output + 640, 1280 * 4,
+ input_y, 1280, input_y + 640, 1280,
+ input_u, 320, input_v, 320,
+ 320, 240);
+
+ return 0;
+}
+