| 1 |
#include <stdlib.h> |
| 2 |
#include "example3orc.h" |
| 3 |
|
| 4 |
#define N 10 |
| 5 |
|
| 6 |
int |
| 7 |
main (int argc, char *argv[]) |
| 8 |
{ |
| 9 |
unsigned char *input_y = calloc(640*480, sizeof(unsigned char)); |
| 10 |
unsigned char *input_u = calloc(320*240, sizeof(unsigned char)); |
| 11 |
unsigned char *input_v = calloc(320*240, sizeof(unsigned char)); |
| 12 |
unsigned int *output = malloc(640*480*sizeof(unsigned int)); |
| 13 |
|
| 14 |
/* Call a function that uses Orc */ |
| 15 |
convert_I420_AYUV (output, 1280*4, output + 640, 1280 * 4, |
| 16 |
input_y, 1280, input_y + 640, 1280, |
| 17 |
input_u, 320, input_v, 320, |
| 18 |
320, 240); |
| 19 |
|
| 20 |
free(output); |
| 21 |
free(input_v); |
| 22 |
free(input_u); |
| 23 |
free(input_y); |
| 24 |
return 0; |
| 25 |
} |
| 26 |
|