-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvp.h
More file actions
32 lines (23 loc) · 868 Bytes
/
Copy pathvp.h
File metadata and controls
32 lines (23 loc) · 868 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
29
30
31
32
#ifndef vp_H_
#define vp_H_
#include <gst/gst.h>
#include <gst/interfaces/xoverlay.h>
#include <gtk/gtk.h>
#include <string.h>
typedef struct _vpData {
GstElement *pipeline;
GstElement *fileSrc, *demuxer, *decoder, *videoSink;
gulong recordWindowXID;
gdouble playbackSpeed;
GtkWidget *playImage;
GtkWidget *pauseImage;
GtkWidget *fileButton, *playPauseButton, *rewindButton, *forwardButton;
} vpData;
int init_vp(int argc, char *argv[], vpData *data);
void cleanup_vp(vpData *data);
int vp_get_file_type(char *argv[], char *formats[]);
static void vp_demuxer_pad_added_handler(GstElement *src, GstPad *new_pad, vpData *data);
static GstBusSyncReply vp_create_window(GstBus *bus, GstMessage *message, vpData *data);
static void vp_error(GstBus *bus, GstMessage *msg, vpData *data);
static void vp_eos(GstBus *bus, GstMessage *msg, vpData *data);
#endif