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

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

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix compile errors 11/21 #6 Created 7 years, 1 month 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
« no previous file with comments | « media/webm/webm_stream_parser.cc ('k') | media/webm/webm_tracks_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TRACKS_PARSER_H_ 5 #ifndef MEDIA_WEBM_WEBM_TRACKS_PARSER_H_
6 #define MEDIA_WEBM_WEBM_TRACKS_PARSER_H_ 6 #define MEDIA_WEBM_WEBM_TRACKS_PARSER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "media/base/audio_decoder_config.h" 15 #include "media/base/audio_decoder_config.h"
16 #include "media/base/media_log.h" 16 #include "media/base/media_log.h"
17 #include "media/base/text_track.h" 17 #include "media/base/text_track_config.h"
18 #include "media/base/video_decoder_config.h" 18 #include "media/base/video_decoder_config.h"
19 #include "media/webm/webm_audio_client.h" 19 #include "media/webm/webm_audio_client.h"
20 #include "media/webm/webm_content_encodings_client.h" 20 #include "media/webm/webm_content_encodings_client.h"
21 #include "media/webm/webm_parser.h" 21 #include "media/webm/webm_parser.h"
22 #include "media/webm/webm_video_client.h" 22 #include "media/webm/webm_video_client.h"
23 23
24 namespace media { 24 namespace media {
25 25
26 // Parser for WebM Tracks element. 26 // Parser for WebM Tracks element.
27 class MEDIA_EXPORT WebMTracksParser : public WebMParserClient { 27 class MEDIA_EXPORT WebMTracksParser : public WebMParserClient {
(...skipping 21 matching lines...) Expand all
49 } 49 }
50 50
51 const std::string& video_encryption_key_id() const { 51 const std::string& video_encryption_key_id() const {
52 return video_encryption_key_id_; 52 return video_encryption_key_id_;
53 } 53 }
54 54
55 const VideoDecoderConfig& video_decoder_config() { 55 const VideoDecoderConfig& video_decoder_config() {
56 return video_decoder_config_; 56 return video_decoder_config_;
57 } 57 }
58 58
59 struct TextTrackInfo { 59 typedef std::map<int, TextTrackConfig> TextTracks;
60 TextKind kind;
61 std::string name;
62 std::string language;
63 };
64
65 typedef std::map<int64, TextTrackInfo> TextTracks;
66 60
67 const TextTracks& text_tracks() const { 61 const TextTracks& text_tracks() const {
68 return text_tracks_; 62 return text_tracks_;
69 } 63 }
70 64
71 private: 65 private:
72 // WebMParserClient implementation. 66 // WebMParserClient implementation.
73 virtual WebMParserClient* OnListStart(int id) OVERRIDE; 67 virtual WebMParserClient* OnListStart(int id) OVERRIDE;
74 virtual bool OnListEnd(int id) OVERRIDE; 68 virtual bool OnListEnd(int id) OVERRIDE;
75 virtual bool OnUInt(int id, int64 val) OVERRIDE; 69 virtual bool OnUInt(int id, int64 val) OVERRIDE;
(...skipping 25 matching lines...) Expand all
101 95
102 WebMVideoClient video_client_; 96 WebMVideoClient video_client_;
103 VideoDecoderConfig video_decoder_config_; 97 VideoDecoderConfig video_decoder_config_;
104 98
105 DISALLOW_COPY_AND_ASSIGN(WebMTracksParser); 99 DISALLOW_COPY_AND_ASSIGN(WebMTracksParser);
106 }; 100 };
107 101
108 } // namespace media 102 } // namespace media
109 103
110 #endif // MEDIA_WEBM_WEBM_TRACKS_PARSER_H_ 104 #endif // MEDIA_WEBM_WEBM_TRACKS_PARSER_H_
OLDNEW
« no previous file with comments | « media/webm/webm_stream_parser.cc ('k') | media/webm/webm_tracks_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698