-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathvo_pi.h
More file actions
28 lines (20 loc) · 685 Bytes
/
vo_pi.h
File metadata and controls
28 lines (20 loc) · 685 Bytes
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
#ifndef _VO_PI_H
#define _VO_PI_H
#include <bcm_host.h>
#define VO_ALIGN_UP(x,y) ((x + (y)-1) & ~((y)-1))
typedef struct
{
DISPMANX_DISPLAY_HANDLE_T display;
DISPMANX_MODEINFO_T info;
void *image;
DISPMANX_UPDATE_HANDLE_T update;
DISPMANX_RESOURCE_HANDLE_T resource;
DISPMANX_ELEMENT_HANDLE_T element;
uint32_t vc_image_ptr;
} RECT_VARS_T;
void vo_open(RECT_VARS_T* vars, int screen);
void vo_display_frame (RECT_VARS_T* vars, int width, int height,
int chroma_width, int chroma_height,
uint8_t * const * buf, int num);
void vo_close(RECT_VARS_T* vars);
#endif