#include <win32k.h>
#include <debug.h>
Go to the source code of this file.
|
FORCEINLINE VOID | MulAdd (PFLOATOBJ pfoDest, PFLOATOBJ pfo1, PFLOATOBJ pfo2, PFLOATOBJ pfo3, PFLOATOBJ pfo4) |
|
FORCEINLINE VOID | MulAddLong (PFLOATOBJ pfoDest, PFLOATOBJ pfo1, LONG l2, PFLOATOBJ pfo3, LONG l4) |
|
FORCEINLINE VOID | MulSub (PFLOATOBJ pfoDest, PFLOATOBJ pfo1, PFLOATOBJ pfo2, PFLOATOBJ pfo3, PFLOATOBJ pfo4) |
|
FORCEINLINE ULONG | HintFromAccel (ULONG flAccel) |
|
ULONG FASTCALL | MX_UpdateAccel (IN OUT PMATRIX pmx) |
|
ULONG NTAPI | XFORMOBJ_UpdateAccel (IN OUT XFORMOBJ *pxo) |
|
ULONG NTAPI | XFORMOBJ_iSetXform (IN OUT XFORMOBJ *pxo, IN const XFORML *pxform) |
|
ULONG NTAPI | XFORMOBJ_iCombine (IN OUT XFORMOBJ *pxo, IN XFORMOBJ *pxo1, IN XFORMOBJ *pxo2) |
|
ULONG NTAPI | XFORMOBJ_iCombineXform (IN OUT XFORMOBJ *pxo, IN XFORMOBJ *pxo1, IN XFORML *pxform, IN BOOL bLeftMultiply) |
|
BOOL FASTCALL | MX_IsInvertible (IN PMATRIX pmx) |
|
VOID FASTCALL | MX_Set0 (OUT PMATRIX pmx) |
|
ULONG NTAPI | XFORMOBJ_iInverse (OUT XFORMOBJ *pxoDst, IN XFORMOBJ *pxoSrc) |
|
static BOOL NTAPI | XFORMOBJ_bXformFixPoints (_In_ XFORMOBJ *pxo, _In_ ULONG cPoints, _In_reads_(cPoints) PPOINTL pptIn, _Out_writes_(cPoints) PPOINTL pptOut) |
| Transforms fix-point coordinates in an array of POINTL structures using the transformation matrix from the XFORMOBJ.
|
|
ULONG APIENTRY | XFORMOBJ_iGetXform (IN XFORMOBJ *pxo, OUT XFORML *pxform) |
|
ULONG APIENTRY | XFORMOBJ_iGetFloatObjXform (IN XFORMOBJ *pxo, OUT FLOATOBJ_XFORM *pxfo) |
|
BOOL APIENTRY | XFORMOBJ_bApplyXform (IN XFORMOBJ *pxo, IN ULONG iMode, IN ULONG cPoints, IN PVOID pvIn, OUT PVOID pvOut) |
|
◆ DOES_VALUE_OVERFLOW_LONG
◆ NDEBUG
◆ HintFromAccel()
◆ MulAdd()
Inline helper functions
Definition at line 26 of file xformobj.c.
32{
34
35 *pfoDest = *pfo1;
37 foTmp = *pfo3;
40}
#define FLOATOBJ_Add(pf, pf1)
#define FLOATOBJ_Mul(pf, pf1)
Referenced by XFORMOBJ_iCombine().
◆ MulAddLong()
◆ MulSub()
◆ MX_IsInvertible()
◆ MX_Set0()
◆ MX_UpdateAccel()
Internal functions
Definition at line 108 of file xformobj.c.
109{
110
113
114 pmx->flAccel = 0;
115
118 {
120 }
121
124 {
126 }
127
130 {
132 }
133
136 {
138 }
139
141}
#define FLOATOBJ_IsLong(pf)
#define FLOATOBJ_GetFix(pf)
#define FLOATOBJ_Equal1(pf)
Referenced by XFORMOBJ_iSetXform(), and XFORMOBJ_UpdateAccel().
◆ XFORMOBJ_bApplyXform()
Definition at line 664 of file xformobj.c.
670{
675
676
677 if (!
pxo || !pvIn || !pvOut || cPoints < 1)
678 {
680 }
681
682
684 {
687 {
689 }
691 }
692
693
695 {
696 pptlIn = pvIn;
697 pptlOut = pvOut;
698 for (
i = cPoints - 1;
i >= 0;
i--)
699 {
702 }
703
704
705 pvIn = pvOut;
706 }
707
708
710 {
712 }
713
714
716 {
717 pptlOut = pvOut;
718 for (
i = cPoints - 1;
i >= 0;
i--)
719 {
722 }
723 }
724
726}
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_In_ XLATEOBJ _In_ XFORMOBJ * pxo
◆ XFORMOBJ_bXformFixPoints()
Transforms fix-point coordinates in an array of POINTL structures using the transformation matrix from the XFORMOBJ.
- Parameters
-
pxo | - Pointer to the XFORMOBJ |
cPoints | - Number of coordinates to transform |
pptIn | - Pointer to an array of POINTL structures containing the source coordinates. |
pptOut | - Pointer to an array of POINTL structures, receiving the transformed coordinates. Can be the same as pptIn. |
- Returns
- TRUE if the operation was successful, FALSE if any of the calculations caused an integer overflow.
- Note
- If the function returns FALSE, it might still have written to the output buffer. If pptIn and pptOut are equal, the source coordinates might have been partly overwritten!
Definition at line 365 of file xformobj.c.
370{
375 LONG lM11, lM12, lM21, lM22, lTemp;
377
380
382 {
383
385 }
387 {
389 {
390
393 {
396 }
397
399 do
400 {
401
404 {
406 }
407
408
411 {
413 }
414
415
418 }
420 }
422 {
423
426 {
429 }
430
432 do
433 {
434
437 {
439 }
440
441
444 {
446 }
447
448
451 }
453 }
454 else
455 {
456
461 {
464 }
465
467 do
468 {
469
473 {
475 }
476
477
481 {
483 }
484
485
488 }
490 }
491 }
493 {
494
496 do
497 {
498
502 {
504 }
507 {
509 }
510
511
515 {
517 }
520 {
522 }
523
524
527 }
529 }
531 {
532
534 do
535 {
539 {
541 }
542
546 {
548 }
549 }
551 }
552 else
553 {
554
556 do
557 {
558
560
561
563
565 {
567 }
568
570 {
572 }
573 }
575 }
576
578 {
579
581 do
582 {
585 {
587 }
589
592 {
594 }
596 }
598 }
599
601}
#define FLOATOBJ_bConvertToLong(pf, pl)
#define Int32x32To64(a, b)
_In_ UINT _Out_ PPOINTL pptOut
#define RtlCopyMemory(Destination, Source, Length)
Referenced by XFORMOBJ_bApplyXform().
◆ XFORMOBJ_iCombine()
Definition at line 211 of file xformobj.c.
215{
218
219
222
223
232
233
235 *pmx = mx;
236
237
239}
◆ XFORMOBJ_iCombineXform()
Definition at line 244 of file xformobj.c.
249{
252
255
256 if (bLeftMultiply)
257 {
259 }
260 else
261 {
263 }
264}
◆ XFORMOBJ_iGetFloatObjXform()
Definition at line 636 of file xformobj.c.
639{
641
642
644 {
646 }
647
648
649 pxfo->eM11 = pmx->
efM11;
650 pxfo->eM12 = pmx->
efM12;
651 pxfo->eM21 = pmx->
efM21;
652 pxfo->eM22 = pmx->
efM22;
653 pxfo->eDx = pmx->
efDx;
654 pxfo->eDy = pmx->
efDy;
655
656
658}
◆ XFORMOBJ_iGetXform()
Public functions
Definition at line 608 of file xformobj.c.
611{
613
614
616 {
618 }
619
620
627
628
630}
#define FLOATOBJ_GetFloat(pf)
◆ XFORMOBJ_iInverse()
Definition at line 291 of file xformobj.c.
294{
298
301
303
304
306
308 {
309
311 }
312
313
318
319
325
326
330
331
335
336
338}
#define FLOATOBJ_Div(pf, pf1)
◆ XFORMOBJ_iSetXform()
Definition at line 156 of file xformobj.c.
159{
163
164
166
167
174
175
177
178
180 {
182 {
184 }
185 }
187 {
189 {
191 }
192 }
193
194
196 *pmx = mxTemp;
197
198 return Hint;
199}
#define FLOATOBJ_SetFloat(pf, f)
◆ XFORMOBJ_UpdateAccel()