2002-05-01 18:41:59 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2002-05-01 18:41:59 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GST_QTDEMUX_H__
|
|
|
|
#define __GST_QTDEMUX_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
gst/qtdemux/: QtDemux can now work push-based.
Original commit message from CVS:
* gst/qtdemux/Makefile.am:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_init),
(gst_qtdemux_handle_sink_event), (gst_qtdemux_change_state),
(extract_initial_length_and_fourcc),
(gst_qtdemux_loop_state_header), (gst_qtdemux_loop_state_movie),
(gst_qtdemux_loop_header), (next_entry_size), (gst_qtdemux_chain),
(qtdemux_sink_activate), (qtdemux_sink_activate_pull),
(qtdemux_sink_activate_push), (qtdemux_parse_trak):
* gst/qtdemux/qtdemux.h:
QtDemux can now work push-based.
It still needs some love for seeking.
2006-02-13 22:04:42 +00:00
|
|
|
#include <gst/base/gstadapter.h>
|
2014-05-23 20:53:00 +00:00
|
|
|
#include <gst/base/gstflowcombiner.h>
|
2015-02-11 14:30:44 +00:00
|
|
|
#include "gstisoff.h"
|
2002-05-01 18:41:59 +00:00
|
|
|
|
gst/qtdemux/qtdemux.*: Some QT demux loving.
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_handle_src_query),
(gst_qtdemux_handle_src_event), (gst_qtdemux_loop_header),
(qtdemux_inflate), (qtdemux_parse), (qtdemux_parse_trak),
(qtdemux_parse_udta), (qtdemux_tag_add_str), (qtdemux_tag_add_num),
(qtdemux_tag_add_gnre), (gst_qtdemux_handle_esds),
(qtdemux_video_caps), (qtdemux_audio_caps):
* gst/qtdemux/qtdemux.h:
Some QT demux loving.
Handle seeking in a less broken way.
Fix AMR caps to match the AMR decoder.
Set first timestamp on AMR samples to 0 for now.
Remove some \n in DEBUG strings.
Use _scale_int for maximum precision.
2006-02-06 15:41:25 +00:00
|
|
|
G_BEGIN_DECLS
|
2002-05-01 18:41:59 +00:00
|
|
|
|
2007-03-07 11:37:23 +00:00
|
|
|
GST_DEBUG_CATEGORY_EXTERN (qtdemux_debug);
|
|
|
|
#define GST_CAT_DEFAULT qtdemux_debug
|
|
|
|
|
2002-05-01 18:41:59 +00:00
|
|
|
#define GST_TYPE_QTDEMUX \
|
|
|
|
(gst_qtdemux_get_type())
|
|
|
|
#define GST_QTDEMUX(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_QTDEMUX,GstQTDemux))
|
|
|
|
#define GST_QTDEMUX_CLASS(klass) \
|
2006-06-01 22:00:26 +00:00
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_QTDEMUX,GstQTDemuxClass))
|
2002-05-01 18:41:59 +00:00
|
|
|
#define GST_IS_QTDEMUX(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_QTDEMUX))
|
2006-06-01 22:00:26 +00:00
|
|
|
#define GST_IS_QTDEMUX_CLASS(klass) \
|
2002-05-01 18:41:59 +00:00
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_QTDEMUX))
|
|
|
|
|
gst/qtdemux/: Cleanup and refactor to make the code more readable.
Original commit message from CVS:
* gst/qtdemux/Makefile.am:
* gst/qtdemux/qtdemux.c: (extract_initial_length_and_fourcc),
(gst_qtdemux_loop_state_header), (gst_qtdemux_combine_flows),
(gst_qtdemux_loop_state_movie), (gst_qtdemux_loop),
(gst_qtdemux_chain), (qtdemux_sink_activate_pull),
(qtdemux_inflate), (qtdemux_parse_moov), (qtdemux_parse_container),
(qtdemux_parse_node), (qtdemux_tree_get_child_by_type),
(qtdemux_tree_get_sibling_by_type), (gst_qtdemux_add_stream),
(qtdemux_parse_samples), (qtdemux_parse_segments),
(qtdemux_parse_trak), (qtdemux_tag_add_str), (qtdemux_tag_add_num),
(qtdemux_tag_add_date), (qtdemux_tag_add_gnre),
(qtdemux_parse_udta), (qtdemux_redirects_sort_func),
(qtdemux_process_redirects), (qtdemux_parse_redirects),
(qtdemux_parse_tree), (gst_qtdemux_handle_esds),
(qtdemux_video_caps), (qtdemux_audio_caps):
* gst/qtdemux/qtdemux.h:
* gst/qtdemux/qtdemux_dump.c: (qtdemux_dump_mvhd),
(qtdemux_dump_tkhd), (qtdemux_dump_elst), (qtdemux_dump_mdhd),
(qtdemux_dump_hdlr), (qtdemux_dump_vmhd), (qtdemux_dump_dref),
(qtdemux_dump_stsd), (qtdemux_dump_stts), (qtdemux_dump_stss),
(qtdemux_dump_stsc), (qtdemux_dump_stsz), (qtdemux_dump_stco),
(qtdemux_dump_co64), (qtdemux_dump_dcom), (qtdemux_dump_cmvd),
(qtdemux_dump_unknown), (qtdemux_node_dump_foreach),
(qtdemux_node_dump):
* gst/qtdemux/qtdemux_dump.h:
* gst/qtdemux/qtdemux_fourcc.h:
* gst/qtdemux/qtdemux_types.c: (qtdemux_type_get):
* gst/qtdemux/qtdemux_types.h:
* gst/qtdemux/qtpalette.h:
Cleanup and refactor to make the code more readable.
Move debugging/tables into separate files.
Add 2/4/16 color palletee support.
Fix raw 15 bit RGB handling.
Use more FOURCC constants.
Add some docs.
2007-01-12 10:22:16 +00:00
|
|
|
#define GST_QTDEMUX_CAST(obj) ((GstQTDemux *)(obj))
|
gst/qtdemux/qtdemux.*: Avoid void pointer usage, better use guint8 * instead.
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (qtdemux_parse_moov), (qtdemux_parse),
(qtdemux_node_dump_foreach), (qtdemux_dump_mvhd),
(qtdemux_dump_tkhd), (qtdemux_dump_elst), (qtdemux_dump_mdhd),
(qtdemux_dump_hdlr), (qtdemux_dump_vmhd), (qtdemux_dump_dref),
(qtdemux_dump_stsd), (qtdemux_dump_stts), (qtdemux_dump_stss),
(qtdemux_dump_stsc), (qtdemux_dump_stsz), (qtdemux_dump_stco),
(qtdemux_dump_co64), (qtdemux_dump_dcom), (qtdemux_dump_cmvd),
(qtdemux_dump_unknown), (qtdemux_tree_get_child_by_type),
(qtdemux_tree_get_sibling_by_type):
* gst/qtdemux/qtdemux.h:
Avoid void pointer usage, better use guint8 * instead.
2006-10-17 10:59:55 +00:00
|
|
|
|
2009-01-05 11:42:09 +00:00
|
|
|
/* qtdemux produces these for atoms it cannot parse */
|
|
|
|
#define GST_QT_DEMUX_PRIVATE_TAG "private-qt-tag"
|
2009-04-15 17:10:04 +00:00
|
|
|
#define GST_QT_DEMUX_CLASSIFICATION_TAG "classification"
|
2009-01-05 11:42:09 +00:00
|
|
|
|
2012-10-12 21:38:33 +00:00
|
|
|
#define GST_QTDEMUX_MAX_STREAMS 32
|
2002-05-01 18:41:59 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef struct _GstQTDemux GstQTDemux;
|
|
|
|
typedef struct _GstQTDemuxClass GstQTDemuxClass;
|
|
|
|
typedef struct _QtDemuxStream QtDemuxStream;
|
2002-05-01 18:41:59 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstQTDemux {
|
|
|
|
GstElement element;
|
2002-05-01 18:41:59 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
/* pads */
|
|
|
|
GstPad *sinkpad;
|
2003-06-10 06:23:42 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
QtDemuxStream *streams[GST_QTDEMUX_MAX_STREAMS];
|
gst/qtdemux/: Cleanup and refactor to make the code more readable.
Original commit message from CVS:
* gst/qtdemux/Makefile.am:
* gst/qtdemux/qtdemux.c: (extract_initial_length_and_fourcc),
(gst_qtdemux_loop_state_header), (gst_qtdemux_combine_flows),
(gst_qtdemux_loop_state_movie), (gst_qtdemux_loop),
(gst_qtdemux_chain), (qtdemux_sink_activate_pull),
(qtdemux_inflate), (qtdemux_parse_moov), (qtdemux_parse_container),
(qtdemux_parse_node), (qtdemux_tree_get_child_by_type),
(qtdemux_tree_get_sibling_by_type), (gst_qtdemux_add_stream),
(qtdemux_parse_samples), (qtdemux_parse_segments),
(qtdemux_parse_trak), (qtdemux_tag_add_str), (qtdemux_tag_add_num),
(qtdemux_tag_add_date), (qtdemux_tag_add_gnre),
(qtdemux_parse_udta), (qtdemux_redirects_sort_func),
(qtdemux_process_redirects), (qtdemux_parse_redirects),
(qtdemux_parse_tree), (gst_qtdemux_handle_esds),
(qtdemux_video_caps), (qtdemux_audio_caps):
* gst/qtdemux/qtdemux.h:
* gst/qtdemux/qtdemux_dump.c: (qtdemux_dump_mvhd),
(qtdemux_dump_tkhd), (qtdemux_dump_elst), (qtdemux_dump_mdhd),
(qtdemux_dump_hdlr), (qtdemux_dump_vmhd), (qtdemux_dump_dref),
(qtdemux_dump_stsd), (qtdemux_dump_stts), (qtdemux_dump_stss),
(qtdemux_dump_stsc), (qtdemux_dump_stsz), (qtdemux_dump_stco),
(qtdemux_dump_co64), (qtdemux_dump_dcom), (qtdemux_dump_cmvd),
(qtdemux_dump_unknown), (qtdemux_node_dump_foreach),
(qtdemux_node_dump):
* gst/qtdemux/qtdemux_dump.h:
* gst/qtdemux/qtdemux_fourcc.h:
* gst/qtdemux/qtdemux_types.c: (qtdemux_type_get):
* gst/qtdemux/qtdemux_types.h:
* gst/qtdemux/qtpalette.h:
Cleanup and refactor to make the code more readable.
Move debugging/tables into separate files.
Add 2/4/16 color palletee support.
Fix raw 15 bit RGB handling.
Use more FOURCC constants.
Add some docs.
2007-01-12 10:22:16 +00:00
|
|
|
gint n_streams;
|
|
|
|
gint n_video_streams;
|
|
|
|
gint n_audio_streams;
|
2009-10-07 12:03:17 +00:00
|
|
|
gint n_sub_streams;
|
2002-05-01 18:41:59 +00:00
|
|
|
|
2014-05-23 20:53:00 +00:00
|
|
|
GstFlowCombiner *flowcombiner;
|
|
|
|
|
2013-07-22 13:22:47 +00:00
|
|
|
gboolean have_group_id;
|
|
|
|
guint group_id;
|
|
|
|
|
2008-09-03 12:39:35 +00:00
|
|
|
guint major_brand;
|
2009-08-13 14:11:59 +00:00
|
|
|
GstBuffer *comp_brands;
|
2004-03-15 16:32:54 +00:00
|
|
|
GNode *moov_node;
|
|
|
|
GNode *moov_node_compressed;
|
2003-06-10 06:23:42 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
guint32 timescale;
|
2014-12-10 13:56:06 +00:00
|
|
|
GstClockTime duration;
|
2003-06-10 06:23:42 +00:00
|
|
|
|
2010-03-11 08:56:04 +00:00
|
|
|
gboolean fragmented;
|
2014-08-24 12:38:08 +00:00
|
|
|
gboolean fragmented_seek_pending;
|
2010-11-04 09:17:37 +00:00
|
|
|
guint64 moof_offset;
|
2010-03-11 08:56:04 +00:00
|
|
|
|
gst/qtdemux/qtdemux.*: Handle stss boxes so we can mark and find keyframes.
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_init),
(gst_qtdemux_push_event), (gst_qtdemux_go_back),
(gst_qtdemux_perform_seek), (gst_qtdemux_do_seek),
(gst_qtdemux_handle_src_event), (plugin_init),
(gst_qtdemux_change_state), (gst_qtdemux_loop_state_movie),
(gst_qtdemux_loop), (gst_qtdemux_chain),
(qtdemux_sink_activate_pull), (gst_qtdemux_add_stream),
(qtdemux_parse), (qtdemux_parse_tree), (qtdemux_parse_trak),
(qtdemux_parse_udta), (qtdemux_tag_add_str), (qtdemux_tag_add_num),
(qtdemux_tag_add_gnre), (gst_qtdemux_handle_esds):
* gst/qtdemux/qtdemux.h:
Handle stss boxes so we can mark and find keyframes.
Implement correct accurate and keyframe seeking.
Use _DEBUG_OBJECT when possible.
2006-04-04 08:31:10 +00:00
|
|
|
gint state;
|
2003-06-10 06:23:42 +00:00
|
|
|
|
gst/qtdemux/: QtDemux can now work push-based.
Original commit message from CVS:
* gst/qtdemux/Makefile.am:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_init),
(gst_qtdemux_handle_sink_event), (gst_qtdemux_change_state),
(extract_initial_length_and_fourcc),
(gst_qtdemux_loop_state_header), (gst_qtdemux_loop_state_movie),
(gst_qtdemux_loop_header), (next_entry_size), (gst_qtdemux_chain),
(qtdemux_sink_activate), (qtdemux_sink_activate_pull),
(qtdemux_sink_activate_push), (qtdemux_parse_trak):
* gst/qtdemux/qtdemux.h:
QtDemux can now work push-based.
It still needs some love for seeking.
2006-02-13 22:04:42 +00:00
|
|
|
gboolean pullbased;
|
2010-01-14 19:13:08 +00:00
|
|
|
gboolean posted_redirect;
|
gst/qtdemux/: QtDemux can now work push-based.
Original commit message from CVS:
* gst/qtdemux/Makefile.am:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_init),
(gst_qtdemux_handle_sink_event), (gst_qtdemux_change_state),
(extract_initial_length_and_fourcc),
(gst_qtdemux_loop_state_header), (gst_qtdemux_loop_state_movie),
(gst_qtdemux_loop_header), (next_entry_size), (gst_qtdemux_chain),
(qtdemux_sink_activate), (qtdemux_sink_activate_pull),
(qtdemux_sink_activate_push), (qtdemux_parse_trak):
* gst/qtdemux/qtdemux.h:
QtDemux can now work push-based.
It still needs some love for seeking.
2006-02-13 22:04:42 +00:00
|
|
|
|
|
|
|
/* push based variables */
|
|
|
|
guint neededbytes;
|
|
|
|
guint todrop;
|
|
|
|
GstAdapter *adapter;
|
2006-02-14 18:50:13 +00:00
|
|
|
GstBuffer *mdatbuffer;
|
2010-11-04 13:07:56 +00:00
|
|
|
guint64 mdatleft;
|
2013-10-25 14:42:37 +00:00
|
|
|
/* When restoring the mdat to the adatpter, this buffer
|
|
|
|
* stores any trailing data that was after the last atom parsed as it
|
|
|
|
* has to be restored later along with the correct offset. Used in
|
|
|
|
* fragmented scenario where mdat/moof are one after the other
|
|
|
|
* in any order.
|
|
|
|
*
|
|
|
|
* Check https://bugzilla.gnome.org/show_bug.cgi?id=710623 */
|
|
|
|
GstBuffer *restoredata_buffer;
|
|
|
|
guint64 restoredata_offset;
|
gst/qtdemux/: QtDemux can now work push-based.
Original commit message from CVS:
* gst/qtdemux/Makefile.am:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_init),
(gst_qtdemux_handle_sink_event), (gst_qtdemux_change_state),
(extract_initial_length_and_fourcc),
(gst_qtdemux_loop_state_header), (gst_qtdemux_loop_state_movie),
(gst_qtdemux_loop_header), (next_entry_size), (gst_qtdemux_chain),
(qtdemux_sink_activate), (qtdemux_sink_activate_pull),
(qtdemux_sink_activate_push), (qtdemux_parse_trak):
* gst/qtdemux/qtdemux.h:
QtDemux can now work push-based.
It still needs some love for seeking.
2006-02-13 22:04:42 +00:00
|
|
|
|
ext/faad/gstfaad.c: Sign/unsign mismatch.
Original commit message from CVS:
* ext/faad/gstfaad.c: (gst_faad_event):
Sign/unsign mismatch.
* configure.ac:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_class_init),
(gst_qtdemux_init), (gst_qtdemux_get_src_query_types),
(gst_qtdemux_handle_src_query), (gst_qtdemux_handle_src_event),
(plugin_init), (gst_qtdemux_handle_sink_event),
(gst_qtdemux_change_state), (gst_qtdemux_loop_header),
(qtdemux_sink_activate), (qtdemux_sink_activate_pull),
(gst_qtdemux_add_stream), (qtdemux_parse), (qtdemux_parse_tree),
(qtdemux_parse_trak), (qtdemux_video_caps), (qtdemux_audio_caps):
* gst/qtdemux/qtdemux.h:
Half-assed port (hey, it works).
2005-08-09 14:43:48 +00:00
|
|
|
guint64 offset;
|
2006-02-14 18:50:13 +00:00
|
|
|
/* offset of the mdat atom */
|
|
|
|
guint64 mdatoffset;
|
2009-11-24 15:27:26 +00:00
|
|
|
guint64 first_mdat;
|
2010-02-05 17:05:39 +00:00
|
|
|
gboolean got_moov;
|
2013-11-15 11:54:07 +00:00
|
|
|
guint64 last_moov_offset;
|
2010-05-24 19:34:43 +00:00
|
|
|
guint header_size;
|
2003-06-16 17:39:26 +00:00
|
|
|
|
gst/qtdemux/qtdemux.c: More qtdemux hackage -- parse a lot more atoms, extract a few tags. One might even mistake th...
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_loop_header),
(gst_qtdemux_add_stream), (qtdemux_parse), (qtdemux_type_get),
(qtdemux_dump_stsz), (qtdemux_dump_stco), (qtdemux_dump_co64),
(qtdemux_dump_unknown), (qtdemux_parse_tree), (qtdemux_parse_udta),
(qtdemux_tag_add), (get_size), (gst_qtdemux_handle_esds): More qtdemux
hackage -- parse a lot more atoms, extract a few tags. One might even
mistake this for tag support. Maybe it is.
* gst/qtdemux/qtdemux.h:
2004-05-01 01:46:16 +00:00
|
|
|
GstTagList *tag_list;
|
|
|
|
|
gst/qtdemux/qtdemux.*: Handle stss boxes so we can mark and find keyframes.
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_init),
(gst_qtdemux_push_event), (gst_qtdemux_go_back),
(gst_qtdemux_perform_seek), (gst_qtdemux_do_seek),
(gst_qtdemux_handle_src_event), (plugin_init),
(gst_qtdemux_change_state), (gst_qtdemux_loop_state_movie),
(gst_qtdemux_loop), (gst_qtdemux_chain),
(qtdemux_sink_activate_pull), (gst_qtdemux_add_stream),
(qtdemux_parse), (qtdemux_parse_tree), (qtdemux_parse_trak),
(qtdemux_parse_udta), (qtdemux_tag_add_str), (qtdemux_tag_add_num),
(qtdemux_tag_add_gnre), (gst_qtdemux_handle_esds):
* gst/qtdemux/qtdemux.h:
Handle stss boxes so we can mark and find keyframes.
Implement correct accurate and keyframe seeking.
Use _DEBUG_OBJECT when possible.
2006-04-04 08:31:10 +00:00
|
|
|
/* configured playback region */
|
gst/qtdemux/qtdemux.*: Some QT demux loving.
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_handle_src_query),
(gst_qtdemux_handle_src_event), (gst_qtdemux_loop_header),
(qtdemux_inflate), (qtdemux_parse), (qtdemux_parse_trak),
(qtdemux_parse_udta), (qtdemux_tag_add_str), (qtdemux_tag_add_num),
(qtdemux_tag_add_gnre), (gst_qtdemux_handle_esds),
(qtdemux_video_caps), (qtdemux_audio_caps):
* gst/qtdemux/qtdemux.h:
Some QT demux loving.
Handle seeking in a less broken way.
Fix AMR caps to match the AMR decoder.
Set first timestamp on AMR samples to 0 for now.
Remove some \n in DEBUG strings.
Use _scale_int for maximum precision.
2006-02-06 15:41:25 +00:00
|
|
|
GstSegment segment;
|
2008-11-12 11:55:14 +00:00
|
|
|
GstEvent *pending_newsegment;
|
2015-07-08 02:56:12 +00:00
|
|
|
gboolean upstream_format_is_time; /* qtdemux received upstream
|
|
|
|
* newsegment in TIME format which likely
|
|
|
|
* means that upstream is driving the pipeline
|
|
|
|
* (adaptive demuxers / dlna) */
|
2013-09-04 18:34:35 +00:00
|
|
|
gint64 seek_offset;
|
|
|
|
gint64 push_seek_start;
|
|
|
|
gint64 push_seek_stop;
|
2009-10-14 09:54:44 +00:00
|
|
|
|
2011-12-30 17:23:43 +00:00
|
|
|
#if 0
|
2009-10-14 09:54:44 +00:00
|
|
|
/* gst index support */
|
|
|
|
GstIndex *element_index;
|
|
|
|
gint index_id;
|
2011-12-30 17:23:43 +00:00
|
|
|
#endif
|
2010-02-04 13:46:56 +00:00
|
|
|
|
2011-08-30 11:33:49 +00:00
|
|
|
gboolean upstream_seekable;
|
2012-09-27 21:17:49 +00:00
|
|
|
gint64 upstream_size;
|
2013-04-16 13:41:43 +00:00
|
|
|
|
|
|
|
/* MSS streams have a single media that is unspecified at the atoms, so
|
|
|
|
* upstream provides it at the caps */
|
|
|
|
GstCaps *media_caps;
|
|
|
|
gboolean exposed;
|
2013-12-27 05:14:02 +00:00
|
|
|
gboolean mss_mode; /* flag to indicate that we're working with a smoothstreaming fragment
|
|
|
|
* Mss doesn't have 'moov' or any information about the streams format,
|
|
|
|
* requiring qtdemux to expose and create the streams */
|
2013-04-12 12:08:16 +00:00
|
|
|
guint64 fragment_start;
|
2013-12-03 18:08:25 +00:00
|
|
|
guint64 fragment_start_offset;
|
2013-07-11 14:13:05 +00:00
|
|
|
|
|
|
|
gint64 chapters_track_id;
|
2015-07-29 13:14:50 +00:00
|
|
|
|
|
|
|
/* protection support */
|
|
|
|
GPtrArray *protection_system_ids; /* Holds identifiers of all content protection systems for all tracks */
|
|
|
|
GQueue protection_event_queue; /* holds copy of upstream protection events */
|
2004-03-15 16:32:54 +00:00
|
|
|
};
|
2002-05-01 18:41:59 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
struct _GstQTDemuxClass {
|
|
|
|
GstElementClass parent_class;
|
|
|
|
};
|
2002-05-01 18:41:59 +00:00
|
|
|
|
gst/qtdemux/: Add X-QT depayloader that will eventually share code with the demuxer.
Original commit message from CVS:
* gst/qtdemux/Makefile.am:
* gst/qtdemux/gstrtpxqtdepay.c: (gst_rtp_xqt_depay_base_init),
(gst_rtp_xqt_depay_class_init), (gst_rtp_xqt_depay_init),
(gst_rtp_xqt_depay_finalize), (gst_rtp_quicktime_parse_sd),
(gst_rtp_xqt_depay_setcaps), (gst_rtp_xqt_depay_process),
(gst_rtp_xqt_depay_set_property), (gst_rtp_xqt_depay_get_property),
(gst_rtp_xqt_depay_change_state), (gst_rtp_xqt_depay_plugin_init):
* gst/qtdemux/gstrtpxqtdepay.h:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_base_init),
(gst_qtdemux_loop_state_header), (gst_qtdemux_loop),
(qtdemux_parse_moov), (qtdemux_parse_container),
(qtdemux_parse_node), (gst_qtdemux_add_stream),
(qtdemux_parse_trak), (qtdemux_audio_caps):
* gst/qtdemux/qtdemux.h:
* gst/qtdemux/quicktime.c: (plugin_init):
Add X-QT depayloader that will eventually share code with the demuxer.
Make new plugin entry point with quicktime releated stuff.
2007-01-12 17:16:51 +00:00
|
|
|
GType gst_qtdemux_get_type (void);
|
|
|
|
|
gst/qtdemux/qtdemux.*: Some QT demux loving.
Original commit message from CVS:
* gst/qtdemux/qtdemux.c: (gst_qtdemux_handle_src_query),
(gst_qtdemux_handle_src_event), (gst_qtdemux_loop_header),
(qtdemux_inflate), (qtdemux_parse), (qtdemux_parse_trak),
(qtdemux_parse_udta), (qtdemux_tag_add_str), (qtdemux_tag_add_num),
(qtdemux_tag_add_gnre), (gst_qtdemux_handle_esds),
(qtdemux_video_caps), (qtdemux_audio_caps):
* gst/qtdemux/qtdemux.h:
Some QT demux loving.
Handle seeking in a less broken way.
Fix AMR caps to match the AMR decoder.
Set first timestamp on AMR samples to 0 for now.
Remove some \n in DEBUG strings.
Use _scale_int for maximum precision.
2006-02-06 15:41:25 +00:00
|
|
|
G_END_DECLS
|
2002-05-01 18:41:59 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
#endif /* __GST_QTDEMUX_H__ */
|