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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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_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 21 matching lines...) Expand all
32 DEMUXER_ERROR_NO_SUPPORTED_STREAMS = 14, 32 DEMUXER_ERROR_NO_SUPPORTED_STREAMS = 14,
33 // Decoder related errors. 33 // Decoder related errors.
34 DECODER_ERROR_NOT_SUPPORTED = 15, 34 DECODER_ERROR_NOT_SUPPORTED = 15,
35 // Must be equal to the largest value ever logged. 35 // Must be equal to the largest value ever logged.
36 PIPELINE_STATUS_MAX = DECODER_ERROR_NOT_SUPPORTED, 36 PIPELINE_STATUS_MAX = DECODER_ERROR_NOT_SUPPORTED,
37 }; 37 };
38 38
39 typedef base::Callback<void(PipelineStatus)> PipelineStatusCB; 39 typedef base::Callback<void(PipelineStatus)> PipelineStatusCB;
40 40
41 struct PipelineStatistics { 41 struct PipelineStatistics {
42 uint64_t audio_bytes_decoded = 0; // Should be uint64? 42 uint64_t audio_bytes_decoded = 0; // Should be uint64_t?
43 uint32 video_bytes_decoded = 0; // Should be uint64? 43 uint32_t video_bytes_decoded = 0; // Should be uint64_t?
44 uint32 video_frames_decoded = 0; 44 uint32_t video_frames_decoded = 0;
45 uint32 video_frames_dropped = 0; 45 uint32_t video_frames_dropped = 0;
46 int64_t audio_memory_usage = 0; 46 int64_t audio_memory_usage = 0;
47 int64_t video_memory_usage = 0; 47 int64_t video_memory_usage = 0;
48 }; 48 };
49 49
50 // Used for updating pipeline statistics; the passed value should be a delta 50 // Used for updating pipeline statistics; the passed value should be a delta
51 // of all attributes since the last update. 51 // of all attributes since the last update.
52 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; 52 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB;
53 53
54 } // namespace media 54 } // namespace media
55 55
56 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ 56 #endif // MEDIA_BASE_PIPELINE_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698