2025-04-27 07:49:33 -04:00

88 lines
1.5 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1990-1999 Microsoft Corporation
Module Name:
transpos.h
Abstract:
This module contains defines and prototypes for the transpos.c module.
Author:
22-Dec-1993 Wed 15:49:08 created -by- DC
[Environment:]
GDI Device Driver - Plotter.
[Notes:]
Revision History:
--*/
#ifndef _TRANSPOS_
#define _TRANSPOS_
typedef struct _TPINFO {
PPDEV pPDev;
LPBYTE pSrc;
LPBYTE pDest;
LONG cbSrcScan;
LONG cbDestScan;
DWORD cySrc;
DWORD DestXStart;
} TPINFO, *PTPINFO;
#define _RL_TPI(pTPInfo, cScan) \
{ \
pTPInfo->pDest += (pTPInfo->cbDestScan * cScan) \
pTPInfo->cbDestScan = -pTBInfo->cbDestScan; \
pTPInfo->pSrc += (pTPInfo->cbSrcScan * (pTPInfo->cySrc - 1)); \
pTPInfo->cbSrcScan = -pTBInfo->cbSrcScan; \
}
#define ROTLEFT_8BPP_TPINFO(pTPInfo) _RL_TPI((pTPInfo), 0)
#define ROTLEFT_4BPP_TPINFO(pTPInfo) _RL_TPI((pTPInfo), 1)
#define ROTLEFT_1BPP_TPINFO(pTPInfo) _RL_TPI((pTPInfo), 7)
//
// Function prototypes exported by transpos.c
//
BOOL
TransPos8BPP(
PTPINFO pTPInfo
);
BOOL
TransPos4BPP(
PTPINFO pTPInfo
);
BOOL
TransPos1BPP(
PTPINFO pTPInfo
);
#endif // _TRANSPOS_