#ifndef COMPONENTS_VIZ_COMMON_RESOURCES_SHARED_IMAGE_FORMAT_H_
#define COMPONENTS_VIZ_COMMON_RESOURCES_SHARED_IMAGE_FORMAT_H_
#include <stdint.h>
#include <compare>
#include <optional>
#include <string>
#include "base/check.h"
#include "base/component_export.h"
#include "build/build_config.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "services/viz/public/mojom/compositing/internal/singleplanar_format.mojom.h"
#include "ui/gfx/geometry/size.h"
namespace viz {
class LegacyMultiPlaneFormat;
class SinglePlaneFormat;
namespace mojom {
class SharedImageFormatDataView;
class MultiplanarFormatDataView;
}
class COMPONENT_EXPORT(VIZ_SHARED_IMAGE_FORMAT) SharedImageFormat final { … };
class SinglePlaneFormat { … };
class LegacyMultiPlaneFormat { … };
namespace MultiPlaneFormat {
inline constexpr SharedImageFormat kYV12 = …;
inline constexpr SharedImageFormat kNV12 = …;
inline constexpr SharedImageFormat kNV12A = …;
inline constexpr SharedImageFormat kP010 = …;
inline constexpr SharedImageFormat kNV16 = …;
inline constexpr SharedImageFormat kNV24 = …;
inline constexpr SharedImageFormat kP210 = …;
inline constexpr SharedImageFormat kP410 = …;
inline constexpr SharedImageFormat kI420 = …;
inline constexpr SharedImageFormat kI420A = …;
}
}
#endif