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

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

Issue 2611333003: [Video] Disable bg optimization if avg keyframe distance is >10s (Closed)
Patch Set: Changed the name and set a minimum number of samples Created 3 years, 11 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/blink/webmediaplayer_impl.h » ('j') | media/blink/webmediaplayer_impl.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 <stdint.h> 10 #include <stdint.h>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 typedef base::Callback<void(PipelineStatus)> PipelineStatusCB; 53 typedef base::Callback<void(PipelineStatus)> PipelineStatusCB;
54 54
55 struct PipelineStatistics { 55 struct PipelineStatistics {
56 uint64_t audio_bytes_decoded = 0; 56 uint64_t audio_bytes_decoded = 0;
57 uint64_t video_bytes_decoded = 0; 57 uint64_t video_bytes_decoded = 0;
58 uint32_t video_frames_decoded = 0; 58 uint32_t video_frames_decoded = 0;
59 uint32_t video_frames_dropped = 0; 59 uint32_t video_frames_dropped = 0;
60 int64_t audio_memory_usage = 0; 60 int64_t audio_memory_usage = 0;
61 int64_t video_memory_usage = 0; 61 int64_t video_memory_usage = 0;
62 int64_t video_keyframe_distance_average_ms = 0;
DaleCurtis 2017/01/10 21:11:39 Just use a base::TimeDelta?
whywhat 2017/01/10 21:51:54 Done.
62 }; 63 };
63 64
64 // Used for updating pipeline statistics; the passed value should be a delta 65 // Used for updating pipeline statistics; the passed value should be a delta
65 // of all attributes since the last update. 66 // of all attributes since the last update.
66 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; 67 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB;
67 68
68 } // namespace media 69 } // namespace media
69 70
70 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ 71 #endif // MEDIA_BASE_PIPELINE_STATUS_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.h » ('j') | media/blink/webmediaplayer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698