summaryrefslogtreecommitdiff
path: root/modules/gst_video1/gst_video.h
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-08-01 18:54:04 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-08-01 18:54:04 +0200
commit5afea9730d64aacf3adcb822b34bbc810ed4dedb (patch)
tree36eeea381ea1d34eb8ba28c1f0531b96fdf5893d /modules/gst_video1/gst_video.h
parent9bebd147cc384b777e45e6236fa9aa680633e6eb (diff)
add modules using gstreamer-1.0
- gst1.so -- module for audio-streaming using gstreamer 1.0 - gst_video1.so -- module for video encoding using gstreamer 1.0 It is now possible to combine but 0.10 and 1.0 modules, but please be careful when loading a mix of modules with different version of gstreamer! you can also try to compile all of the statically into the same binary: $ make STATIC=1 we might rename the old gst.so to gst0.so at some point ...? fixes issue #38 https://github.com/alfredh/baresip/issues/38
Diffstat (limited to 'modules/gst_video1/gst_video.h')
-rw-r--r--modules/gst_video1/gst_video.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/gst_video1/gst_video.h b/modules/gst_video1/gst_video.h
new file mode 100644
index 0000000..83aa1ee
--- /dev/null
+++ b/modules/gst_video1/gst_video.h
@@ -0,0 +1,32 @@
+/**
+ * @file gst_video.h Gstreamer video pipeline -- internal API
+ *
+ * Copyright (C) 2010 - 2014 Creytiv.com
+ * Copyright (C) 2014 Fadeev Alexander
+ */
+
+
+/* Encode */
+struct videnc_state;
+
+int gst_video1_encoder_set(struct videnc_state **stp,
+ const struct vidcodec *vc,
+ struct videnc_param *prm, const char *fmtp,
+ videnc_packet_h *pkth, void *arg);
+int gst_video1_encode(struct videnc_state *st, bool update,
+ const struct vidframe *frame);
+
+
+/* SDP */
+uint32_t gst_video1_h264_packetization_mode(const char *fmtp);
+int gst_video1_fmtp_enc(struct mbuf *mb, const struct sdp_format *fmt,
+ bool offer, void *arg);
+bool gst_video1_fmtp_cmp(const char *fmtp1, const char *fmtp2, void *data);
+
+
+/* H.264 */
+extern const uint8_t gst_video_h264_level_idc;
+
+int gst_video_h264_packetize(const uint8_t *buf, size_t len,
+ size_t pktsize,
+ videnc_packet_h *pkth, void *arg);