forked from centricular/gstcefsrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gstcefsrc.h
60 lines (48 loc) · 1.4 KB
/
gstcefsrc.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
58
59
60
#ifndef __GST_CEF_SRC_H__
#define __GST_CEF_SRC_H__
#include <gst/gst.h>
#include <gst/base/gstpushsrc.h>
#include <gst/video/video.h>
#include <include/cef_app.h>
#include <include/cef_client.h>
#include <include/cef_render_handler.h>
#include <include/cef_life_span_handler.h>
#include <include/cef_load_handler.h>
#include <include/wrapper/cef_helpers.h>
G_BEGIN_DECLS
#define GST_TYPE_CEF_SRC \
(gst_cef_src_get_type())
#define GST_CEF_SRC(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_CEF_SRC,GstCefSrc))
#define GST_CEF_SRC_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_CEF_SRC,GstCefSrcClass))
#define GST_IS_CEF_SRC(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CEF_SRC))
#define GST_IS_CEF_SRC_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CEF_SRC))
typedef struct _GstCefSrc GstCefSrc;
typedef struct _GstCefSrcClass GstCefSrcClass;
struct _GstCefSrc {
GstPushSrc parent;
GstBuffer *current_buffer;
GstBufferList *audio_buffers;
GList *audio_events;
GstVideoInfo vinfo;
guint64 n_frames;
gulong cef_work_id;
gchar *url;
gchar *chrome_extra_flags;
gboolean gpu;
gint chromium_debug_port;
CefRefPtr<CefBrowser> browser;
CefRefPtr<CefApp> app;
GCond state_cond;
GMutex state_lock;
gboolean started;
};
struct _GstCefSrcClass {
GstPushSrcClass parent_class;
};
GType gst_cef_src_get_type (void);
G_END_DECLS
#endif /* __GST_CEF_SRC_H__ */