chromium/media/mojo/mojom/audio_encoder_config_mojom_traits.cc

// 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.

#include "media/mojo/mojom/audio_encoder_config_mojom_traits.h"

#include <algorithm>

#include "base/numerics/safe_conversions.h"
#include "media/base/limits.h"
#include "mojo/public/cpp/base/time_mojom_traits.h"

namespace mojo {

// static
media::mojom::AacOutputFormat EnumTraits<media::mojom::AacOutputFormat,
                                         media::AudioEncoder::AacOutputFormat>::
    ToMojom(media::AudioEncoder::AacOutputFormat input) {}

// static
bool EnumTraits<media::mojom::AacOutputFormat,
                media::AudioEncoder::AacOutputFormat>::
    FromMojom(media::mojom::AacOutputFormat format,
              media::AudioEncoder::AacOutputFormat* output) {}

// static
bool StructTraits<media::mojom::AacAudioEncoderConfigDataView,
                  media::AudioEncoder::AacOptions>::
    Read(media::mojom::AacAudioEncoderConfigDataView input,
         media::AudioEncoder::AacOptions* output) {}

// static
bool StructTraits<media::mojom::AudioEncoderConfigDataView,
                  media::AudioEncoderConfig>::
    Read(media::mojom::AudioEncoderConfigDataView input,
         media::AudioEncoderConfig* output) {}

}  // namespace mojo