/* * Copyright 2020 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkYUVAInfo_DEFINED #define SkYUVAInfo_DEFINED #include "include/codec/SkEncodedOrigin.h" #include "include/core/SkImageInfo.h" #include "include/core/SkMatrix.h" #include "include/core/SkSize.h" #include "include/core/SkTypes.h" #include <array> #include <cstddef> #include <cstdint> #include <tuple> /** * Specifies the structure of planes for a YUV image with optional alpha. The actual planar data * is not part of this structure and depending on usage is in external textures or pixmaps. */ class SK_API SkYUVAInfo { … }; constexpr int SkYUVAInfo::NumPlanes(PlaneConfig planeConfig) { … } constexpr int SkYUVAInfo::NumChannelsInPlane(PlaneConfig config, int i) { … } #endif