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

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

Issue 2848213003: Fix building FFMPEG into Android (Closed)
Patch Set: Created 3 years, 7 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/BUILD.gn ('k') | no next file » | 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_SELECTOR_H_ 5 #ifndef MEDIA_FILTERS_DECODER_SELECTOR_H_
6 #define MEDIA_FILTERS_DECODER_SELECTOR_H_ 6 #define MEDIA_FILTERS_DECODER_SELECTOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // 3. |cdm_context| is optional. If |cdm_context| is 72 // 3. |cdm_context| is optional. If |cdm_context| is
73 // null, no CDM will be available to perform decryption. 73 // null, no CDM will be available to perform decryption.
74 void SelectDecoder(StreamTraits* traits, 74 void SelectDecoder(StreamTraits* traits,
75 DemuxerStream* stream, 75 DemuxerStream* stream,
76 CdmContext* cdm_context, 76 CdmContext* cdm_context,
77 const SelectDecoderCB& select_decoder_cb, 77 const SelectDecoderCB& select_decoder_cb,
78 const typename Decoder::OutputCB& output_cb, 78 const typename Decoder::OutputCB& output_cb,
79 const base::Closure& waiting_for_decryption_key_cb); 79 const base::Closure& waiting_for_decryption_key_cb);
80 80
81 private: 81 private:
82 #if !defined(OS_ANDROID) 82 #if !defined(DISABLE_FFMPEG_VIDEO_DECODERS)
xhwang 2017/05/01 17:10:00 I saw this when working on the DecoderSelector and
kraush 2017/05/01 18:14:59 Sorry, just to clarify: Are you saying the changes
83 void InitializeDecryptingDecoder(); 83 void InitializeDecryptingDecoder();
84 void DecryptingDecoderInitDone(bool success); 84 void DecryptingDecoderInitDone(bool success);
85 #endif 85 #endif
86 void InitializeDecryptingDemuxerStream(); 86 void InitializeDecryptingDemuxerStream();
87 void DecryptingDemuxerStreamInitDone(PipelineStatus status); 87 void DecryptingDemuxerStreamInitDone(PipelineStatus status);
88 void InitializeDecoder(); 88 void InitializeDecoder();
89 void DecoderInitDone(bool success); 89 void DecoderInitDone(bool success);
90 void ReturnNullDecoder(); 90 void ReturnNullDecoder();
91 91
92 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 92 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
(...skipping 22 matching lines...) Expand all
115 115
116 DISALLOW_IMPLICIT_CONSTRUCTORS(DecoderSelector); 116 DISALLOW_IMPLICIT_CONSTRUCTORS(DecoderSelector);
117 }; 117 };
118 118
119 typedef DecoderSelector<DemuxerStream::VIDEO> VideoDecoderSelector; 119 typedef DecoderSelector<DemuxerStream::VIDEO> VideoDecoderSelector;
120 typedef DecoderSelector<DemuxerStream::AUDIO> AudioDecoderSelector; 120 typedef DecoderSelector<DemuxerStream::AUDIO> AudioDecoderSelector;
121 121
122 } // namespace media 122 } // namespace media
123 123
124 #endif // MEDIA_FILTERS_DECODER_SELECTOR_H_ 124 #endif // MEDIA_FILTERS_DECODER_SELECTOR_H_
OLDNEW
« no previous file with comments | « media/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698