/reactos/sdk/lib/3rdparty/freetype/src/base/ |
H A D | ftbitmap.c | 61 FT_Int pitch; in FT_Bitmap_Copy() local 83 target->pitch = -target->pitch; in FT_Bitmap_Copy() 89 pitch = source->pitch; in FT_Bitmap_Copy() 91 if ( pitch < 0 ) in FT_Bitmap_Copy() 92 pitch = -pitch; in FT_Bitmap_Copy() 136 s += pitch; in FT_Bitmap_Copy() 137 t -= pitch; in FT_Bitmap_Copy() 165 pitch = (unsigned int)FT_ABS( bitmap->pitch ); in ft_bitmap_assure_buffer() 208 for ( ; count > 0; count--, line += pitch, end += pitch ) in ft_bitmap_assure_buffer() 369 pitch = bitmap->pitch; in FT_Bitmap_Embolden() [all …]
|
H A D | ftlcdfil.c | 75 FT_Int pitch = bitmap->pitch; in ft_lcd_filter_fir() local 80 if ( pitch > 0 ) in ft_lcd_filter_fir() 81 origin += pitch * (FT_Int)( height - 1 ); in ft_lcd_filter_fir() 143 col -= pitch; in ft_lcd_filter_fir() 150 col -= pitch; in ft_lcd_filter_fir() 181 FT_Int pitch = bitmap->pitch; in _ft_lcd_filter_legacy() local 195 if ( pitch > 0 ) in _ft_lcd_filter_legacy() 196 origin += pitch * (FT_Int)( height - 1 ); in _ft_lcd_filter_legacy() 243 FT_Byte* col = column - 2 * pitch; in _ft_lcd_filter_legacy() 257 p = col[pitch]; in _ft_lcd_filter_legacy() [all …]
|
H A D | ftobjs.c | 347 FT_Pos width, height, pitch; in ft_glyphslot_preset_bitmap() local 437 pitch = ( ( width + 15 ) >> 4 ) << 1; in ft_glyphslot_preset_bitmap() 442 pitch = FT_PAD_CEIL( width, 4 ); in ft_glyphslot_preset_bitmap() 451 pitch = width; in ft_glyphslot_preset_bitmap() 461 bitmap->pitch = pitch; in ft_glyphslot_preset_bitmap() 507 slot->bitmap.pitch = 0; in ft_glyphslot_clear() 4565 int pitch = bitmap.pitch; in FT_Render_Glyph_Internal() local 4572 for ( j = 0; j < pitch; j++ ) in FT_Render_Glyph_Internal() 4605 int pitch = slot->bitmap.pitch; in FT_Render_Glyph_Internal() local 4609 if ( pitch < 0 ) in FT_Render_Glyph_Internal() [all …]
|
/reactos/sdk/lib/3rdparty/freetype/src/cache/ |
H A D | ftcsbits.c | 48 FT_Int pitch = bitmap->pitch; in ftc_sbit_copy_bitmap() local 52 if ( pitch < 0 ) in ftc_sbit_copy_bitmap() 53 pitch = -pitch; in ftc_sbit_copy_bitmap() 55 size = (FT_ULong)pitch * bitmap->rows; in ftc_sbit_copy_bitmap() 160 !CHECK_CHAR( bitmap->pitch ) || in ftc_snode_load() 173 sbit->pitch = (FT_Char)bitmap->pitch; in ftc_snode_load() 287 FT_Int pitch; in ftc_snode_weight() local 302 pitch = sbit->pitch; in ftc_snode_weight() 303 if ( pitch < 0 ) in ftc_snode_weight() 304 pitch = -pitch; in ftc_snode_weight() [all …]
|
H A D | ftcimage.c | 126 size = bitg->bitmap.rows * (FT_Offset)FT_ABS( bitg->bitmap.pitch ) + in ftc_inode_weight()
|
/reactos/sdk/lib/3rdparty/freetype/src/smooth/ |
H A D | ftsmooth.c | 136 if ( FT_ALLOC_MULT( bitmap->buffer, bitmap->rows, bitmap->pitch ) ) in ft_smooth_render_generic() 236 int pitch = bitmap->pitch; in ft_smooth_render_generic() local 268 if ( FT_ALLOC( temp, (FT_ULong)pitch ) ) in ft_smooth_render_generic() 273 line = bitmap->buffer + i * (FT_ULong)pitch; in ft_smooth_render_generic() 280 FT_MEM_COPY( line, temp, pitch ); in ft_smooth_render_generic() 287 int pitch = bitmap->pitch; in ft_smooth_render_generic() local 292 bitmap->pitch *= 3; in ft_smooth_render_generic() 295 bitmap->buffer += pitch; in ft_smooth_render_generic() 303 bitmap->buffer += pitch; in ft_smooth_render_generic() 311 bitmap->buffer -= 2 * pitch; in ft_smooth_render_generic() [all …]
|
H A D | ftgrays.c | 426 int pitch; /* pitch to go down one row */ member 1272 unsigned char* q = ras.target.origin - ras.target.pitch * y + x; in gray_hline() 1904 if ( target_map->pitch < 0 ) in gray_raster_render() 1908 + ( target_map->rows - 1 ) * (unsigned int)target_map->pitch; in gray_raster_render() 1910 ras.target.pitch = target_map->pitch; in gray_raster_render()
|
/reactos/sdk/lib/3rdparty/freetype/src/pfr/ |
H A D | pfrsbit.c | 41 FT_Int pitch; /* line size in bytes */ member 55 writer->pitch = target->pitch; in pfr_bitwriter_init() 62 writer->line += writer->pitch * (FT_Int)( target->rows - 1 ); in pfr_bitwriter_init() 63 writer->pitch = -writer->pitch; in pfr_bitwriter_init() 104 writer->line += writer->pitch; in pfr_bitwriter_decode_bytes() 183 writer->line += writer->pitch; in pfr_bitwriter_decode_rle1() 249 writer->line += writer->pitch; in pfr_bitwriter_decode_rle2() 762 glyph->root.bitmap.pitch = (FT_Int)( xsize + 7 ) >> 3; in pfr_slot_load_bitmap() 784 FT_ULong len = (FT_ULong)glyph->root.bitmap.pitch * ysize; in pfr_slot_load_bitmap()
|
/reactos/sdk/lib/3rdparty/freetype/src/sfnt/ |
H A D | ttsbit.c | 604 map->pitch = (int)( map->width ); in tt_sbit_decoder_alloc_bitmap() 610 map->pitch = (int)( map->width * 4 ); in tt_sbit_decoder_alloc_bitmap() 619 size = map->rows * (FT_ULong)map->pitch; in tt_sbit_decoder_alloc_bitmap() 716 FT_Int pitch, width, height, line_bits, h; in tt_sbit_decoder_load_byte_aligned() local 727 pitch = bitmap->pitch; in tt_sbit_decoder_load_byte_aligned() 752 line += y_pos * pitch + ( x_pos >> 3 ); in tt_sbit_decoder_load_byte_aligned() 757 for ( h = height; h > 0; h--, line += pitch ) in tt_sbit_decoder_load_byte_aligned() 870 pitch = bitmap->pitch; in tt_sbit_decoder_load_bit_aligned() 903 line += y_pos * pitch + ( x_pos >> 3 ); in tt_sbit_decoder_load_bit_aligned() 910 for ( h = height; h > 0; h--, line += pitch ) in tt_sbit_decoder_load_bit_aligned() [all …]
|
H A D | pngshim.c | 336 map->pitch = (int)( map->width * 4 ); in Load_SBit_Png() 417 FT_ULong size = map->rows * (FT_ULong)map->pitch; in Load_SBit_Png() 432 rows[i] = map->buffer + ( y_offset + i ) * map->pitch + x_offset * 4; in Load_SBit_Png()
|
/reactos/sdk/lib/3rdparty/freetype/src/winfonts/ |
H A D | winfnt.c | 1078 FT_UInt pitch = ( bitmap->width + 7 ) >> 3; in FNT_Load_Glyph() local 1083 bitmap->pitch = (int)pitch; in FNT_Load_Glyph() 1084 if ( !pitch || in FNT_Load_Glyph() 1085 offset + pitch * bitmap->rows > font->header.file_size ) in FNT_Load_Glyph() 1094 if ( FT_ALLOC_MULT( bitmap->buffer, bitmap->rows, pitch ) ) in FNT_Load_Glyph() 1099 for ( ; pitch > 0; pitch--, column++ ) in FNT_Load_Glyph() 1104 for ( write = column; p < limit; p++, write += bitmap->pitch ) in FNT_Load_Glyph()
|
/reactos/sdk/lib/3rdparty/freetype/src/pcf/ |
H A D | pcfdrivr.c | 530 bitmap->pitch = (int)( ( bitmap->width + 7 ) >> 3 ); in PCF_Glyph_Load() 534 bitmap->pitch = (int)( ( ( bitmap->width + 15 ) >> 4 ) << 1 ); in PCF_Glyph_Load() 538 bitmap->pitch = (int)( ( ( bitmap->width + 31 ) >> 5 ) << 2 ); in PCF_Glyph_Load() 542 bitmap->pitch = (int)( ( ( bitmap->width + 63 ) >> 6 ) << 3 ); in PCF_Glyph_Load() 568 bytes = (FT_ULong)bitmap->pitch * bitmap->rows; in PCF_Glyph_Load()
|
/reactos/sdk/lib/3rdparty/freetype/src/raster/ |
H A D | ftraster.c | 2179 Long pitch = ras.target.pitch; in Vertical_Sweep_Init() local 2184 ras.traceIncr = (Short)-pitch; in Vertical_Sweep_Init() 2185 ras.traceOfs = -*min * pitch; in Vertical_Sweep_Init() 2186 if ( pitch > 0 ) in Vertical_Sweep_Init() 2187 ras.traceOfs += (Long)( ras.target.rows - 1 ) * pitch; in Vertical_Sweep_Init() 2493 p = bits - e1 * ras.target.pitch; in Horizontal_Sweep_Span() 2495 if ( ras.target.pitch > 0 ) in Horizontal_Sweep_Span() 2603 bits -= e1 * ras.target.pitch; in Horizontal_Sweep_Drop() 2604 if ( ras.target.pitch > 0 ) in Horizontal_Sweep_Drop() 2624 bits -= e1 * ras.target.pitch; in Horizontal_Sweep_Drop() [all …]
|
H A D | ftrend1.c | 134 if ( FT_ALLOC_MULT( bitmap->buffer, bitmap->rows, bitmap->pitch ) ) in ft_raster1_render()
|
/reactos/modules/rostests/winetests/d3dx9_36/ |
H A D | surface.c | 428 DWORD pitch; in test_dds_header_handling() member 544 dds->header.pitch_or_linear_size = tests[i].pitch; in test_dds_header_handling() 1635 DWORD pitch = sizeof(pixels) / 2; in test_D3DXSaveSurfaceToFile() local 1651 pitch, NULL, &rect, D3DX_FILTER_NONE, 0); in test_D3DXSaveSurfaceToFile() 1669 ok(!memcmp(lock_rect.pBits, pixels, pitch), in test_D3DXSaveSurfaceToFile() 1671 ok(!memcmp((BYTE *)lock_rect.pBits + lock_rect.Pitch, pixels + pitch, pitch), in test_D3DXSaveSurfaceToFile() 1686 ok(!memcmp(lock_rect.pBits, pixels + pitch, pitch), in test_D3DXSaveSurfaceToFile() 1688 ok(!memcmp((BYTE *)lock_rect.pBits + lock_rect.Pitch, pixels + pitch, pitch), in test_D3DXSaveSurfaceToFile() 1694 pitch, NULL, &rect, D3DX_FILTER_NONE, 0); in test_D3DXSaveSurfaceToFile() 1722 ok(!memcmp(lock_rect.pBits, pixels, pitch), in test_D3DXSaveSurfaceToFile() [all …]
|
H A D | texture.c | 1101 DWORD value, expected, size, pitch; in test_D3DXFillTexture() local 1133 pitch = lock_rect.Pitch / sizeof(DWORD); in test_D3DXFillTexture() 1194 pitch = lock_rect.Pitch / sizeof(WORD); in test_D3DXFillTexture() 1199 value = ((WORD *)lock_rect.pBits)[y * pitch + x]; in test_D3DXFillTexture() 1236 pitch = lock_rect.Pitch / sizeof(WORD); in test_D3DXFillTexture() 1239 WORD *ptr = (WORD *)lock_rect.pBits + y * pitch; in test_D3DXFillTexture() 1277 pitch = lock_rect.Pitch / sizeof(float); in test_D3DXFillTexture() 1280 float *ptr = (float *)lock_rect.pBits + y * pitch; in test_D3DXFillTexture() 1372 DWORD value, expected, size, pitch; in test_D3DXFillCubeTexture() local 1400 pitch = lock_rect.Pitch / sizeof(DWORD); in test_D3DXFillCubeTexture() [all …]
|
/reactos/dll/directx/wine/d3dx9_36/ |
H A D | surface.c | 453 UINT *pitch, UINT *size) in calculate_dds_surface_size() argument 461 *pitch = format_desc->block_byte_count in calculate_dds_surface_size() 463 *size = *pitch in calculate_dds_surface_size() 468 *pitch = width * format_desc->bytes_per_pixel; in calculate_dds_surface_size() 469 *size = *pitch * height; in calculate_dds_surface_size() 482 UINT pitch, size = 0; in calculate_dds_file_size() local 483 calculate_dds_surface_size(format, width, height, &pitch, &size); in calculate_dds_file_size() 1337 DWORD pitch; in D3DXLoadSurfaceFromFileInMemory() local 1341 pitch = formatdesc->bytes_per_pixel * wicrect.Width; in D3DXLoadSurfaceFromFileInMemory() 1342 buffer = HeapAlloc(GetProcessHeap(), 0, pitch * wicrect.Height); in D3DXLoadSurfaceFromFileInMemory() [all …]
|
H A D | math.c | 667 D3DXMATRIX * WINAPI D3DXMatrixRotationYawPitchRoll(D3DXMATRIX *out, FLOAT yaw, FLOAT pitch, FLOAT r… in D3DXMatrixRotationYawPitchRoll() argument 671 TRACE("out %p, yaw %f, pitch %f, roll %f\n", out, yaw, pitch, roll); in D3DXMatrixRotationYawPitchRoll() 675 spitch = sinf(pitch); in D3DXMatrixRotationYawPitchRoll() 676 cpitch = cosf(pitch); in D3DXMatrixRotationYawPitchRoll() 1479 … WINAPI D3DXQuaternionRotationYawPitchRoll(D3DXQUATERNION *out, FLOAT yaw, FLOAT pitch, FLOAT roll) in D3DXQuaternionRotationYawPitchRoll() argument 1483 TRACE("out %p, yaw %f, pitch %f, roll %f\n", out, yaw, pitch, roll); in D3DXQuaternionRotationYawPitchRoll() 1487 spitch = sinf(pitch / 2.0f); in D3DXQuaternionRotationYawPitchRoll() 1488 cpitch = cosf(pitch / 2.0f); in D3DXQuaternionRotationYawPitchRoll()
|
/reactos/modules/rostests/apitests/atl/ |
H A D | CImage.cpp | 151 INT pitch = (bTopDown ? bm.bmWidthBytes : -bm.bmWidthBytes); in Test_DIBSectionEntry() local 191 ok(image1.GetPitch() == pitch, "Line %d: %d vs %d\n", iLine, image1.GetPitch(), pitch); in Test_DIBSectionEntry()
|
/reactos/sdk/lib/3rdparty/freetype/include/freetype/ |
H A D | ftcache.h | 881 FT_Short pitch; member
|
H A D | ftimage.h | 265 int pitch; member
|
/reactos/win32ss/gdi/ntgdi/ |
H A D | freetype.c | 4454 DWORD width, height, pitch, needed = 0; in ftGdiGetGlyphOutline() local 4712 pitch = ((width + 31) >> 5) << 2; in ftGdiGetGlyphOutline() 4713 needed = pitch * height; in ftGdiGetGlyphOutline() 4731 dst += pitch; in ftGdiGetGlyphOutline() 4740 ft_bitmap.pitch = pitch; in ftGdiGetGlyphOutline() 4774 pitch = (width + 3) / 4 * 4; in ftGdiGetGlyphOutline() 4775 needed = pitch * height; in ftGdiGetGlyphOutline() 4791 for (x = 0; (UINT)x < pitch; x++) in ftGdiGetGlyphOutline() 4799 dst += pitch; in ftGdiGetGlyphOutline() 4807 ft_bitmap.pitch = pitch; in ftGdiGetGlyphOutline() [all …]
|
/reactos/sdk/include/dxsdk/ |
H A D | d3dx9math.h | 315 D3DXMATRIX* WINAPI D3DXMatrixRotationYawPitchRoll(D3DXMATRIX *pout, FLOAT yaw, FLOAT pitch, FLOAT r… 341 …INAPI D3DXQuaternionRotationYawPitchRoll(D3DXQUATERNION *pout, FLOAT yaw, FLOAT pitch, FLOAT roll);
|
/reactos/dll/directx/wine/wined3d/ |
H A D | texture.c | 1358 UINT multisample_quality, void *mem, UINT pitch) argument 1371 …ure, width, height, debug_d3dformat(format_id), multisample_type, multisample_quality, mem, pitch); 1407 if (pitch % texture->resource.format->byte_count) 1428 if ((texture->row_pitch = pitch)) 1429 texture->slice_pitch = height * pitch;
|
/reactos/dll/directx/wine/ddraw/ |
H A D | surface.c | 4554 UINT pitch, width, height; in ddraw_surface7_SetSurfaceDesc() local 4610 pitch = DDSD->u1.lPitch; in ddraw_surface7_SetSurfaceDesc() 4620 pitch = This->surface_desc.u1.lPitch; in ddraw_surface7_SetSurfaceDesc() 4662 format_id, WINED3D_MULTISAMPLE_NONE, 0, DDSD->lpSurface, pitch))) in ddraw_surface7_SetSurfaceDesc() 5802 unsigned int pitch = 0; in ddraw_surface_create() local 6226 pitch = desc->u1.lPitch; in ddraw_surface_create() 6350 WINED3D_MULTISAMPLE_NONE, 0, desc->lpSurface, pitch))) in ddraw_surface_create()
|