// 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. // // Resolutions and dimensions (resolutions with a frame rate) are used // extensively throughout cast streaming. Since their serialization to and // from JSON is stable and standard, we have a single place definition for // these for use both in our public APIs and private messages. #ifndef CAST_STREAMING_RESOLUTION_H_ #define CAST_STREAMING_RESOLUTION_H_ #include "json/value.h" #include "util/simple_fraction.h" namespace openscreen::cast { // A resolution in pixels. struct Resolution { … }; // A resolution in pixels and a frame rate. struct Dimensions { … }; } // namespace openscreen::cast #endif // CAST_STREAMING_RESOLUTION_H_