chromium/media/mojo/mojom/audio_encoder_config_mojom_traits.h

// Copyright 2021 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_MOJO_MOJOM_AUDIO_ENCODER_CONFIG_MOJOM_TRAITS_H_
#define MEDIA_MOJO_MOJOM_AUDIO_ENCODER_CONFIG_MOJOM_TRAITS_H_

#include "media/base/audio_encoder.h"
#include "media/base/ipc/media_param_traits.h"
#include "media/mojo/mojom/audio_encoder.mojom-shared.h"
#include "media/mojo/mojom/media_types.mojom.h"

namespace mojo {

template <>
struct EnumTraits<media::mojom::AacOutputFormat,
                  media::AudioEncoder::AacOutputFormat> {};

template <>
struct StructTraits<media::mojom::AacAudioEncoderConfigDataView,
                    media::AudioEncoder::AacOptions> {};

template <>
struct StructTraits<media::mojom::AudioEncoderConfigDataView,
                    media::AudioEncoderConfig> {};

}  // namespace mojo

#endif  // MEDIA_MOJO_MOJOM_AUDIO_ENCODER_CONFIG_MOJOM_TRAITS_H_