20 #ifndef GNASH_MEDIAPARSER_GST_H 21 #define GNASH_MEDIAPARSER_GST_H 27 #include <boost/optional.hpp> 28 #include <boost/utility.hpp> 68 gst_buffer_ref(buffer);
72 gst_buffer_unref(buffer);
98 std::uint64_t _start_time;
117 bool seek(std::uint32_t&);
120 bool parseNextChunk();
123 virtual std::uint64_t getBytesLoaded()
const;
125 virtual boost::optional<Id3Info> getId3Info()
const;
131 void link_to_fakesink(GstPad* pad);
133 static void cb_typefound (GstElement *typefind, guint probability,
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__
DSOEXPORT std::uint64_t getTicks()
Wall clock timer, returns current POSIX time in milliseconds.
Definition: ClockTime.cpp:61
SimpleBuffer data
Definition: LocalConnection_as.cpp:151
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40