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 namespace media { |
| 9 class AudioDecoderConfig; |
| 10 class VideoDecoderConfig; |
| 11 } // namespace media |
| 12 |
| 13 namespace chromecast { |
| 14 namespace media { |
| 15 |
| 16 class AudioConfig; |
| 17 class VideoConfig; |
| 18 |
| 19 class DecoderConfigAdapter { |
| 20 public: |
| 21 // Converts ::media::AudioDecoderConfig to chromecast::media::AudioConfig |
| 22 static AudioConfig ToAudioConfig(const ::media::AudioDecoderConfig& config); |
| 23 |
| 24 // Converts ::media::VideoDecoderConfig to chromecast::media::VideoConfig |
| 25 static VideoConfig ToVideoConfig(const ::media::VideoDecoderConfig& config); |
| 26 }; |
| 27 |
| 28 } // namespace media |
| 29 } // namespace chromecast |
| 30 |
| 31 #endif // CHROMECAST_MEDIA_CMA_BASE_DECODER_CONFIG_ADAPTER_H_ |
OLD | NEW |