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

Unified Diff: media/filters/decoder_stream_traits.h

Issue 2545523005: [Video] Collect average keyframe distance for video (Closed)
Patch Set: Fixed early exit conditions Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/filters/decoder_stream_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/decoder_stream_traits.h
diff --git a/media/filters/decoder_stream_traits.h b/media/filters/decoder_stream_traits.h
index 63951c1325fc044811fab64ec881edd269a784e4..b415d11ea544ecd1d766498532dd32afa0581e81 100644
--- a/media/filters/decoder_stream_traits.h
+++ b/media/filters/decoder_stream_traits.h
@@ -5,6 +5,7 @@
#ifndef MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_
#define MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_
+#include "base/time/time.h"
#include "media/base/cdm_context.h"
#include "media/base/demuxer_stream.h"
#include "media/base/pipeline_status.h"
@@ -82,9 +83,12 @@ class MEDIA_EXPORT DecoderStreamTraits<DemuxerStream::VIDEO> {
CdmContext* cdm_context,
const InitCB& init_cb,
const OutputCB& output_cb);
- void OnDecode(const scoped_refptr<DecoderBuffer>& buffer) {}
+ void OnDecode(const scoped_refptr<DecoderBuffer>& buffer);
void OnDecodeDone(const scoped_refptr<OutputType>& buffer) {}
- void OnStreamReset(DemuxerStream* stream) {}
+ void OnStreamReset(DemuxerStream* stream);
+
+ private:
+ base::TimeDelta last_keyframe_timestamp_;
};
} // namespace media
« no previous file with comments | « no previous file | media/filters/decoder_stream_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698