blob: 9aebac3bf3f6fdf53c6c6cca93dd53be1807f5b8 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/mojo/mojom/video_transformation_mojom_traits.h"
namespace mojo {
// static
bool StructTraits<media::mojom::VideoTransformationDataView,
media::VideoTransformation>::
Read(media::mojom::VideoTransformationDataView input,
media::VideoTransformation* output) {
if (!input.ReadRotation(&output->rotation))
return false;
output->mirrored = input.mirrored();
return true;
}
} // namespace mojo