summaryrefslogtreecommitdiffstats
path: root/media/base/text_cue.cc
diff options
context:
space:
mode:
authormatthewjheaney@chromium.org <matthewjheaney@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 01:19:31 +0000
committermatthewjheaney@chromium.org <matthewjheaney@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-22 01:19:31 +0000
commit8a5610641873c139760a68ab3bd05e20e62df3ae (patch)
tree793df094179d5c9db661876e62a17cd9ca0e750b /media/base/text_cue.cc
parent49728365a1847baa284259504aaade201bfdccb7 (diff)
downloadchromium_src-8a5610641873c139760a68ab3bd05e20e62df3ae.zip
chromium_src-8a5610641873c139760a68ab3bd05e20e62df3ae.tar.gz
chromium_src-8a5610641873c139760a68ab3bd05e20e62df3ae.tar.bz2
Render inband text tracks in the media pipeline
This change modifies the FFmpeg demuxer to recognize text streams embedded in the source media (Webm). Text decoder and text renderer filters have been added to the pipeline, to process the text frames as they are pulled downstream. BUG=230708 Review URL: https://codereview.chromium.org/23702007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236660 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/text_cue.cc')
-rw-r--r--media/base/text_cue.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/media/base/text_cue.cc b/media/base/text_cue.cc
new file mode 100644
index 0000000..3d8a892
--- /dev/null
+++ b/media/base/text_cue.cc
@@ -0,0 +1,23 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/base/text_cue.h"
+
+namespace media {
+
+TextCue::TextCue(const base::TimeDelta& timestamp,
+ const base::TimeDelta& duration,
+ const std::string& id,
+ const std::string& settings,
+ const std::string& text)
+ : timestamp_(timestamp),
+ duration_(duration),
+ id_(id),
+ settings_(settings),
+ text_(text) {
+}
+
+TextCue::~TextCue() {}
+
+} // namespace media