w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ppmtogif.c File Reference
#include "ppm.h"
#include "ppmcmap.h"
#include <ctype.h>
Include dependency graph for ppmtogif.c:

Go to the source code of this file.

Macros

#define MAXCOLORS   256
 
#define TRUE   1
 
#define FALSE   0
 
#define BITS   12
 
#define HSIZE   5003 /* 80% occupancy */
 
#define ARGVAL()   (*++(*argv) || (--argc && *++argv))
 
#define MAXCODE(n_bits)   (((code_int) 1 << (n_bits)) - 1)
 
#define HashTabOf(i)   htab[i]
 
#define CodeTabOf(i)   codetab[i]
 
#define tab_prefixof(i)   CodeTabOf(i)
 
#define tab_suffixof(i)   ((char_type*)(htab))[i]
 
#define de_stack   ((char_type*)&tab_suffixof((code_int)1<<BITS))
 

Typedefs

typedef int(* ifunptr) ()
 
typedef int code_int
 
typedef long int count_int
 
typedef unsigned char char_type
 

Functions

static int colorstobpp ()
 
static int GetPixel ()
 
static void BumpPixel ()
 
static int GIFNextPixel ()
 
static void GIFEncode ()
 
static void Putword ()
 
static void compress ()
 
static void output ()
 
static void cl_block ()
 
static void cl_hash ()
 
static void writeerr ()
 
static void char_init ()
 
static void char_out ()
 
static void flush_char ()
 
static int sqr ()
 
static int closestcolor ()
 
int main (int argc, argv)
 
static int colorstobpp (int colors)
 
static int sqr (int x)
 
static int closestcolor (pixel color)
 
static int GetPixel (int x, int y)
 
static int GIFNextPixel (ifunptr getpixel)
 
static void GIFEncode (FILE *fp, int GWidth, int GHeight, int GInterlace, int Background, int Transparent, int BitsPerPixel, Red, Green, Blue, ifunptr GetPixel)
 
static void Putword (int w, FILE *fp)
 
static void compress (int init_bits, FILE *outfile, ifunptr ReadValue)
 
static void output (code_int code)
 
static void cl_hash (count_int hsize)
 
static void char_out (int c)
 

Variables

int Red [256]
 
int Green [256]
 
int Blue [256]
 
int perm [256]
 
int permi [256]
 
int colors
 
pixval maxtmp
 
static pixel ** pixels
 
static colorhash_table cht
 
static int Width
 
static int Height
 
static int curx
 
static int cury
 
static long CountDown
 
static int Pass = 0
 
static int Interlace
 
static int n_bits
 
static int maxbits = 12
 
static code_int maxcode
 
static code_int maxmaxcode = (code_int)1 << 12
 
static count_int htab [5003]
 
static unsigned short codetab [5003]
 
static code_int hsize = 5003
 
static code_int free_ent = 0
 
static int clear_flg = 0
 
static int offset
 
static long int in_count = 1
 
static long int out_count = 0
 
static int g_init_bits
 
static FILEg_outfile
 
static int ClearCode
 
static int EOFCode
 
static unsigned long cur_accum = 0
 
static int cur_bits = 0
 
static unsigned long masks []
 
static int a_count
 
static char accum [256]
 

Macro Definition Documentation

◆ ARGVAL

#define ARGVAL ( )    (*++(*argv) || (--argc && *++argv))

Definition at line 602 of file ppmtogif.c.

◆ BITS

#define BITS   12

GIFCOMPR.C - GIF Image compression routines

Lempel-Ziv compression based on 'compress'. GIF modifications by David Rowley (mgard.nosp@m.i@wa.nosp@m.tdcsu.nosp@m..wat.nosp@m.erloo.nosp@m..edu)

Definition at line 576 of file ppmtogif.c.

◆ CodeTabOf

#define CodeTabOf (   i)    codetab[i]

Definition at line 617 of file ppmtogif.c.

◆ de_stack

#define de_stack   ((char_type*)&tab_suffixof((code_int)1<<BITS))

Definition at line 632 of file ppmtogif.c.

◆ FALSE

#define FALSE   0

Definition at line 297 of file ppmtogif.c.

◆ HashTabOf

#define HashTabOf (   i)    htab[i]

Definition at line 616 of file ppmtogif.c.

◆ HSIZE

#define HSIZE   5003 /* 80% occupancy */

Definition at line 578 of file ppmtogif.c.

◆ MAXCODE

#define MAXCODE (   n_bits)    (((code_int) 1 << (n_bits)) - 1)

Definition at line 611 of file ppmtogif.c.

◆ MAXCOLORS

#define MAXCOLORS   256

Definition at line 26 of file ppmtogif.c.

◆ tab_prefixof

#define tab_prefixof (   i)    CodeTabOf(i)

Definition at line 630 of file ppmtogif.c.

◆ tab_suffixof

#define tab_suffixof (   i)    ((char_type*)(htab))[i]

Definition at line 631 of file ppmtogif.c.

◆ TRUE

#define TRUE   1

GIFENCODE.C - GIF Image compression interface

GIFEncode( FName, GHeight, GWidth, GInterlace, Background, Transparent, BitsPerPixel, Red, Green, Blue, GetPixel )

Definition at line 296 of file ppmtogif.c.

Typedef Documentation

◆ char_type

typedef unsigned char char_type

Definition at line 583 of file ppmtogif.c.

◆ code_int

typedef int code_int

Definition at line 36 of file ppmtogif.c.

◆ count_int

typedef long int count_int

Definition at line 42 of file ppmtogif.c.

◆ ifunptr

typedef int(* ifunptr) ()

Definition at line 31 of file ppmtogif.c.

Function Documentation

◆ BumpPixel()

static void BumpPixel ( )
static

Definition at line 309 of file ppmtogif.c.

References curx, cury, Height, Interlace, Pass, and Width.

Referenced by GIFNextPixel().

◆ char_init()

static void char_init ( )
static

Definition at line 921 of file ppmtogif.c.

References a_count.

Referenced by compress().

◆ char_out() [1/2]

static void char_out ( )
static

Referenced by output().

◆ char_out() [2/2]

static void char_out ( int  c)
static

Definition at line 936 of file ppmtogif.c.

References a_count, accum, c, and flush_char().

◆ cl_block()

static void cl_block ( )
static

Definition at line 855 of file ppmtogif.c.

References cl_hash(), clear_flg, ClearCode, free_ent, hsize, and output().

Referenced by compress().

◆ cl_hash() [1/2]

static void cl_hash ( )
static

Referenced by cl_block(), and compress().

◆ cl_hash() [2/2]

static void cl_hash ( count_int  hsize)
static

Definition at line 866 of file ppmtogif.c.

References hsize, htab, and i.

◆ closestcolor() [1/2]

static int closestcolor ( )
static

Referenced by GetPixel(), and main().

◆ closestcolor() [2/2]

static int closestcolor ( pixel  color)
static

Definition at line 251 of file ppmtogif.c.

References b, Blue, cht, colors, d, dmin, g, Green, i, imin(), int(), maxtmp, permi, ppm_addtocolorhash(), PPM_GETB, PPM_GETG, PPM_GETR, r, Red, and sqr().

◆ colorstobpp() [1/2]

static int colorstobpp ( )
static

Referenced by main().

◆ colorstobpp() [2/2]

static int colorstobpp ( int  colors)
static

Definition at line 214 of file ppmtogif.c.

References bpp, colors, and pm_error.

◆ compress() [1/2]

static void compress ( )
static

Referenced by GIFEncode().

◆ compress() [2/2]

static void compress ( int  init_bits,
FILE outfile,
ifunptr  ReadValue 
)
static

◆ flush_char()

static void flush_char ( )
static

Definition at line 948 of file ppmtogif.c.

References a_count, accum, fwrite(), and g_outfile.

Referenced by char_out(), and output().

◆ GetPixel() [1/2]

static int GetPixel ( )
static

Referenced by GIFEncode(), and main().

◆ GetPixel() [2/2]

static int GetPixel ( int  x,
int  y 
)
static

Definition at line 273 of file ppmtogif.c.

References cht, closestcolor(), perm, ppm_lookupcolor(), cordic::x, and y.

◆ GIFEncode() [1/2]

static void GIFEncode ( )
static

Referenced by main().

◆ GIFEncode() [2/2]

static void GIFEncode ( FILE fp,
int  GWidth,
int  GHeight,
int  GInterlace,
int  Background,
int  Transparent,
int  BitsPerPixel,
Red  ,
Green  ,
Blue  ,
ifunptr  GetPixel 
)
static

Definition at line 385 of file ppmtogif.c.

References B, Background, Blue, compress(), CountDown, curx, cury, fclose, fp, fwrite(), GetPixel(), Green, Height, i, Interlace, Putword(), Red, and Width.

◆ GIFNextPixel() [1/2]

static int GIFNextPixel ( )
static

Referenced by compress().

◆ GIFNextPixel() [2/2]

static int GIFNextPixel ( ifunptr  getpixel)
static

Definition at line 365 of file ppmtogif.c.

References BumpPixel(), CountDown, curx, cury, EOF, and r.

◆ main()

◆ output() [1/2]

static void output ( )
static

Definition at line 100 of file dvi2tty.c.

Referenced by cl_block(), and compress().

◆ output() [2/2]

◆ Putword() [1/2]

static void Putword ( )
static

Referenced by GIFEncode().

◆ Putword() [2/2]

static void Putword ( int  w,
FILE fp 
)
static

Definition at line 554 of file ppmtogif.c.

References fp, and w.

◆ sqr() [1/2]

static int sqr ( )
static

Referenced by closestcolor().

◆ sqr() [2/2]

static int sqr ( int  x)
static

Definition at line 243 of file ppmtogif.c.

References cordic::x.

◆ writeerr()

static void writeerr ( )
static

Definition at line 901 of file ppmtogif.c.

References pm_error.

Referenced by output().

Variable Documentation

◆ a_count

int a_count
static

GIF Specific routines

Definition at line 915 of file ppmtogif.c.

Referenced by char_init(), char_out(), and flush_char().

◆ accum

char accum[256]
static

Definition at line 929 of file ppmtogif.c.

Referenced by _cmsTransform2toTransformAdaptor(), bits_image_fetch_pixel_convolution(), bits_image_fetch_pixel_separable_convolution(), CachedXFORM(), CachedXFORMGamutCheck(), char_out(), dochar(), FloatXFORM(), flush_char(), Efont::Type1Definition::make(), NullFloatXFORM(), NullXFORM(), PrecalculatedXFORM(), PrecalculatedXFORMGamutCheck(), Efont::Type1Font::read(), Efont::Type1Font::read_encoding(), Efont::Type1Font::read_synthetic_font(), Efont::read_synthetic_string(), Efont::Type1Font::set_dict_size(), Efont::Type1Definition::slurp_proc(), Efont::Type1Definition::slurp_string(), Unroll1Byte(), Unroll1ByteReversed(), Unroll1ByteSkip1(), Unroll1ByteSkip2(), Unroll1Word(), Unroll1WordReversed(), Unroll1WordSkip3(), Unroll2Bytes(), Unroll2Words(), Unroll3Bytes(), Unroll3BytesSkip1Swap(), Unroll3BytesSkip1SwapFirst(), Unroll3BytesSkip1SwapSwapFirst(), Unroll3BytesSwap(), Unroll3Words(), Unroll3WordsSkip1Swap(), Unroll3WordsSkip1SwapFirst(), Unroll3WordsSwap(), Unroll4Bytes(), Unroll4BytesReverse(), Unroll4BytesSwap(), Unroll4BytesSwapFirst(), Unroll4BytesSwapSwapFirst(), Unroll4Words(), Unroll4WordsReverse(), Unroll4WordsSwap(), Unroll4WordsSwapFirst(), Unroll4WordsSwapSwapFirst(), UnrollALabV2_8(), UnrollAnyWords(), UnrollChunkyBytes(), UnrollDouble1Chan(), UnrollDoublesToFloat(), UnrollDoubleTo16(), UnrollFloatsToFloat(), UnrollFloatTo16(), UnrollHalfTo16(), UnrollHalfToFloat(), UnrollLabDoubleTo16(), UnrollLabDoubleToFloat(), UnrollLabFloatTo16(), UnrollLabFloatToFloat(), UnrollLabV2_16(), UnrollLabV2_8(), UnrollPlanarBytes(), UnrollPlanarWords(), UnrollXYZDoubleTo16(), UnrollXYZDoubleToFloat(), UnrollXYZFloatTo16(), and UnrollXYZFloatToFloat().

◆ Blue

◆ cht

colorhash_table cht
static

Definition at line 66 of file ppmtogif.c.

Referenced by closestcolor(), GetPixel(), and main().

◆ clear_flg

int clear_flg = 0
static

Definition at line 640 of file ppmtogif.c.

Referenced by cl_block(), compress(), and output().

◆ ClearCode

int ClearCode
static

Definition at line 665 of file ppmtogif.c.

Referenced by cl_block(), compress(), DGifDecompressLine(), and DGifGetPrefixChar().

◆ codetab

unsigned short codetab[5003]
static

Definition at line 615 of file ppmtogif.c.

◆ colors

int colors

Definition at line 51 of file ppmtogif.c.

Referenced by _cairo_mesh_pattern_rasterize(), _cairo_pattern_alpha_range(), _cairo_pdf_shading_generate_data(), _cairo_xcb_connection_render_create_conical_gradient(), _cairo_xcb_connection_render_create_linear_gradient(), _cairo_xcb_connection_render_create_radial_gradient(), _cairo_xcb_linear_picture(), _cairo_xcb_radial_picture(), _cairo_xlib_visual_info_create(), _gradient_to_xcb(), BMPEncode(), BMPwritergbtable(), closest_color(), closestcolor(), cmap_to_ppm(), colorstobpp(), convert_row(), convertpnm(), CoonsPatch::CoonsPatch(), do_std_body(), Gfx::doAxialShFill(), Gfx::doFunctionShFill(), Gfx::doFunctionShFill1(), ehb_to_cmap(), face_ot_color_palette_get_colors(), filter_create_predictor_dict(), filter_PNG15_apply_filter(), filter_TIFF2_apply_filter(), FlateStream::FlateStream(), gdImageScatterColor(), OT::CPAL::get_palette_colors(), gradient_source(), ham_to_ppm(), hb_ot_color_palette_get_colors(), in_xpm_reader(), init_pchg(), inline_image_length(), jpeg_headers(), LZWStream::LZWStream(), main(), make_pr_colormap(), Stream::makeFilter(), mediancut(), newGrayValue(), octreeGenerateAndPrune(), otfcc_readCOLR(), pcx_16col_to_ppm(), pdf_stream_set_predictor(), pixOctreeColorQuant(), poles(), ppm_colorhisttocolorhash(), ppm_to_16col_pcx(), ppm_to_cmap(), ppm_to_ham(), ppm_to_std(), PsSpecialHandler::processSequentialPatchMesh(), ptstiff3_save_image(), read_colormap(), read_patch_data(), scale_colormap(), TensorProductPatch::setColors(), CoonsPatch::setColors(), TriangularPatch::setColors(), sq_assign_colors(), std_to_ppm(), TensorProductPatch::TensorProductPatch(), tiff2png(), TriangularPatch::TriangularPatch(), write_std_cmap(), and WriteColorMap().

◆ CountDown

long CountDown
static

Definition at line 301 of file ppmtogif.c.

Referenced by GIFEncode(), and GIFNextPixel().

◆ cur_accum

unsigned long cur_accum = 0
static

TAG( output )

Output the given code. Inputs: code: A n_bits-bit integer. If == -1, then EOF. This assumes that n_bits =< (long)wordsize - 1. Outputs: Outputs code to the file. Assumptions: Chars are 8 bits long. Algorithm: Maintain a BITS character long buffer (so that 8 codes will fit in it exactly). Use the VAX insv instruction to insert each code in turn. When the buffer fills up empty it and start over.

Definition at line 784 of file ppmtogif.c.

Referenced by output().

◆ cur_bits

int cur_bits = 0
static

Definition at line 785 of file ppmtogif.c.

Referenced by BrotliHistogramRemap(), ClusterBlocks(), and output().

◆ curx

int curx
static

Definition at line 300 of file ppmtogif.c.

Referenced by BumpPixel(), GIFEncode(), GIFNextPixel(), and SplineLength().

◆ cury

int cury
static

Definition at line 300 of file ppmtogif.c.

Referenced by BumpPixel(), GIFEncode(), GIFNextPixel(), and SplineLength().

◆ EOFCode

int EOFCode
static

Definition at line 666 of file ppmtogif.c.

Referenced by compress(), DGifDecompressLine(), and output().

◆ free_ent

code_int free_ent = 0
static

Definition at line 634 of file ppmtogif.c.

Referenced by cl_block(), compress(), LZWEncode(), and output().

◆ g_init_bits

int g_init_bits
static

Definition at line 662 of file ppmtogif.c.

Referenced by compress(), and output().

◆ g_outfile

FILE* g_outfile
static

Definition at line 663 of file ppmtogif.c.

Referenced by compress(), flush_char(), and output().

◆ Green

◆ Height

int Height
static

Definition at line 299 of file ppmtogif.c.

Referenced by BumpPixel(), and GIFEncode().

◆ hsize

code_int hsize = 5003
static

Definition at line 619 of file ppmtogif.c.

Referenced by cl_block(), cl_hash(), and compress().

◆ htab

count_int htab[5003]
static

Definition at line 614 of file ppmtogif.c.

Referenced by adjust_varargs(), cl_hash(), makehash(), printhash(), and tryhash().

◆ in_count

long int in_count = 1
static

Definition at line 643 of file ppmtogif.c.

Referenced by compress().

◆ Interlace

int Interlace
static

Definition at line 303 of file ppmtogif.c.

Referenced by BumpPixel(), and GIFEncode().

◆ masks

unsigned long masks[]
static
Initial value:
= { 0x0000, 0x0001, 0x0003, 0x0007, 0x000F,
0x001F, 0x003F, 0x007F, 0x00FF,
0x01FF, 0x03FF, 0x07FF, 0x0FFF,
0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF }

Definition at line 787 of file ppmtogif.c.

Referenced by output().

◆ maxbits

int maxbits = 12
static

Definition at line 605 of file ppmtogif.c.

Referenced by compress(), and output().

◆ maxcode

code_int maxcode
static

Definition at line 606 of file ppmtogif.c.

Referenced by compress(), LZWEncode(), and output().

◆ maxmaxcode

code_int maxmaxcode = (code_int)1 << 12
static

Definition at line 607 of file ppmtogif.c.

Referenced by compress(), and output().

◆ maxtmp

pixval maxtmp

Definition at line 52 of file ppmtogif.c.

Referenced by closestcolor(), and main().

◆ n_bits

◆ offset

int offset
static
Examples
/dev/shm/warix/file_cache/windows/misc/w32tex-src.tar.xz/ktx/libs/freetype/include/freetype/tttables.h, and /dev/shm/warix/file_cache/windows/misc/w32tex-src.tar.xz/ptx/libs/freetype/include/freetype/tttables.h.

Definition at line 642 of file ppmtogif.c.

Referenced by __bits_image_fetch_affine_no_alpha(), __bits_image_fetch_general(), __zzip_fetch_disk_trailer(), _cairo_cogl_get_linear_gradient(), _cairo_cogl_linear_gradient_width_for_stops(), _cairo_cogl_surface_allocate_buffer_space(), _cairo_cogl_traps_to_composite_prim_p2(), _cairo_cogl_traps_to_composite_prim_p2t2(), _cairo_cogl_traps_to_triangles_buffer(), _cairo_default_context_get_dash(), _cairo_default_context_set_dash(), _cairo_ft_load_truetype_table(), _cairo_ft_load_type1_data(), _cairo_gl_gradient_operand_init(), _cairo_gl_gradient_render(), _cairo_gstate_get_dash(), _cairo_gstate_set_dash(), _cairo_pattern_add_color_stop(), _cairo_pdf_interchange_set_create_date(), _cairo_pdf_surface_emit_pattern_stops(), _cairo_pdf_surface_finish(), _cairo_pdf_surface_write_xref(), _cairo_ps_surface_emit_pattern_stops(), _cairo_qt_surface_map_to_image(), _cairo_quartz_load_truetype_table(), _cairo_stroke_style_dash_approximate(), _cairo_stroker_dash_start(), _cairo_svg_surface_emit_pattern_stops(), _cairo_svg_surface_emit_radial_pattern(), _cairo_win32_scaled_font_load_truetype_table(), _cairo_win32_scaled_font_load_type1_data(), _charAt(), _charPtr_charAt(), _copy_to_bo_and_apply_relocations(), _emit_dash(), _is_table_present(), _readencstring(), _SCSUFromUnicode(), _SCSUFromUnicodeWithOffsets(), _synctex_match_string(), _translate_point(), _updateOffsets(), OT::glyf::_write_loca(), _WriteWOFFFont(), aat_dumpfeat(), aat_dumplcar(), aat_dumpopbd(), hb_ot_map_builder_t::add_lookups(), OT::IndexSubtableFormat1Or3< OffsetType >::add_offset(), add_segment(), addKernPair(), CharCodeToUnicode::addMapping(), OffsetList::addOffset(), AddTempKP(), addTouint32_tArray(), addTouint64_tArray(), String::align(), append(), hb_serialize_context_t::assign_offset(), graphite2::Segment::associateChars(), graphite2::CharInfo::base(), block_resieve(), bmp_scan_file(), boops(), BrotliCalculateDistanceCodeLimit(), BrotliFindAllStaticDictionaryMatches(), BrotliZopfliCreateCommands(), brw_math_16(), brw_resolve_cals(), brw_SAMPLE(), brw_set_urb_message(), brw_urb_WRITE(), buddy_malloc(), bufping16b(), bufping16bd(), bufpingpong16b(), bufpong(), OT::IndexSubtableArray::build_lookup(), SplashScreen::buildDispersedMatrix(), BuildFondList(), AAT::ObsoleteTypes::byteOffsetToIndex(), AAT::ExtendedTypes::byteOffsetToIndex(), cairo_cff_font_read_cid_fontdict(), cairo_cff_font_read_private_dict(), cairo_cff_font_read_top_dict(), cairo_cff_font_set_topdict_operator_to_cur_pos(), cairo_cff_font_write_local_sub(), cairo_cff_font_write_private_dict(), cairo_get_dash(), cairo_pattern_add_color_stop_rgb(), cairo_pattern_add_color_stop_rgba(), cairo_pattern_get_color_stop_rgba(), cairo_set_dash(), calc_gradient_color(), CFF::calcOffSize(), cc_state_emit(), ccbaReadStream(), cf2_arrstack_push(), cff_add_string(), cff_blend_doBlend(), cff_charset_load(), cff_encoding_load(), cff_extract_Charset(), cff_extract_FDSelect(), cff_face_init(), cff_get_index(), cff_index_write(), CFF_Load_FD_Select(), cff_open(), cff_parse_font_matrix(), cff_read_charsets(), cff_read_encoding(), cff_read_fdarray(), cff_read_fdselect(), cff_read_private(), cff_read_subrs(), cff_vstore_load(), changeState_2022(), check_binhex_crc(), CFF::byte_str_t::check_limit(), check_table_dir(), graphite2::TtfUtil::CheckCmapSubtable4(), checkligkern(), CheckRest(), ChopUpSingleUncompressedStrip(), cid_hex_to_binary(), cid_parse_font_matrix(), cid_parser_new(), CIDFont_type0_dofont(), CIDFont_type0_open(), CIDFont_type0_open_from_t1c(), CIDFont_type0_t1cdofont(), CIDFont_type0_t1dofont(), CIDFont_type2_dofont(), CIDFont_type2_open(), ClassesFromNames(), clef_flat_height(), graphite2::TtfUtil::CmapSubtable4Lookup(), code_to_index2(), FormattedStringBuilder::codePointBefore(), OT::LigGlyph::collect_variation_indices(), BasicDVIReader::collectBopOffsets(), CombineLengthCodes(), CommandRestoreDistanceCode(), SRBRoot::compactKeys(), compactToUnicode2(), compareFallbacks(), Compiler::Compiler(), compositeGlyph_size(), compress(), compute_bbox(), ParagraphLayout::computeSubFonts(), XRef::constructXRef(), OffsetList::containsOffset(), units::ConversionRateInfo::ConversionRateInfo(), convert_and_store_pixel(), number::impl::PatternStringUtils::convertLocalized(), FoFiType1C::convertToCIDType0(), FoFiType1C::convertToOpenType(), woff2::ConvertTTFToWOFF2(), OT::IndexSubtable::copy_glyph_at_idx(), CFF::str_encoder_t::copy_str(), CopyLiteralsToByteArray(), CopySFNTAndFixup(), create_ToUnicode_cmap(), create_wm_kernel(), ZoneMeta::createCustomTimeZone(), createOneAliasList(), FoFiType1C::cvtGlyph(), FoFiTrueType::cvtSfnts(), BytesTrieElement::data(), dateStringToTime(), debug_localname(), decode_index_offset(), decomp_compat(), defaultGetFoldedValue(), DictMatchLength(), direct_alloc(), direct_resize(), dispatch(), do_file(), do_operator(), Do_String_Lookup(), do_subst(), doConversion(), dowheel(), AcroFormField::drawText(), dump(), dump_args(), dump_prefix(), dump_primitives(), dump_recur(), dump_script_table(), dumpg___info(), dumpgposAnchorData(), dumpgposCursiveAttach(), dumpGPOSpairpos(), dumpGSUBmultiplesubs(), DumpLigCarets(), dumptimeICU(), dvi_locate_native_font(), dvi_scan_specials(), FoFiType1C::eexecCvtGlyph(), EMACS_SearchHistory(), EMACS_SearchMatch(), emit_sampler_state_table(), emit_surface_state(), EmitDistance(), encode_index_offset(), encoding2u_strncpy(), enumToU(), number::impl::AffixUtils::escape(), number::impl::PatternStringUtils::escapePaddingString(), number::impl::AffixUtils::estimateLength(), BasicDVIReader::evalCommand(), GFReader::executeCommand(), expand_channel(), expandGroupLengths(), extract_codepoint_from_name(), extract_data(), extractFlag(), f_seek(), face_get_table_tags(), face_ot_color_glyph_get_layers(), face_ot_color_palette_get_colors(), face_ot_layout_get_feature_tags(), face_ot_layout_get_language_tags(), face_ot_layout_get_script_tags(), fb_seek(), FcFreeTypeCharIndex(), FcSerializePtr(), FcSerializeReserve(), fea_ParseTableKeywords(), graphite2::CharInfo::feats(), Efont::OpenType::ScriptList::features(), fetch_and_convert_pixel(), fetch_pixel_a2b10g10r10_float(), fetch_pixel_a2r10g10b10_float(), fetch_pixel_a8r8g8b8_32_sRGB(), fetch_pixel_a8r8g8b8_sRGB_float(), fetch_pixel_generic_float(), fetch_pixel_generic_lossy_32(), fetch_pixel_x2b10g10r10_float(), fetch_pixel_x2r10g10b10_float(), fetch_pixel_yuy2(), fetch_pixel_yv12(), ff_seek(), file_timestamp_cons(), FileSeek(), fill_bitpattern(), finalAccumulateLow(), OT::post::accelerator_t::find_glyph_name(), find_table_pos(), graphite2::TtfUtil::FindCmapSubtable(), FindFamilyStyleKerns(), findFontRun(), findPattern(), findRun(), findStateFromEscSeq(), findUnassigned(), firstIslamicStartYearFromGrego(), woff2::FixChecksums(), fixjump(), Plotter::flinedash(), FNT_Load_Glyph(), SimpleFilteredSentenceBreakIterator::following(), QuantityFormatter::format(), DumpFormatter::format(), number::impl::SimpleModifier::formatTwoArgPattern(), fprint_sfnts(), fs_fixup_ret(), fseek64_(), fseek_(), ft_amiga_stream_io(), ft_ansi_stream_io(), FT_Load_Sfnt_Table(), ft_lzwstate_get_code(), FT_Raccess_Get_DataOffsets(), FT_Sfnt_Table_Info(), ftc_cmap_node_compare(), ftglue_face_goto_table(), funcnamefromcode(), g___ChainingSubTable1(), g___ChainingSubTable2(), g___ContextSubTable1(), g___ContextSubTable2(), g___FigureExtensionSubTables(), gdImageChar(), gdImageCharUp(), gdImageConvolution(), gdImageNeuQuant(), gen4_create_sf_state(), Efont::Type1CharstringGenInterp::gen_hints(), GeneralReadChainingRule(), GeneralReadContextualRule(), AAT::ankr::get_anchor(), get_buddy(), get_gs_versions_product(), OT::IndexSubtableRecord::get_image_data(), OT::IndexSubtableFormat1Or3< OffsetType >::get_image_data(), OT::IndexSubtable::get_image_data(), AAT::KerxSubTableFormat6< KernSubTableHeader >::get_kerning(), Slurper::get_line_at(), get_resources(), graphite2::Slot::getAttr(), FoFiTrueType::getCFFBlock(), ReplaceableGlue::getChar32At(), ReplaceableGlue::getCharAt(), graphite2::Segment::getClassGlyph(), getDfontFontList(), FoFiTrueType::getEmbeddingRights(), getEndOfBuffer_2022(), getFCD(), getFlagOffset(), getFoldedValue(), SplashFTFont::getGlyphAdvance(), getjump(), getKey_2022(), graphite2::NameTable::getLanguageId(), FormattedStringBuilder::getLastCodePoint(), getloadavg(), graphite2::NameTable::getName(), XRef::getNumEntry(), StringSegment::getPrefixLengthInternal(), FormFieldSignature::getSignedRangeBounds(), BytesTrieElement::getString(), RelativeDateFormat::getStringForDay(), BytesTrieElement::getStringLength(), ScriptCompositeFontInstance::getSubFont(), Collation::getThreeBytePrimaryForOffsetData(), gfseek(), Gfseek(), glenc(), Efont::TrueTypeBoundsCharstringProgram::glyph(), gmtsub(), gposExtensionSubTable(), gposLoadLigatureArray(), gposLoadPairSet(), gposLoadValueRecord(), gposMakeAnchor(), gposMakeBaseArray(), gposMakeLigatureArray(), gposMakeMarkArray(), gposvrmaskeddump(), gregoYearFromIslamicStart(), gsubExtensionSubTable(), gsubLoadAlternateSet(), gsubLoadLigature(), gsubLoadLigatureSet(), gsubLoadSequence(), gww_iconv(), gxv_bsln_LookupFmt4_transit(), gxv_lcar_LookupFmt4_transit(), gxv_mort_subtable_type2_entry_validate(), gxv_mort_subtable_type2_ligActionOffset_validate(), gxv_mort_subtable_type4_lookupfmt4_transit(), gxv_mort_subtable_type5_InsertList_validate(), gxv_morx_subtable_type1_LookupFmt4_transit(), gxv_morx_subtable_type1_substitutionTable_validate(), gxv_morx_subtable_type2_ligActionIndex_validate(), gxv_prop_LookupFmt4_transit(), gxv_prop_property_validate(), gxv_set_length_by_ulong_offset(), gxv_set_length_by_ushort_offset(), gxv_trak_trackTable_validate(), gxv_XClassTable_lookupfmt4_transit(), gzoffset64(), gzseek(), gzseek64(), HashBytesAtOffset(), hb_blob_create_sub_blob(), hb_subset(), heredoc_count_indent(), heredoc_remove_indent(), HICopyTrans(), hnj_hyphen_hyphenate(), i915_batch_add_reloc(), i915_batch_emit_reloc(), i915_batch_fill_reloc(), i915_batch_flush(), i915_bo_exec(), i965_emit_composite(), i965_emit_relocation(), i965_emit_vertex_element(), i965_exec(), i965_shader_acquire_linear(), i965_shader_sampler_hash(), i965_stream_emit(), identifyOpenType(), Collation::incThreeBytePrimaryByOffset(), Collation::incTwoBytePrimaryByOffset(), CollationWeights::incWeightByOffset(), init_top(), initializePatternCETable(), initializePatternPCETable(), initTables(), inlineBegin(), inlineEnd(), input(), intel_bo_put_image(), intel_bo_read(), intel_bo_write(), JPXStream::inverseTransform1D(), JPXStream::inverseTransformLevel(), iof_file_seek(), iof_file_sync(), iof_filter_iofile_reader(), iof_filter_iofile_writer(), iof_filter_stream_coreader(), iof_filter_stream_cowriter(), iof_filter_stream_reader(), iof_reader_reseek(), iof_reader_seek(), iof_reader_seek_data(), iof_reader_seek_file(), iof_reader_seek_iofile(), iof_reseek(), iof_seek(), iof_write_iofile(), iof_writer_reseek(), iof_writer_seek(), iof_writer_seek_data(), iof_writer_seek_file(), iof_writer_seek_iofile(), SimpleFilteredSentenceBreakIterator::isBoundary(), isInOffsetWindowOrDirect(), IsMatch(), IsResourceFork(), IsResourceInBinary(), Type1OneMMRemover::itc_command(), Efont::CharstringInterp::itc_command(), jbig2_encode_generic(), jbig2_pages_complete(), jbig2_produce_page(), jmp_patchins(), AAT::kerxTupleKern(), layoutChars(), LinAxis(), lj_debug_getinfo(), LoadedNormalizer2Impl::load(), Load_TrueType_Any(), Load_TrueType_Glyph(), load_truetype_glyph(), loadChainOtfClassRule(), loadChainOtfClassSet(), loadChainOtfRule(), loadChainOtfRuleSet(), ICULanguageBreakFactory::loadDictionaryMatcherFor(), loadOtfClassRule(), loadOtfClassSet(), loadOtfRule(), loadOtfRuleSet(), localsub(), LogAxis(), lseek(), lua_nodelib_fields(), lua_show_valid_list(), main(), Efont::OpenType::Font::make(), make_page_index(), SplashFTFont::makeGlyph(), makeGPOS11(), makeGPOS12(), makeGPOS21(), makeGPOS22(), makeGPOS31(), makeGPOS41(), makeGPOS51(), makeGPOS61(), makeGPOSLookup(), makeGSUB11(), makeGSUB12(), makeGSUB21(), makeGSUB31(), makeGSUB41(), makeGSUB81(), makeGSUBLookup(), makeOTFChn1(), makeOTFChn2(), makeOTFChn3(), makeOTFCtx1(), makeOTFCtx2(), makeOTFCtx3(), CollationData::makeReorderRanges(), SRBRoot::makeRes16(), number::impl::AffixUtils::makeTag(), MakeUncompressedStream(), FoFiTrueType::mapCodeToGID(), MapStaticContexts(), MarkGlyphsProcessMarks(), HyperlinkManager::markLinkedBox(), OT::match_lookahead(), Quantifier::matches(), StringMatcher::matches(), MBCSAddToUnicode(), md5_append(), md5_digest_add(), MemorySeek(), memputshort(), memushort(), morx_lookupmap(), mplib_init_Ses(), mplib_push_dash(), mrb_ary_entry(), mrb_io_sysread_common(), mrb_io_sysseek(), mrb_io_syswrite_common(), mrb_parser_dump(), mrb_str_index(), multConstAccumulateLow(), Efont::OpenType::Name::name(), graphite2::NameTable::NameTable(), number::impl::ParsedPatternInfo::ParserState::next(), SimpleFilteredSentenceBreakIterator::next(), RuleCharacterIterator::next(), RegexCompile::nextChar(), number::impl::AffixUtils::nextToken(), woff2::NormalizeFontCollection(), woff2::NormalizeOffsets(), NULLSeek(), CFF::CFFIndex< COUNT >::offset_at(), Efont::OpenType::Data::offset_subtable(), AAT::ObsoleteTypes::offsetToIndex(), AAT::ExtendedTypes::offsetToIndex(), InMemoryFile::open(), OT::subset_offset_array_t< OutputArray >::operator()(), OT::subset_offset_array_arg_t< OutputArray, Arg >::operator()(), operator+(), OT::VariationSelectorRecord::operator=(), number::impl::ParsedPatternInfo::ParserState::operator=(), Efont::OpenType::Data::operator[](), otf_create_ToUnicode_stream(), otf_dumpbase(), otf_dumpgdef(), otf_dumpjstf(), otf_load_Unicode_CMap(), otf_try_load_GID_to_CID_map(), otfcc_read_composite_glyph(), otfcc_read_glyph(), otfcc_readMeta(), otfcc_readName(), otfcc_readPost(), otfcc_SFNTBuilder_serialize(), otfLoadFeatureRecord(), otfLoadLookupRecord(), otfLoadScriptRecord(), otfMakeClassDef(), otfMakeCoverage(), otfMakeDevice(), otfMakeFeatureList(), otfMakeLangSys(), otfMakeLookupList(), otfMakeScriptList(), otl_gsub_read_alternate(), otl_gsub_read_feat(), otl_gsub_read_ligature(), otl_gsub_read_single(), otl_read_anchor(), otl_read_chaining(), otl_read_contextual(), otl_read_gpos_cursive(), otl_read_gpos_markToLigature(), otl_read_gpos_pair(), otl_read_gpos_single(), otl_read_gsub_ligature(), otl_read_gsub_multi(), otl_read_gsub_reverse(), otl_readMarkArray(), otv_u_O_O_O_O_x_Onx(), otv_u_O_O_x_Onx(), output_applesingle(), outzone(), graphite2::Rect::overlap(), FoFiTrueType::parse(), RelativeDateFormat::parse(), parse_cff_bytecode(), parse_charstrings(), parse_encoding(), Efont::OpenType::Font::parse_header(), Efont::OpenType::Cmap::parse_header(), parse_subrs(), parse_xref_table(), parseDateTimeString(), FoFiTrueType::parseDfont(), XRef::parseEntry(), PatternToBrushConverter::PatternToBrushConverter(), pcf_get_bitmaps(), pcf_get_encodings(), pcf_read_TOC(), pcf_seek_to_table_type(), pdf_dev_setdash(), pdf_font_load_truetype(), pdf_font_load_type1(), pdf_font_load_type1c(), pdf_font_open_truetype(), pdf_font_open_type1c(), pdf_get_object(), pdf_read_object(), number::impl::ParsedPatternInfo::ParserState::peek(), PfEd_CvtComments(), pfed_dump(), PfEd_GlyphComments(), PfEd_Layer(), pfed_read(), pfed_read_layer(), pfed_read_ucs2_len(), pfed_read_utf8_len(), pfed_readglyphcomments(), pfed_readguidelines(), pfr_glyph_load(), pfr_glyph_load_rec(), pfr_log_font_load(), pfr_phy_font_load(), PickTTFFont(), pixFinalAccumulate(), pixInitAccumulate(), pixMultConstAccumulate(), pixReadStreamBmp(), pkg_checkFlag(), png_combine_row(), png_default_error(), png_default_warning(), png_error(), png_warning(), ppdoc_load_objstm(), ppdoc_reader(), ppstream_create(), SimpleFilteredSentenceBreakIterator::preceding(), PrefixEncodeCopyDistance(), CollationIterator::previousCEUnsafe(), FinalRule::print(), printInfoDate(), printinst(), printjmp(), drvDXF::printPoint(), CollationInfo::printReorderRanges(), Normalizer2DataBuilder::processData(), props_array(), radeon_bo_get_image(), radeon_bo_read(), radeon_bo_write(), re_search_internal(), re_string_reconstruct(), GooFile::read(), CollationDataReader::read(), TrueTypeFont::read(), CachedFile::read(), read_alternate_set_list(), read_anchor(), read_anchor_array(), read_APP1_Exif(), read_attach_list(), read_caret_value(), read_cff(), read_chain_class_rule_list(), read_chain_class_set_list(), read_chain_context1(), read_chain_context2(), read_chain_context3(), read_chain_rule_list(), read_chain_rule_set_list(), read_class1_record_list(), read_class_def(), read_class_rule_list(), read_class_set_list(), read_cmap_uvs_table(), read_context1(), read_context2(), read_context3(), read_coverage(), read_coverage_list(), read_device_table(), read_directory(), read_entry_exit_list(), read_feature_list(), read_gpos_value(), read_header_part(), read_lig_caret_list(), read_ligature(), read_ligature_array(), read_ligature_attach(), read_ligature_set_list(), read_lookup_list(), read_lookup_subtable_gpos(), read_lookup_subtable_gsub(), read_mark_array(), read_objstm(), read_pair_set_list(), read_reverse_chain1(), read_row(), read_rule_list(), read_rule_set_list(), read_script_list(), read_sequence(), read_value_record(), readAxis(), readBaseScript(), readBaseValue(), readCaretValue(), readChainingFormat1(), readChainingFormat2(), readClassDef(), readContextualFormat1(), readContextualFormat2(), readCoverage(), readencoding(), FoFiType1C::readFD(), readFinalZonesAndRules(), graphite2::Face::readGraphite(), readLigCaretRecord(), Package::readPackage(), FoFiType1C::readPrivateDict(), graphite2::SillMap::readSill(), readt1str(), woff2::ReadTrueTypeCollection(), readttfbase(), readttfbaseminmax(), readttfencodings(), readttffeatures(), readttfheader(), readttfkerns(), readttflookups(), readttfscripts(), XRef::readXRefStreamSection(), XRef::readXRefTable(), really_get_sfd(), reconstruct_glyf(), RefHintsMerge(), remapShortTimeZone(), removeFallback(), res_countArrayItems_68(), res_getAlias_68(), res_getArrayItem_68(), res_getBinaryNoTrace_68(), res_getIntVectorNoTrace_68(), res_getStringNoTrace_68(), res_getTableItemByIndex_68(), res_getTableItemByKey_68(), hb_serialize_context_t::resolve_links(), Efont::OpenType::Data::s16(), Efont::OpenType::Data::s32(), s_rnge(), AAT::PostcompensationActionChain::sanitize(), PDFDoc::saveCompleteRewrite(), PDFDoc::saveIncrementalUpdate(), scan_line(), CachedFile::seek(), CFF::CFFIndex< COUNT >::serialize(), CFF::CFFIndexOf< COUNT, TYPE >::serialize(), OT::AnchorMatrix::serialize(), CFF::CFFIndex< COUNT >::serialize_header(), CFF::CFFIndex< COUNT >::set_offset_at(), setColEIterOffset(), setFallback(), setNextOffset(), setoffset(), T1Secondary::setting(), BytesTrieElement::setTo(), setup_stream(), SFDGetSplineSet(), sfnt_create_FontFile_stream(), sfnt_find_table_pos(), sfnt_init_face(), sfnt_locate_table(), sfnt_open_font(), sfnt_read_table_directory(), sfnt_table_info(), shift_elements(), shift_preview(), StartPosQueuePush(), Store(), woff2::Store16(), store_primitive_name(), woff2::StoreBytes(), woff2::StoreGlyph(), woff2::StoreU32(), str_index_str(), strbuf_seek(), stringoffset(), StructAtOffset(), CFF::StructAtOffsetOrNull(), StructAtOffsetUnaligned(), CFF::byte_str_t::sub_str(), OT::MarkGlyphSetsFormat1::subset(), OT::ContextFormat3::subset(), Efont::OpenType::Data::subtable(), SubtableIsntSupported(), SubtableMustBe14(), double_conversion::Bignum::SubtractBignum(), t1_parse_font_matrix(), t42_parse_font_matrix(), test_swap(), TestStaticDictionaryItem(), tex_dump(), tex_read(), time1(), time2(), time2sub(), time_to_s_local(), timesub(), timeToDateString(), AAT::ContextualSubtable< Types >::driver_context_t::transition(), AAT::LigatureSubtable< Types >::driver_context_t::transition(), translate_point(), transtime(), try_untabgle_block(), TT_Access_Glyph_Frame(), tt_build_tables(), tt_cmap_read(), tt_face_build_cmaps(), tt_face_load_any(), TT_Get_Font_Data(), tt_get_metrics(), tt_get_name(), tt_read_VORG_table(), ttc_dump(), ttc_read_offset(), ttf_build_font(), ttf_find_name(), ttf_math_dump_glyphvariant(), ttf_math_read_icta(), ttf_math_read_mathkernv(), ttf_read_name(), ttf_seek_off(), ttf_seek_tab(), ttf_write_cmap(), ttf_write_glyf(), ttfDeleteBST(), TTFGetFontName(), TTFGetPSFontName(), ttfInitTableDir(), ttfLoadCMAP(), ttfLoadCompositeGlyph(), ttfLoadCVT(), ttfLoadFont(), ttfLoadFPGM(), ttfLoadGASP(), ttfLoadGLYF(), ttfLoadGlyphCached(), ttfLoadGPOS(), ttfLoadGSUB(), ttfLoadHDMX(), ttfLoadHEAD(), ttfLoadHHEA(), ttfLoadHMTX(), ttfLoadKERN(), ttfLoadLOCA(), ttfLoadLTSH(), ttfLoadMAXP(), ttfLoadNAME(), ttfLoadNameRecord(), ttfLoadNameRecordData(), ttfLoadOS2(), ttfLoadPCLT(), ttfLoadPOST(), ttfLoadPREP(), ttfLoadSimpleGlyph(), ttfLoadSubTable(), ttfLoadTableDir(), ttfLoadVDMX(), ttfLoadVHEA(), ttfLoadVMTX(), ttfSearchBST(), Efont::OpenType::Data::u16(), Efont::OpenType::Data::u32(), u_unescapeAt_68(), ubidi_getVisualIndex_68(), ubidi_swap(), ubrk_following_68(), ubrk_isBoundary_68(), ubrk_preceding_68(), ucase_swap(), ucbuf_fillucbuf(), ucbuf_getcx32(), uchar_swapNames_68(), ucm_countChars(), ucm_findFallback(), ucnv_MBCSGetFallback(), ucnv_MBCSGetNextUChar(), ucnv_MBCSLoad(), ucnv_MBCSSimpleGetNextUChar_68(), ucnv_MBCSToUnicodeWithOffsets_68(), ucnv_swap_68(), ucnvsel_swap(), ucol_setOffset_68(), UConverter_toUnicode_ISCII_OFFSETS_LOGIC(), udata_swapPackage(), udict_swap_68(), ufmt_utop(), U_NAMESPACE_USE::ulayout_load(), ulayout_swap(), uloc_getAvailable_68(), uloc_getCurrentCountryID_68(), uloc_getCurrentLanguageID_68(), uloc_getISO3Country_68(), uloc_getISO3Language_68(), ulocimp_getCountry_68(), ulocimp_getLanguage_68(), undump_primitives(), UnicodeString_charAt(), CMAPFormat4Mapper::unicodeToGlyph(), unorm2_swap_68(), unorm_swap(), Efont::OpenType::GposPair::unparse(), CairoOutputDev::updateFillColorStop(), uregex_ucstr_unescape_charAt_68(), uregex_utext_unescape_charAt_68(), ureldatefmt_format_68(), ureldatefmt_formatNumeric_68(), ureldatefmt_formatNumericToResult_68(), ureldatefmt_formatToResult_68(), ures_swapResource(), usearch_next_68(), usearch_previous_68(), usprep_swap_68(), utf8_appendCharSafeBody_68(), Efont::OpenType::Name::utf8_name(), utf8TextMapIndexToUTF16(), utrie_enum_68(), FormFieldSignature::validateSignature(), ValidateTTFHead(), variable_buffer_output(), Efont::CharstringInterp::vector_command(), AAT::ObsoleteTypes::wordOffsetToIndex(), AAT::ExtendedTypes::wordOffsetToIndex(), woff2::WOFF2StringOut::Write(), woff2::WOFF2MemoryOut::Write(), write_buf(), write_cff(), write_cid_cff(), write_fontfile(), write_table(), XRef::XRefTableWriter::writeEntry(), XRef::XRefStreamWriter::writeEntry(), XRef::XRefPreScanWriter::writeEntry(), woff2::WriteFont(), woff2::WriteFontCollection(), ExtraData::writeNoNoMapping(), Normalizer2DataBuilder::writeNorm16(), PDFDoc::writeObjectHeader(), Package::writePackage(), PDFDoc::writePageObjects(), writestreamlength(), woff2::WriteTable(), woff2::WriteTableRecord(), WriteTTC(), FoFiTrueType::writeTTF(), xfseek(), xfseek64(), xfseeko(), XML_GetBuffer(), XML_GetInputContext(), zzip_entry_data_offset(), zzip_entry_fread_file_header(), zzip_seek(), zzip_seek32(), zzip_seekdir(), and zzip_seekdir32().

◆ out_count

long int out_count = 0
static

Definition at line 644 of file ppmtogif.c.

Referenced by compress().

◆ Pass

int Pass = 0
static

Definition at line 302 of file ppmtogif.c.

Referenced by BumpPixel().

◆ perm

◆ permi

int permi[256]

Definition at line 50 of file ppmtogif.c.

Referenced by closestcolor(), and main().

◆ pixels

pixel** pixels
static

Definition at line 65 of file ppmtogif.c.

◆ Red

◆ Width

int Width
static

Definition at line 299 of file ppmtogif.c.

Referenced by BumpPixel(), and GIFEncode().