[M120 Migration][MM] Framerate calculation
[platform/framework/web/chromium-efl.git] / media / mojo / mojom / video_transformation_mojom_traits.cc
1 // Copyright 2019 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/mojo/mojom/video_transformation_mojom_traits.h"
6
7 #include "media/mojo/mojom/media_types.mojom.h"
8
9 namespace mojo {
10
11 // static
12 bool StructTraits<media::mojom::VideoTransformationDataView,
13                   media::VideoTransformation>::
14     Read(media::mojom::VideoTransformationDataView input,
15          media::VideoTransformation* output) {
16   if (!input.ReadRotation(&output->rotation))
17     return false;
18
19   output->mirrored = input.mirrored();
20
21   return true;
22 }
23
24 }  // namespace mojo