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

Side by Side Diff: media/base/pipeline_status.h

Issue 13419002: Media Source dispatches inband text tracks (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: incorporated Frank's comments Created 7 years, 8 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
« no previous file with comments | « no previous file | media/base/stream_parser.h » ('j') | media/base/stream_parser.h » ('J')
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_BASE_PIPELINE_STATUS_H_ 5 #ifndef MEDIA_BASE_PIPELINE_STATUS_H_
6 #define MEDIA_BASE_PIPELINE_STATUS_H_ 6 #define MEDIA_BASE_PIPELINE_STATUS_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 uint32 audio_bytes_decoded; // Should be uint64? 54 uint32 audio_bytes_decoded; // Should be uint64?
55 uint32 video_bytes_decoded; // Should be uint64? 55 uint32 video_bytes_decoded; // Should be uint64?
56 uint32 video_frames_decoded; 56 uint32 video_frames_decoded;
57 uint32 video_frames_dropped; 57 uint32 video_frames_dropped;
58 }; 58 };
59 59
60 // Used for updating pipeline statistics. 60 // Used for updating pipeline statistics.
61 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; 61 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB;
62 62
63 // Specifies the varieties of text tracks.
64 enum TextKind {
acolwell GONE FROM CHROMIUM 2013/04/05 16:29:23 nit: This doesn't seem like the right home for thi
Matthew Heaney (Chromium) 2013/05/08 19:53:00 Done.
65 kTextSubtitles,
66 kTextCaptions,
67 kTextDescriptions,
68 kTextMetadata,
69 kTextNone
70 };
71
72 // So pipeline can notify media player about presence of text tracks.
73 // TODO(matthewjheaney): Might have to also include track number, etc.
74 typedef base::Callback<void(TextKind kind,
75 const std::string& label,
76 const std::string& language)> TextTrackCB;
acolwell GONE FROM CHROMIUM 2013/04/05 16:29:23 nit:s/TextTrackCB/AddTextTrackCB It seems like th
Matthew Heaney (Chromium) 2013/05/08 19:53:00 Can you elaborate a bit on this? We're still a li
acolwell GONE FROM CHROMIUM 2013/05/08 20:51:29 Sure. At this point I think the return type should
77
63 } // namespace media 78 } // namespace media
64 79
65 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ 80 #endif // MEDIA_BASE_PIPELINE_STATUS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/stream_parser.h » ('j') | media/base/stream_parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698