blob: 9a00bf573b344e3e5338de9107ea3787c37d9d71 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <d3d11.h>
#include <d3d9.h>
// Must be included after d3d headers, use #if to avoid lint errors.
#if 1
#include <DXGIType.h>
// Work around bug in this header by disabling the relevant warning for it.
#pragma warning(push)
#pragma warning(disable : 4201)
#include <dxva2api.h>
#pragma warning(pop)
#include "ui/gfx/color_space.h"
namespace gfx {
class COLOR_SPACE_EXPORT ColorSpaceWin {
static DXVA2_ExtendedFormat GetExtendedFormat(const ColorSpace& color_space);
// Returns a DXGI_COLOR_SPACE value based on the primaries and transfer
// function of |color_space|. If the color space's MatrixID is RGB, then the
// returned color space is also RGB unless |force_yuv| is true in which case
// it is a YUV color space.
static DXGI_COLOR_SPACE_TYPE GetDXGIColorSpace(const ColorSpace& color_space,
bool force_yuv = false);
const ColorSpace& color_space);
} // namespace gfx