Go to the documentation of this file.
20 #ifndef GNASH_MEDIAPARSER_GST_H
21 #define GNASH_MEDIAPARSER_GST_H
27 #include <boost/optional.hpp>
28 #include <boost/utility.hpp>
98 std::uint64_t _start_time;
117 bool seek(std::uint32_t&);
125 virtual boost::optional<Id3Info>
getId3Info()
const;
131 void link_to_fakesink(GstPad* pad);
133 static void cb_typefound (GstElement *typefind, guint probability,
134 GstCaps *caps, gpointer
data);
136 static void cb_pad_added(GstElement* element,
137 GstPad* new_pad, gpointer user_data);
138 static void cb_no_more_pads (GstElement* element, gpointer
data);
140 static GstFlowReturn cb_chain_func_audio (GstPad *pad, GstBuffer *buffer);
141 static GstFlowReturn cb_chain_func_video (GstPad *pad, GstBuffer *buffer);
143 bool pushGstBuffer();
144 bool emitEncodedFrames();
152 bool _demux_probe_ended;
154 std::deque<EncodedAudioFrame*> _enc_audio_frames;
155 std::deque<EncodedVideoFrame*> _enc_video_frames;
163 #endif // __MEDIAPARSER_GST_H__
GstPad * swfdec_gst_connect_sinkpad_by_pad(GstPad *srcpad, GstCaps *caps)
Definition: swfdec_codec_gst.c:199
Top-level gnash exception.
Definition: GnashException.h:31
void log_debug(StringType msg, Args... args)
Definition: log.h:301
#define LOG_ONCE(x)
Definition: log.h:49
#define _(String)
Definition: log.h:44
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
void log_error(StringType msg, Args... args)
Definition: log.h:283
GstElementFactory * swfdec_gst_get_parser_factory(GstCaps *caps)
Definition: swfdec_codec_gst.c:163
DSOEXPORT std::uint64_t getTicks()
Wall clock timer, returns current POSIX time in milliseconds.
Definition: ClockTime.cpp:61
GstPad * swfdec_gst_connect_srcpad(GstElement *element, GstCaps *caps)
Definition: swfdec_codec_gst.c:172
GstElementFactory * swfdec_gst_get_demuxer_factory(GstCaps *caps)
Definition: swfdec_codec_gst.c:157
bool equal(string_table &st, string_table::key a, string_table::key b, bool caseless)
Check whether two keys are equivalent.
Definition: string_table.cpp:174
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
#define GST_TIME_AS_MSECONDS(time)
Definition: GstUtil.h:29
SimpleBuffer data
Definition: LocalConnection_as.cpp:151