Chromium Code Reviews| Index: chromecast/media/cma/base/decoder_config_adapter.h |
| diff --git a/chromecast/media/cma/base/decoder_config_adapter.h b/chromecast/media/cma/base/decoder_config_adapter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8b0427868eaf74b0363cd734f586a712527119a4 |
| --- /dev/null |
| +++ b/chromecast/media/cma/base/decoder_config_adapter.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROMECAST_MEDIA_CMA_BASE_DECODER_CONFIG_ADAPTER_H_ |
| +#define CHROMECAST_MEDIA_CMA_BASE_DECODER_CONFIG_ADAPTER_H_ |
| + |
| +#include "chromecast/public/media/decoder_config.h" |
| +#include "media/base/audio_decoder_config.h" |
| +#include "media/base/video_decoder_config.h" |
| + |
| +namespace chromecast { |
| +namespace media { |
| + |
| +class DecoderConfigAdapter { |
| + public: |
| + // Converts ::media::AudioDecoderConfig to chromecast::media::AudioConfig. |
| + 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.
|
| + const ::media::AudioDecoderConfig& config); |
| + |
| + // Converts ::media::VideoDecoderConfig to chromecast::media::VideoConfig. |
| + static VideoConfig ToVideoConfig( |
| + const ::media::VideoDecoderConfig& config); |
| +}; |
| + |
| +} // namespace media |
| +} // namespace chromecast |
| + |
| +#endif // CHROMECAST_MEDIA_CMA_BASE_DECODER_CONFIG_ADAPTER_H_ |