1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
media / base / supported_audio_decoder_config.h [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_