diff options
author | matthewjheaney@chromium.org <matthewjheaney@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-22 01:19:31 +0000 |
---|---|---|
committer | matthewjheaney@chromium.org <matthewjheaney@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-22 01:19:31 +0000 |
commit | 8a5610641873c139760a68ab3bd05e20e62df3ae (patch) | |
tree | 793df094179d5c9db661876e62a17cd9ca0e750b /media/base/text_cue.cc | |
parent | 49728365a1847baa284259504aaade201bfdccb7 (diff) | |
download | chromium_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.cc | 23 |
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 |