aboutsummaryrefslogtreecommitdiff
path: root/src/render.h
blob: 2cb76c1d14d5533b4120a707487100bdee9e849b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * render.h
 *
 *  Created on: 15.01.2018
 *      Author: Superleo1810
 */

#ifndef RENDER_H_
#define RENDER_H_

#define COORDS(x, y, width) ((y)*(width)+(x))

#include "defs.h"
#include "render_cpu.h"
#include "render_opencl.h"

typedef struct config {
	CpuConfig config_cpu;
	OpenCLConfig config_opencl;
	u8 mode;
	u8 video;
	u8 filetype;
	u16 width;
	u16 height;
	u8 videoFPS;
	u32 bitrate;
	const char *path;
	// TODO: key mapping als option in die struct
} Config;

Config *_config;
u32 s_arr;

void init_render(Config *config);
void show_render();

#endif /* RENDER_H_ */