OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROMECAST_MEDIA_CMA_BASE_DECODER_CONFIG_ADAPTER_H_ | |
6 #define CHROMECAST_MEDIA_CMA_BASE_DECODER_CONFIG_ADAPTER_H_ | |
7 | |
8 #include "chromecast/public/media/decoder_config.h" | |
9 #include "media/base/audio_decoder_config.h" | |
10 #include "media/base/video_decoder_config.h" | |
11 | |
12 namespace chromecast { | |
13 namespace media { | |
14 | |
15 class DecoderConfigAdapter { | |
16 public: | |
17 // Converts ::media::AudioDecoderConfig to chromecast::media::AudioConfig. | |
18 static AudioConfig ToAudioConfig( | |
lcwu1
2015/05/05 23:46:22
Maybe rename it to 'ToCastAudioConfig' to make it
erickung1
2015/05/06 01:17:11
Done.
| |
19 const ::media::AudioDecoderConfig& config); | |
20 | |
21 // Converts ::media::VideoDecoderConfig to chromecast::media::VideoConfig. | |
22 static VideoConfig ToVideoConfig( | |
23 const ::media::VideoDecoderConfig& config); | |
24 }; | |
25 | |
26 } // namespace media | |
27 } // namespace chromecast | |
28 | |
29 #endif // CHROMECAST_MEDIA_CMA_BASE_DECODER_CONFIG_ADAPTER_H_ | |
OLD | NEW |