Tim-Philipp Müller
242e077e46
baseparse: add some padding to GstBaseParseFrame
...
Esp. since it's usually allocated on the stack.
https://bugzilla.gnome.org/show_bug.cgi?id=518857
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
99014adcae
baseparse: fix typo in docs for GST_BASE_PARSE_FORMAT_FLAG_PASSTHROUGH
...
https://bugzilla.gnome.org/show_bug.cgi?id=518857
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
251dfa402c
baseparse: use GQueue instead of GList for queued frames
...
and make buffer metadata writable before setting caps on queued
buffer.
https://bugzilla.gnome.org/show_bug.cgi?id=646341
2011-04-08 15:44:57 +01:00
Zaheer Abbas Merali
783dbb9a71
baseparse: add GST_BASE_PARSE_FLOW_QUEUED to queue buffers until caps are known
...
This is useful for parser like flacparse or h264parse which may need to process
some buffers before they can construct the final caps, in which case they may
want to delay pushing the initial buffers until the full and proper caps are
known.
https://bugzilla.gnome.org/show_bug.cgi?id=646341
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
22b7dfc800
baseparse: add to docs and fix up gtk-doc markup a little
...
And add Since markers.
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
4709a26473
baseparse: replace set_seek() with _set_average_bitrate() and FLAG_SYNCABLE
...
This makes more sense conceptually, since the bitrate may be used
to estimate a seek position if there's no seek table or just for
duration reporting/estimation if we can't seek. Also, even if the
format is not syncable, we could still seek by pushing data from the
start and using the segment to make downstream clip.
https://bugzilla.gnome.org/show_bug.cgi?id=518857
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
de16d5adb3
baseparse: rename GstBaseFormat to GstBaseFormatFlags and fix up associated API
...
Also change gst_base_parse_set_format(parse,flags,switch_on) to
gst_base_parse_set_format_flags(parse,flags) which is more in line
with the rest of our API and how the function is used.
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
f691be223e
baseparse: don't expose GstAdapter in public header
...
None of the existing subclasses needs access to that, so there's
no reason to expose it for now.
https://bugzilla.gnome.org/show_bug.cgi?id=518857
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
e2bf3647f8
baseparse: move various segment-related members into the private instance struct
...
If none of the existing subclasses uses these, there's probably no
need to expose them at the moment. Keep the segment itself exposed
though.
https://bugzilla.gnome.org/show_bug.cgi?id=518857
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
b2a76895af
baseparse: remove unused GST_BASE_PARSE_{SINK,SRC}_NAME
...
https://bugzilla.gnome.org/show_bug.cgi?id=518857
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
9f1b9f1419
baseparse: re-indent header
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
c88a143cb6
baseparse: fix up GType name and make _get_type() function thread-safe
...
Rename GType from GstBaseParseBad to GstBaseParse.
2011-04-08 15:44:57 +01:00
Tim-Philipp Müller
20f29628aa
libs: add GstBaseParse which was moved from -bad
2011-04-08 15:44:57 +01:00
David Schleef
d6847fd4a1
baseparse: make_metadata_writable() fix
2011-04-08 15:44:56 +01:00
Tim-Philipp Müller
940a47ae09
baseparse: rename GType from GstAudioBaseParseBad to GstBaseParseBad
...
We use it for video as well now.
2011-04-08 15:44:56 +01:00
Stefan Kost
0774878e92
baseparse: trim trailing whitespace
2011-04-08 15:44:56 +01:00
Stefan Kost
e8f04e76b7
baseparse: use delta-unit flags instead of none
2011-04-08 15:44:56 +01:00
David Schleef
35a7228ed5
baseparse: update documentation for API changes
2011-04-08 15:44:56 +01:00
David Schleef
e57cb6b47a
baseparse: Create baseparse library
2011-04-08 15:44:56 +01:00
Mark Nauwelaerts
3882b7f2ed
baseparse: tune QUERY_SEEKING response
...
Even if we currently do not have a duration yet, assume seekable if
it looks like we'll likely be able to determine it later on
(which coincides with needed information to perform seeking).
Fixes #641047 .
2011-04-08 15:44:56 +01:00
Arun Raghavan
694d5c4b75
baseparse: Update min/max bitrate before first posting them
...
This avoids posting an initial min-bitrate of G_UINTMAX and max-bitrate
of 0.
https://bugzilla.gnome.org/show_bug.cgi?id=641857
2011-04-08 15:44:56 +01:00
Mark Nauwelaerts
ae23eb9955
baseparse: tune default duration estimate update interval
...
Rather than a fixed default frame count, estimate frame count to aim for
an interval duration depending on fps if available, otherwise use old
fixed default.
2011-04-08 15:44:56 +01:00
Mark Nauwelaerts
d6d56d2420
baseparse: reverse playback; mind keyframes for fragment boundary
2011-04-08 15:44:55 +01:00
Mark Nauwelaerts
6f933050b0
baseparse: ensure non-empty candidate frames
2011-04-08 15:44:55 +01:00
Mark Nauwelaerts
123b2b063c
baseparse: clarify some debug statements
2011-04-08 15:44:55 +01:00
Mark Nauwelaerts
dccb20cd58
baseparse: properly track upstream timestamps
...
... rather than with a delay.
2011-04-08 15:44:55 +01:00
Mark Nauwelaerts
212eae966a
baseparse: need proper frame duration to obtain sensible frame bitrate
2011-04-08 15:44:55 +01:00
Mark Nauwelaerts
ebf124251f
baseparse: proper initial values for index tracking variables
2011-04-08 15:44:55 +01:00
Mark Nauwelaerts
ef641d0515
baseparse: arrange for consistent event handling
2011-04-08 15:44:55 +01:00
Mark Nauwelaerts
ec835b45b7
baseparse: header style cleaning
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
070db250b3
baseparse: provide some more initial frame metadata in parse_frame
...
... and document accordingly.
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
c38fbf8879
baseparse: refactor passthrough into format flags
...
Also add a format flag to signal baseparse that subclass/format can provide
(parsed) timestamp rather than an estimated one. In particular, such "strong"
timestamp then allows to e.g. determine duration.
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
75bf0cfa32
baseparse: introduce a baseparse frame to serve as context
...
... and adjust subclass parsers accordingly
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
a27cc4ad83
baseparse: restrict duration scanning to pull mode and avoid extra set_caps call
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
efe6f065d6
baseparse: update some documentation
...
Also add some more debug.
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
e567d1776c
baseparse: allow increasing min_size for current frame parsing only
...
Also check that subclass actually either directs to skip bytes or
increases expected frame size to avoid going nowhere in bogus
indefinite looping.
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
cb4ec7388a
baesparse: fix refactor regression in loop based parsing
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
3cf81d066f
baseparse: pass all available data to subclass rather than minimum
...
Also reduce some adapter calls and add a few debug statements.
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
c0cbab6981
baseparse: fix reverse playback handling
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
d191e8b496
baseparse: minor typo and debug statement cleanup
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
c1adec7c76
baseparse: reduce locking
...
... which is either already mute and/or implicitly handled by STREAM_LOCK.
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
d45cdf65d5
baseparse: avoid loop in frame locating interpolation
2011-04-08 15:44:54 +01:00
Thiago Santos
a3e55038ac
audioparsers: baseparse: Be careful to not lose the event ref
...
Don't unref the event if it hasn't been handled, because the caller
assumes it is still valid and might reuse it.
I ran into this problem when transcoding an AVI (with mp3 inside)
to gpp.
https://bugzilla.gnome.org/show_bug.cgi?id=639555
2011-04-08 15:44:54 +01:00
Tim-Philipp Müller
40a5458392
docs: minor baseparse docs/comment fixes
...
Remove copy'n'paste leftovers.
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
4dc486ddc5
baseparse: increase keyframe awareness
...
... which is not particular relevant for audio parsing, but more so
in video cases. In particular, auto-determine if dealing with video (caps).
2011-04-08 15:44:54 +01:00
Mark Nauwelaerts
aed933c0ce
baseparse: avoid unexpected stray metadata
2011-04-08 15:44:53 +01:00
Mark Nauwelaerts
0cb02472f0
baseparse: use proper _NONE output value when applicable
2011-04-08 15:44:53 +01:00
Edward Hervey
dab512bb15
audioparsers: Remove dead assignments
2011-04-08 15:44:53 +01:00
Andoni Morales Alastruey
fc4885a3a3
audioparse: fix possible division-by-zero
...
https://bugzilla.gnome.org/show_bug.cgi?id=635786
2011-04-08 15:44:53 +01:00
Mark Nauwelaerts
4230c0b2e1
baseparse: use correct offset when adding index entry
...
... bearing in mind that BUFFER_OFFSET is media specific and may not
reflect the basic offset after having been parsed.
2011-04-08 15:44:53 +01:00