diff options
author | Philip Jägenstedt <philipj@opera.com> | 2010-05-23 09:32:08 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-06-01 11:21:29 +0200 |
commit | 80926a5596bbd3b35795ae135786c5ac29d46a5b (patch) | |
tree | 14a8b280629f04911dad72a8bd62086d5a356360 /gst/matroska/matroska-ids.h | |
parent | f5bca501e5eb122a0d511b336293278f49970ef2 (diff) |
matroskademux: skip buffers before a late keyframe (QoS)
Before, vp8dec had no option but to decode all frames even if some/all
of them would be late. With this change, performance when keyframes are
frequent is helped a great deal. On my Thinkpad X60s, decoding a 20 s
1080p sunflower encode with keyframes every 10 frames went from taking
42 s with 5 frames shown to 21 s with 15 frames shown (still slow
enough to count by hand). When keyframes are more sparse, you will
still be able to catch up eventually, but the results won't be as
noticable.
Diffstat (limited to 'gst/matroska/matroska-ids.h')
-rw-r--r-- | gst/matroska/matroska-ids.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/matroska/matroska-ids.h b/gst/matroska/matroska-ids.h index 085bf8409..16b56010b 100644 --- a/gst/matroska/matroska-ids.h +++ b/gst/matroska/matroska-ids.h @@ -545,6 +545,9 @@ typedef struct _GstMatroskaTrackVideoContext { GstMatroskaAspectRatioMode asr_mode; guint32 fourcc; + /* QoS */ + GstClockTime earliest_time; + GstBuffer *dirac_unit; } GstMatroskaTrackVideoContext; |