chromium/third_party/pdfium/core/fxge/dib/fx_dib.cpp

// Copyright 2014 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "core/fxge/dib/fx_dib.h"

#include <tuple>
#include <type_traits>
#include <utility>

#include "build/build_config.h"

#if BUILDFLAG(IS_WIN)
#include <windows.h>
#endif

#if BUILDFLAG(IS_WIN)
static_assert(sizeof(FX_COLORREF) == sizeof(COLORREF),
              "FX_COLORREF vs. COLORREF mismatch");
#endif

// Assert that FX_*_STRUCTS are packed.
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;

// Assert that FX_*_STRUCTS remain aggregates.
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;
static_assert;

FXDIB_ResampleOptions::FXDIB_ResampleOptions() = default;

bool FXDIB_ResampleOptions::HasAnyOptions() const {}

FX_BGRA_STRUCT<uint8_t> ArgbToBGRAStruct(FX_ARGB argb) {}

FX_BGR_STRUCT<uint8_t> ArgbToBGRStruct(FX_ARGB argb) {}

std::pair<uint8_t, FX_COLORREF> ArgbToAlphaAndColorRef(FX_ARGB argb) {}

FX_COLORREF ArgbToColorRef(FX_ARGB argb) {}

FX_ARGB AlphaAndColorRefToArgb(int a, FX_COLORREF colorref) {}