OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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_ |
OLD | NEW |