| OLD | NEW |
| 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 Loading... |
| 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 { |
| 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; |
| 77 |
| 63 } // namespace media | 78 } // namespace media |
| 64 | 79 |
| 65 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ | 80 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ |
| OLD | NEW |