[go: nahoru, domu]

blob: d16831b5b2ad8632152fb0a07ecc350924deaaa0 [file] [log] [blame]
Avi Drissman3e1a26c2022-09-15 20:26:031// Copyright 2021 The Chromium Authors
Miguel Casasa804eb192021-05-21 01:13:172// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "ui/gfx/mojom/hdr_static_metadata_mojom_traits.h"
6
7namespace mojo {
8
9bool StructTraits<
10 gfx::mojom::HDRStaticMetadataDataView,
11 gfx::HDRStaticMetadata>::Read(gfx::mojom::HDRStaticMetadataDataView data,
12 gfx::HDRStaticMetadata* output) {
13 output->max = data.max();
14 output->max_avg = data.max_avg();
15 output->min = data.min();
Sasha McIntosha51e344f2023-05-23 17:28:5316 output->supported_eotf_mask = data.supported_eotf_mask();
Miguel Casasa804eb192021-05-21 01:13:1717 return true;
18}
19
20} // namespace mojo