-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvr.h
More file actions
35 lines (26 loc) · 1.02 KB
/
Copy pathvr.h
File metadata and controls
35 lines (26 loc) · 1.02 KB
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
#ifndef vr_H_
#define vr_H_
#include <gst/gst.h>
#include <gst/interfaces/xoverlay.h>
#include <gtk/gtk.h>
#include <string.h>
#include <stdbool.h>
typedef struct _vrData {
GstElement *pipeline;
GstElement *recordSrc, *recordFilter, *recordSink;
GstElement *recordEncoder, *recordMuxer, *fileSink;
GstElement *tee, *playQueue, *saveQueue;
GstPadTemplate *teeSrcPadTemplate;
GstPad *teeSavePad, *teePlayPad, *teeMonitorPad;
GstPad *saveQueuePad, *playQueuePad;
gulong recordWindowXID;
GtkWidget *recordButton, *leftButton, *rightButton, *upButton, *downButton, *resetPanButton, *resetTiltButton;
} vrData;
int init_vr(int argc, char *argv[], vrData *data);
void cleanup_vr(vrData *data);
void vr_get_file_name(gchar *format, gchar *filename);
void vr_print_and_free(char *argv[], char *filename);
static GstBusSyncReply vr_create_window(GstBus * bus, GstMessage * message, vrData *data);
static void vr_error(GstBus *bus, GstMessage *msg, vrData *data);
static void vr_eos(GstBus *bus, GstMessage *msg, vrData *data);
#endif