File: example3.c

package info (click to toggle)
orc 1%3A0.4.26-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,784 kB
  • ctags: 5,605
  • sloc: ansic: 77,058; sh: 4,233; xml: 4,080; makefile: 312
file content (24 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}