📄 precomp.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Module Name:
Abstract:
Notes:
--*/
#include <windows.h>
#include <types.h>
#include <winddi.h>
#include <ddrawi.h>
#include <ddgpe.h>
#include <emul.h>
#include <ddhfuncs.h>
#include <ceddk.h>
//#include <dvp.h>
#include <image_cfg.h>
#include <bsp.h>
#include "ddgpeusr.h"
#include "mediatype.h"
#include "s3c6410_disp.h"
#include "s3c6410_ldi.h"
#include "s3c6410_display_con.h"
#include "s3c6410_post_proc.h"
#include "s3c6410_tv_scaler.h"
#include "s3c6410_tv_encoder.h"
#include "SVE_API.h" // Display Driver Do not include "SVEDriverAPI.h"
#if (CPU_NAME == S3C6400)
#include "..\s3c6400_g2d_lib\fimgse2d.h"
#elif (CPU_NAME == S3C6410)
#include "..\s3c6410_g2d_lib\fimgse2d.h"
#endif
#ifdef REMOVE_BEFORE_RELEASE
#define DDHAL_MSG(x)
#define DDHAL_INF(x)
#define DDHAL_ERR(x) RETAILMSG(TRUE, x)
#define DISPDRV_MSG(x)
#define DISPDRV_INF(x)
#define DISPDRV_ERR(x) RETAILMSG(TRUE, x)
#else
//#define DDHAL_MSG(x) RETAILMSG(TRUE, x)
#define DDHAL_MSG(x)
#define DDHAL_INF(x) RETAILMSG(TRUE, x)
//#define DDHAL_INF(x)
#define DDHAL_ERR(x) RETAILMSG(TRUE, x)
//#define DDHAL_ERR(x)
//#define DISPDRV_MSG(x) RETAILMSG(TRUE, x)
#define DISPDRV_MSG(x)
#define DISPDRV_INF(x) RETAILMSG(TRUE, x)
//#define DISPDRV_INF(x)
#define DISPDRV_ERR(x) RETAILMSG(TRUE, x)
//#define DISPDRV_ERR(x)
#endif
#define G2D_MSG (FALSE) //< This will enable debugmessage about 2D
#define G2D_ACCELERATE (TRUE) //< If you want to use 2D HW for GDI, set this to "TRUE", if not, set to "FALSE"
//{@ if USE_G2D_ACCELERATE is TRUE then these condition will work
/// Try to bitblt from cached source surface to non cached destinatino surface, this do cache flush
#define G2D_TRY_CBLT (TRUE)
/// if use 2DHW CETK 218(StretchBlt),219(TransparentBlt) will fail.
/// This is why 2DHW's stretching algorithm differ from SW stretching algorithm.
#define G2D_BYPASS_HW_STRETCHBLT (TRUE)
/**
* Define G2D StretchBlt SW Workaround
**/
#define G2D_CENTERED_STRETCH (1) //< HW Stretchblt algorithm differs from MS'SW Stretching BLT algorithms, So, CETK 218, 219 can fails.
#define G2D_BILINEAR_STRETCH (2) //< This will decrease fail case. but still fail is occured. slower than CENTERED_STRETCH
#define G2D_STRETCH_ALGORITHM (G2D_BILINEAR_STRETCH)
/// For using Physically Linear Surface on System Memory to wide 2D HW usage.
/// 2D HW need physically contiguous memory, and its address.
/// This will consume System Memory and allocate Physically and Virtually contiguous memory.
/// So if system has small memory, allocation may fail.
/// Then 2D HW will not work for that memory.
/// @BUGBUG: in Media Player, Occasionly PACSurf object cannot be bitblted correctly.
#define USE_PACSURF (TRUE)
//{@ if USE_PACSURF is TRUE then these condition will work
#define G2D_BLT_OPTIMIZE (FALSE) //< This option will enable above two optimization method. This can increase 2D processing overhead.
#define PAC_ALLOCATION_BOUNDARY (160*120*2) //(320*240*2) //< PACSurf creation request is processed only for the surface has over QVGA 16bpp size
#define G2D_COMPROMISE_LIMIT (28800) //< Transferring below this size(byte) using HW will be poor than using SW. so we will use software 2D flow under this size transfer request.
//@{
//@}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -