blob: 11d0af7b512b24a6ce683dc3473e59f9c2ba6f2c [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_BASE_SUPPORTED_AUDIO_DECODER_CONFIG_H_
#define MEDIA_BASE_SUPPORTED_AUDIO_DECODER_CONFIG_H_
#include <vector>
#include "media/base/audio_codecs.h"
#include "media/base/media_export.h"
namespace media {
// Specifies the supported audio configurations of audio decoder for
// communication between processes like Renderer and GPU.
struct MEDIA_EXPORT SupportedAudioDecoderConfig {
SupportedAudioDecoderConfig();
SupportedAudioDecoderConfig(AudioCodec codec, AudioCodecProfile profile);
~SupportedAudioDecoderConfig();
bool operator<=>(const SupportedAudioDecoderConfig& other) const = default;
AudioCodec codec;
AudioCodecProfile profile;
};
using SupportedAudioDecoderConfigs = std::vector<SupportedAudioDecoderConfig>;
} // namespace media
#endif // MEDIA_BASE_SUPPORTED_AUDIO_DECODER_CONFIG_H_