508 {
511
514
515
517 return FT_THROW( Invalid_Library_Handle );
518
520 return FT_THROW( Invalid_Argument );
521
523
524 switch (
source->pixel_mode )
525 {
533 {
534 FT_Int pad, old_target_pitch, target_pitch;
536
537
538 old_target_pitch =
target->pitch;
539 if ( old_target_pitch < 0 )
540 old_target_pitch = -old_target_pitch;
541
543
547
548 pad = 0;
549 if ( alignment > 0 )
550 {
553 pad = alignment - pad;
554 }
555
557
558 if ( target_pitch > 0 &&
560 return FT_THROW( Invalid_Argument );
561
565
566 target->pitch =
target->pitch < 0 ? -target_pitch : target_pitch;
567 }
568 break;
569
570 default:
572 }
573
576
577
582
583 switch (
source->pixel_mode )
584 {
586 {
588
589
591
593 {
597
598
599
600 for (
j =
source->width >> 3;
j > 0;
j-- )
601 {
603
604#ifdef __REACTOS__
605 tt[0] = (
FT_Byte)( (
val & 0x80 ) ? 0xff : 0);
606 tt[1] = (
FT_Byte)( (
val & 0x40 ) ? 0xff : 0);
607 tt[2] = (
FT_Byte)( (
val & 0x20 ) ? 0xff : 0);
608 tt[3] = (
FT_Byte)( (
val & 0x10 ) ? 0xff : 0);
609 tt[4] = (
FT_Byte)( (
val & 0x08 ) ? 0xff : 0);
610 tt[5] = (
FT_Byte)( (
val & 0x04 ) ? 0xff : 0);
611 tt[6] = (
FT_Byte)( (
val & 0x02 ) ? 0xff : 0);
612 tt[7] = (
FT_Byte)( (
val & 0x01 ) ? 0xff : 0);
613#else
622#endif
623
624 tt += 8;
626 }
627
628
631 {
633
634
636 {
637#ifdef __REACTOS__
638 tt[0] = (
FT_Byte)( (
val & 0x80 ) ? 0xff : 0);
639#else
641#endif
643 tt += 1;
644 }
645 }
646
649 }
650 }
651 break;
652
653
657 {
660
661
663
665 {
667
670 }
671 }
672 break;
673
674
676 {
678
679
681
683 {
687
688
689
690 for (
j =
source->width >> 2;
j > 0;
j-- )
691 {
693
694
699
701 tt += 4;
702 }
703
706 {
708
709
711 {
714 tt += 1;
715 }
716 }
717
720 }
721 }
722 break;
723
724
726 {
728
729
731
733 {
737
738
739
740 for (
j =
source->width >> 1;
j > 0;
j-- )
741 {
743
744
747
749 tt += 2;
750 }
751
753 tt[0] = (
FT_Byte)( (
ss[0] & 0xF0 ) >> 4 );
754
757 }
758 }
759 break;
760
761
763 {
765
766
768
770 {
774
775
777 {
779
781 tt += 1;
782 }
783
786 }
787 }
788 break;
789
790 default:
791 ;
792 }
793
795 }
static FT_Byte ft_gray_for_premultiplied_srgb_bgra(const FT_Byte *bgra)
#define FT_QREALLOC(ptr, cursz, newsz)
#define FT_ARRAY_COPY(dest, source, count)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
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
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 GLint GLint j
static char memory[1024 *256]