-
Notifications
You must be signed in to change notification settings - Fork 0
/
vpe-common.h
57 lines (49 loc) · 1.34 KB
/
vpe-common.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef VPE_COMMON_H_
#define VPE_COMMON_H_
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdint.h>
#include <string.h>
#include "display-kms.h"
#include "util.h"
#define NUMBUF 6
struct image_params {
int width;
int height;
int fourcc;
int size;
int size_uv;
int coplanar;
enum v4l2_colorspace colorspace;
int numbuf;
};
struct vpe {
int fd;
int field;
int deint;
int translen;
struct image_params src;
struct image_params dst;
struct v4l2_crop crop;
int input_buf_dmafd[NUMBUF];
int input_buf_dmafd_uv[NUMBUF];
int output_buf_dmafd[NUMBUF];
int output_buf_dmafd_uv[NUMBUF];
struct display *disp;
struct buffer **disp_bufs;
};
struct vpe *vpe_open(void);
int vpe_close(struct vpe *vpe);
int describeFormat (char *format, struct image_params *image);
int vpe_input_init(struct vpe *vpe);
int vpe_output_init(struct vpe *vpe);
int vpe_input_qbuf(struct vpe *vpe, int index);
int vpe_output_qbuf(struct vpe *vpe, int index);
int vpe_stream_on(int fd, int type);
int vpe_stream_off(int fd, int type);
int vpe_input_dqbuf(struct vpe *vpe);
int vpe_output_dqbuf(struct vpe *vpe);
void vpe_output_fullscreen(struct vpe* vpe, bool bfull);
#endif // VPE_COMMON_H_