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

Side by Side Diff: media/filters/decoder_stream_traits.h

Issue 2079923002: Combine bytes-decoded notification with memory usage and frame count. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 4 years, 6 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 | « media/filters/decoder_stream.cc ('k') | media/filters/decoder_stream_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FILTERS_DECODER_STREAM_TRAITS_H_ 5 #ifndef MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_
6 #define MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_ 6 #define MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_
7 7
8 #include "media/base/cdm_context.h" 8 #include "media/base/cdm_context.h"
9 #include "media/base/demuxer_stream.h" 9 #include "media/base/demuxer_stream.h"
10 #include "media/base/pipeline_status.h" 10 #include "media/base/pipeline_status.h"
(...skipping 20 matching lines...) Expand all
31 typedef base::Callback<void(bool success)> InitCB; 31 typedef base::Callback<void(bool success)> InitCB;
32 typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB; 32 typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB;
33 33
34 static std::string ToString(); 34 static std::string ToString();
35 static void InitializeDecoder(DecoderType* decoder, 35 static void InitializeDecoder(DecoderType* decoder,
36 DemuxerStream* stream, 36 DemuxerStream* stream,
37 CdmContext* cdm_context, 37 CdmContext* cdm_context,
38 const InitCB& init_cb, 38 const InitCB& init_cb,
39 const OutputCB& output_cb); 39 const OutputCB& output_cb);
40 static bool NeedsBitstreamConversion(DecoderType* decoder); 40 static bool NeedsBitstreamConversion(DecoderType* decoder);
41 static void ReportStatistics(const StatisticsCB& statistics_cb,
42 int bytes_decoded);
43 static scoped_refptr<OutputType> CreateEOSOutput(); 41 static scoped_refptr<OutputType> CreateEOSOutput();
44 }; 42 };
45 43
46 template <> 44 template <>
47 struct DecoderStreamTraits<DemuxerStream::VIDEO> { 45 struct DecoderStreamTraits<DemuxerStream::VIDEO> {
48 typedef VideoFrame OutputType; 46 typedef VideoFrame OutputType;
49 typedef VideoDecoder DecoderType; 47 typedef VideoDecoder DecoderType;
50 typedef DecryptingVideoDecoder DecryptingDecoderType; 48 typedef DecryptingVideoDecoder DecryptingDecoderType;
51 typedef base::Callback<void(bool success)> InitCB; 49 typedef base::Callback<void(bool success)> InitCB;
52 typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB; 50 typedef base::Callback<void(const scoped_refptr<OutputType>&)> OutputCB;
53 51
54 static std::string ToString(); 52 static std::string ToString();
55 static void InitializeDecoder(DecoderType* decoder, 53 static void InitializeDecoder(DecoderType* decoder,
56 DemuxerStream* stream, 54 DemuxerStream* stream,
57 CdmContext* cdm_context, 55 CdmContext* cdm_context,
58 const InitCB& init_cb, 56 const InitCB& init_cb,
59 const OutputCB& output_cb); 57 const OutputCB& output_cb);
60 static bool NeedsBitstreamConversion(DecoderType* decoder); 58 static bool NeedsBitstreamConversion(DecoderType* decoder);
61 static void ReportStatistics(const StatisticsCB& statistics_cb,
62 int bytes_decoded);
63 static scoped_refptr<OutputType> CreateEOSOutput(); 59 static scoped_refptr<OutputType> CreateEOSOutput();
64 }; 60 };
65 61
66 } // namespace media 62 } // namespace media
67 63
68 #endif // MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_ 64 #endif // MEDIA_FILTERS_DECODER_STREAM_TRAITS_H_
OLDNEW
« no previous file with comments | « media/filters/decoder_stream.cc ('k') | media/filters/decoder_stream_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698