Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(900)

Side by Side Diff: media/webm/webm_parser.h

Issue 13419002: Media Source dispatches inband text tracks (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: clean compile Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_WEBM_WEBM_PARSER_H_ 5 #ifndef MEDIA_WEBM_WEBM_PARSER_H_
6 #define MEDIA_WEBM_WEBM_PARSER_H_ 6 #define MEDIA_WEBM_WEBM_PARSER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // 146 //
147 // Returns < 0 if the parse fails. 147 // Returns < 0 if the parse fails.
148 // Returns 0 if more data is needed. 148 // Returns 0 if more data is needed.
149 // Returning > 0 indicates success & the number of bytes parsed. 149 // Returning > 0 indicates success & the number of bytes parsed.
150 // |*id| contains the element ID on success and is undefined otherwise. 150 // |*id| contains the element ID on success and is undefined otherwise.
151 // |*element_size| contains the element size on success and is undefined 151 // |*element_size| contains the element size on success and is undefined
152 // otherwise. 152 // otherwise.
153 int MEDIA_EXPORT WebMParseElementHeader(const uint8* buf, int size, 153 int MEDIA_EXPORT WebMParseElementHeader(const uint8* buf, int size,
154 int* id, int64* element_size); 154 int* id, int64* element_size);
155 155
156 // Specifies the varieties of text tracks.
157 enum TextKind {
158 kTextNone,
159 kTextSubtitles,
160 kTextCaptions,
161 kTextDescriptions,
162 kTextMetadata
163 };
164
165 } // namespace media 156 } // namespace media
166 157
167 #endif // MEDIA_WEBM_WEBM_PARSER_H_ 158 #endif // MEDIA_WEBM_WEBM_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698