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)  

image.cpp File Reference
#include "image.hpp"
#include "error.hpp"
#include <string.h>
#include "gensio.hpp"
Include dependency graph for image.cpp:

Go to the source code of this file.

Classes

struct  Hash46
 

Typedefs

typedef unsigned int u32_t
 
typedef signed int s32_t
 

Functions

static void fatal_image_too_large ()
 
static slen_t multiply_check (slen_t a, slen_t b)
 
static slen_t multiply_check (slen_t a, slen_t b, slen_t c)
 
static slen_t add_check (slen_t a, slen_t b)
 
static slen_t add_check (slen_t a, slen_t b, slen_t c, slen_t d)
 
GenBuffer::Writableoperator<< (GenBuffer::Writable &gw, Image::Sampled const &img)
 

Variables

const unsigned M =1409
 
const unsigned D =2
 
const unsigned HD =4+D
 
const unsigned char FREE =255
 
static Image::Loaderfirst_image_loader =(Image::Loader*) ((void*)0)
 

Typedef Documentation

◆ s32_t

typedef signed int s32_t

Definition at line 21 of file image.cpp.

◆ u32_t

typedef unsigned int u32_t

Definition at line 20 of file image.cpp.

Function Documentation

◆ add_check() [1/2]

static slen_t add_check ( slen_t  a,
slen_t  b 
)
static

Definition at line 125 of file image.cpp.

References a, b, and fatal_image_too_large().

Referenced by add_check(), and operator<<().

◆ add_check() [2/2]

static slen_t add_check ( slen_t  a,
slen_t  b,
slen_t  c,
slen_t  d 
)
static

Definition at line 137 of file image.cpp.

References a, add_check(), b, c, and d.

◆ fatal_image_too_large()

static void fatal_image_too_large ( )
static

Definition at line 110 of file image.cpp.

References Error::EERROR, and Error::sev().

Referenced by add_check(), multiply_check(), and operator<<().

◆ multiply_check() [1/2]

static slen_t multiply_check ( slen_t  a,
slen_t  b 
)
static

Definition at line 114 of file image.cpp.

References a, b, fatal_image_too_large(), and check-static-inits::result.

Referenced by multiply_check(), and operator<<().

◆ multiply_check() [2/2]

static slen_t multiply_check ( slen_t  a,
slen_t  b,
slen_t  c 
)
static

Definition at line 121 of file image.cpp.

References a, b, c, and multiply_check().

◆ operator<<()

Dumps this Image as a rawbits PPM file (plus a comment indicating transparency)

Returns
the Writable.

Definition at line 1337 of file image.cpp.

References add_check(), cutout::cpp, Error::EERROR, fatal_image_too_large(), len, memset(), multiply_check(), and Error::sev().

Variable Documentation

◆ D

◆ first_image_loader

Image::Loader* first_image_loader =(Image::Loader*) ((void*)0)
static

Definition at line 1354 of file image.cpp.

Referenced by Image::printLoaders(), and Image::register0().

◆ FREE

const unsigned char FREE =255

A tuple is considered free iff its first byte equals FREE

Definition at line 34 of file image.cpp.

Referenced by _caryll_read_otl_extend(), addDoublet(), addSinglet(), affineXformCoeffs(), applyCoords(), applyPolymorphism(), axisToBk(), bbufferDestroy(), bilinearXformCoeffs(), bk_build_Graph(), bk_delete_Graph(), bk_estimateSizeOfGraph(), bmfDestroy(), boxaDestroy(), boxDestroy(), buffree(), buildClassDef(), buildCoverageFormat(), buildFormat14ForSelector(), buildOutline(), Cache_Destroy(), Cache_Done(), Cache_New(), callback_draw_setmask(), callback_nopsetMask(), captureProtoSignature(), ccbaDestroy(), ccbaReadStream(), ccbaWriteStream(), ccbaWriteSVG(), ccbDestroy(), cff_close(), cff_close_Charset(), cff_close_FDSelect(), cff_compileGlyphToIL(), cff_encodeCffFloat(), cff_ilGraphToBuffers(), cff_make_charset(), cff_make_charstrings(), cff_make_fdselect(), cffstrings_to_indexblob(), CharMap_Free(), check_final_program(), checkDoubletMatch(), checkSingletMatch(), ck_fclose(), ck_fopen(), ck_realloc(), classCompatible(), close_all_files(), closeRule(), compare_json_objects(), compile_program(), compile_regex(), consolidate_GDEF(), consolidate_gpos_cursive(), consolidate_gpos_single(), consolidate_gsub_multi(), consolidate_gsub_reverse(), consolidate_gsub_single(), consolidateBaseArray(), consolidateGlyphHints(), consolidateLigArray(), consolidateMarkArray(), consolidateTSI(), Context_Destroy(), convertJpegToPS(), convertJpegToPSEmbed(), convertJpegToPSString(), convertTiffG4ToPS(), convertTiffG4ToPSEmbed(), convertTiffG4ToPSString(), cqcellTreeDestroy(), delete_Node(), deleteBaseArrayItem(), deleteBaseAxis(), deleteFullRule(), deleteLigArrayItem(), deleteRule(), disposeCffIndex(), disposeClassDef(), disposeCmap(), disposeCoverage(), disposeCvt(), disposeDict(), disposeFD(), disposeFeaturePtr(), disposeFpgmPrep(), disposeFvar(), disposeGlyphOrder(), disposeGposPair(), disposeHdmx(), disposeHmtx(), disposeLanguagePtr(), disposeLTSH(), disposeSubrGraph(), disposeVmtx(), disposeVORG(), Done_Glyph_Zone(), dump_append_queue(), dump_ttinstr(), emptyTargetDispose(), encodeAscii85(), expandBinaryLow(), expandClassDef(), Extension_Destroy(), extractJpegDataFromFile(), extractTiffG4DataFromFile(), Face_Destroy(), fhmtautogen(), findSimilarSizedTemplates(), fmorphautogen(), fopenReadStream(), freadHeaderPng(), Free_AlternateSet(), Free_AlternateSubst(), Free_AttachList(), Free_AttachPoint(), Free_BaseArray(), free_buffer(), Free_ChainContext1(), Free_ChainContext2(), Free_ChainContext3(), Free_ChainPosClassRule(), Free_ChainPosClassSet(), Free_ChainPosRule(), Free_ChainPosRuleSet(), Free_ChainSubClassRule(), Free_ChainSubClassSet(), Free_ChainSubRule(), Free_ChainSubRuleSet(), Free_ClassDef1(), Free_ClassDef2(), Free_ClassDefinition(), Free_Context1(), Free_Context2(), Free_Context3(), Free_Coverage1(), Free_Coverage2(), Free_CursivePos(), Free_Device(), Free_Feature(), Free_FeatureList(), Free_LangSys(), Free_Ligature(), Free_LigatureArray(), Free_LigatureAttach(), Free_LigatureSet(), Free_LigatureSubst(), Free_LigCaretList(), Free_LigGlyph(), Free_Lookup(), Free_LookupList(), Free_Mark2Array(), Free_MarkArray(), Free_MultipleSubst(), Free_NewGlyphClasses(), Free_PairPos1(), Free_PairPos2(), Free_PairSet(), Free_PosClassRule(), Free_PosClassSet(), Free_PosRule(), Free_PosRuleSet(), Free_Script(), Free_ScriptList(), Free_Sequence(), Free_SinglePos(), Free_SingleSubst(), Free_SubClassRule(), Free_SubClassSet(), Free_SubRule(), Free_SubRuleSet(), Free_TrueType_Eblc(), Free_TrueType_Hdmx(), Free_TrueType_Names(), gaussjordan(), generateBinaryMaze(), gplotAddPlot(), gplotCreate(), gplotDestroy(), gplotFromFile(), Hash46::Hash46(), Instance_Destroy(), jbClasserDestroy(), jbClassifyCorrelation(), jbClassifyRankHaus(), jbDataDestroy(), jbDataRead(), jbGetULCorners(), Kerning_Destroy(), l_infoFloat(), l_infoFloat2(), l_infoInt(), l_infoInt2(), l_warningInt(), listDestroy(), listRemoveElement(), listRemoveFromHead(), listRemoveFromTail(), Load_AlternateSet(), Load_AlternateSubst(), Load_AttachList(), Load_AttachPoint(), Load_BaseArray(), Load_ChainContextPos1(), Load_ChainContextPos2(), Load_ChainContextPos3(), Load_ChainContextSubst1(), Load_ChainContextSubst2(), Load_ChainContextSubst3(), Load_ChainPosClassRule(), Load_ChainPosClassSet(), Load_ChainPosRule(), Load_ChainPosRuleSet(), Load_ChainSubClassRule(), Load_ChainSubClassSet(), Load_ChainSubRule(), Load_ChainSubRuleSet(), Load_ClassDef1(), Load_ClassDef2(), Load_ClassDefinition(), Load_ContextPos1(), Load_ContextPos2(), Load_ContextPos3(), Load_ContextSubst1(), Load_ContextSubst2(), Load_ContextSubst3(), Load_Coverage1(), Load_Coverage2(), Load_CursivePos(), Load_Device(), Load_Feature(), Load_FeatureList(), Load_Format_20(), Load_Format_25(), Load_LangSys(), Load_Ligature(), Load_LigatureArray(), Load_LigatureAttach(), Load_LigatureSet(), Load_LigatureSubst(), Load_LigCaretList(), Load_LigGlyph(), Load_Lookup(), Load_LookupList(), Load_Mark2Array(), Load_MarkArray(), Load_MultipleSubst(), Load_PairPos1(), Load_PairPos2(), Load_PairSet(), Load_PosClassRule(), Load_PosClassSet(), Load_PosRule(), Load_PosRuleSet(), Load_SBit_Image(), Load_Script(), Load_ScriptList(), Load_Sequence(), Load_SinglePos(), Load_SingleSubst(), Load_SubClassRule(), Load_SubClassSet(), Load_SubRule(), Load_SubRuleSet(), Load_TrueType_Gasp(), Load_TrueType_Hdmx(), Load_TrueType_Names(), loggerDispose(), Hash46::lookup(), Lookup_ChainContextPos2(), Lookup_ChainContextSubst2(), Lookup_ContextPos2(), Lookup_ContextSubst2(), main(), mergeVmtx(), numa2dDestroy(), numaaDestroy(), numaConvolve(), numaDestroy(), numaGetMode(), numaHashCreate(), numaHashDestroy(), numaSortIndex(), octreeGenerateAndPrune(), os_count_objects(), otfcc_build_chaining_classes(), otfcc_build_contextual_classes(), otfcc_build_gpos_pair_individual(), otfcc_build_gsub_ligature_subtable(), otfcc_buildGlyf(), otfcc_buildName(), otfcc_buildTSI5(), otfcc_delete_lookup(), otfcc_delete_privatedict(), otfcc_deleteGlyf_glyph(), otfcc_deleteOptions(), otfcc_deleteSFNT(), otfcc_deleteSFNTBuilder(), otfcc_dumpMeta(), otfcc_dumpSVG(), otfcc_parseCvt(), otfcc_parseOtl(), otfcc_parseSVG(), otfcc_read_simple_glyph(), otfcc_readCmap(), otfcc_readCPAL(), otfcc_readGlyf(), otfcc_readName(), otfcc_readOS_2(), otfcc_readOtl_lookup(), otfcc_statFont(), otfcc_unmapCmap(), otfcc_unmapCmapUVS(), otl_dispose_chaining(), otl_gpos_parse_markToLigature(), otl_gpos_parse_markToSingle(), otl_read_gpos_pair(), Image::Indexed::packPal(), parseForProtos(), parseMetaData(), pheapDestroy(), pixaaDestroy(), pixaCountPixels(), pixAddText(), pixaDestroy(), pixAffineInterpolatedGray(), pixAffineSampled(), pixaGenerateFont(), pixaGetFont(), pixaSaveFont(), pixAssignToNearestColor(), pixBilinearInterpolatedGray(), pixBilinearSampled(), pixCloseGray(), pixcmapDestroy(), pixcmapHasColor(), pixcmapToOctcubeLUT(), pixcmapWriteStream(), pixColorGrayCmap(), pixColorQuant1Pass(), pixColorSegment(), pixConvert1To16(), pixConvert1To2(), pixConvert1To4(), pixConvert1To8(), pixConvert2To8(), pixConvert8To32(), pixConvertGrayToFalseColor(), pixConvertRGBToColormap(), pixCountPixels(), pixCountPixelsByRow(), pixCountPixelsInRow(), pixDestroy(), pixDilateGray(), pixDisplay(), pixDisplayPtaa(), pixDitherTo2bppSpec(), pixDitherToBinaryLUT(), pixDitherToBinarySpec(), pixErodeGray(), pixFindBaselines(), pixFixedOctcubeQuantCmap(), pixFixedOctcubeQuantRGB(), pixGetTextBaseline(), pixHtmlViewer(), pixMaxDynamicRange(), pixMorphSequence(), pixOctcubeHistogram(), pixOctcubeQuantMixed(), pixOctreeQuant(), pixOctreeQuantizePixels(), pixOpenGray(), pixPlotAlongPta(), pixProjectiveInterpolatedGray(), pixProjectiveSampled(), pixReadFromTiffStream(), pixReadStreamBmp(), pixReadStreamJpeg(), pixReduceBinary2(), pixReduceRankBinary2(), pixReduceRankBinaryCascade(), pixRemoveColormap(), pixRemoveUnusedColors(), pixRotateLR(), pixRotateTB(), pixRunlengthTransform(), pixScaleGray2xLIDither(), pixScaleGray2xLIThresh(), pixScaleGray4xLIDither(), pixScaleGray4xLIThresh(), pixScaleToGray16(), pixScaleToGray2(), pixScaleToGray3(), pixScaleToGray4(), pixScaleToGray8(), pixThresholdOn8bpp(), pixThresholdTo2bpp(), pixThresholdTo4bpp(), pixTRCMap(), pixWriteStreamBmp(), pixWriteStreamJpeg(), pixWriteStreamPng(), pixWriteStreamPS(), pixWriteToTiffStream(), polymorphizeGlyph(), Post_Destroy(), pqueueDestroy(), projectiveXformCoeffs(), ptaaDestroy(), ptaDestroy(), ptaRemoveDuplicates(), readAxis(), readBaseScript(), readChainingFormat2(), readClassDef(), readContextualFormat2(), readCoverage(), reallocNew(), sarrayCreateLinesFromString(), sarrayDestroy(), sarrayMakeInnerLoopDWACode(), sarrayReadStream(), sarraySplitString(), scaleBinaryLow(), scaleBySamplingLow(), scaleMipmapLow(), scaleSmoothLow(), searchBinaryMaze(), searchGrayMaze(), selaDestroy(), selDestroy(), selReadStream(), splitPathAtDirectory(), splitPathAtExtension(), stackDestroy(), statCFFWidths(), statGlyf(), statVORG(), stderrTargetDispose(), stringReplace(), stringReplaceEachSubstr(), Subtable_Load_0(), Subtable_Load_2(), Image::Sampled::toIndexed0(), try_untangle(), tryClassifyAround(), TT_Access_Frame(), TT_Check_And_Access_Frame(), TT_Close_Stream(), TT_Done_FreeType(), TT_Done_Outline(), TT_Done_SBit_Image(), TT_Forget_Frame(), TT_GDEF_Build_ClassDefinition(), TT_GPOS_Apply_String(), TT_GPOS_Query_Features(), TT_GSUB_Apply_String(), TT_GSUB_Query_Features(), TT_Open_Stream(), TTCache_Done(), TTExtend_Done(), TTFile_Done(), TTObjs_Done(), TTObjs_Init(), TTRaster_Done(), unconsolidate_chaining(), unlinkNode(), Update_Max(), vbkpushitems(), vq_deleteRegion(), Hash46::walk(), writecff_CIDKeyed(), writeOTLLookups(), writeOTLScriptAndLanguages(), zlibCompress(), and zlibUncompress().

◆ HD

const unsigned HD =4+D

Size of each tuple in the array ‘t’

Definition at line 32 of file image.cpp.

Referenced by Hash46::walk().

◆ M

const unsigned M =1409

Definition at line 28 of file image.cpp.

Referenced by __gmp_mt_recalc_buffer(), __gmpn_gcd(), __gmpn_gcdext(), __gmpn_gcdext_lehmer_n(), __gmpn_hgcd(), __gmpn_hgcd2(), __gmpn_hgcd2_jacobi(), __gmpn_hgcd_appr(), __gmpn_hgcd_jacobi(), __gmpn_hgcd_matrix_adjust(), __gmpn_hgcd_matrix_init(), __gmpn_hgcd_matrix_mul(), __gmpn_hgcd_matrix_mul_1(), __gmpn_hgcd_matrix_update_q(), __gmpn_hgcd_mul_matrix1_vector(), __gmpn_hgcd_reduce(), __gmpn_hgcd_step(), __gmpn_jacobi_n(), __gmpn_matrix22_mul1_inverse_vector(), __gmpn_mul_fft(), alloc_funny_pointers(), binarySearch(), CAT02toHPE(), ConsiderContext(), cvt_a_to_tmatrix(), eps_path_short(), Hash46::getMaxSize(), hgcd_hook(), hgcd_jacobi_step(), hgcd_matrix_apply(), hgcd_mul_matrix_vector(), HPEtoCAT02(), inversematrix(), INVERTIBLE_MATRIX(), Hash46::isFull(), make_funny_pointers(), make_transmatrix(), pdf_coord__dtransform(), pdf_coord__idtransform(), pdf_coord__itransform(), pdf_coord__transform(), pdf_copy_clip(), pdf_dev__rectshape(), pdf_dev_bop(), pdf_dev_concat(), pdf_dev_currentmatrix(), pdf_dev_dtransform(), pdf_dev_idtransform(), pdf_dev_itransform(), pdf_dev_put_image(), pdf_dev_rectstroke(), pdf_dev_sprint_matrix(), pdf_dev_transform(), pdf_doc_begin_page(), pdf_invertmatrix(), pdf_path__transform(), pdf_sprint_matrix(), pdf_ximage_scale_image(), pdfcolorstack__set_litstr(), ps_dev_CTM(), PseudoSpace(), set_styles(), set_wraparound_pointers(), shorten(), drvSVM::show_image(), drvWMF::show_image(), spc_handler_pdfm_bcontent(), spc_handler_pdfm_btrans(), spc_handler_pdfm_content(), spc_handler_pdfm_literal(), spc_handler_ps_tricks_bput(), spc_handler_ps_tricks_eput(), spc_handler_ps_tricks_parse_path(), spc_handler_ps_tricks_pdef(), spc_handler_ps_tricks_render(), spc_handler_xtx_do_transform(), t1_MInvert(), t1_QuerySpace(), t1_Scale(), t1_Transform(), t1_Xform(), Type_LUTA2B_Write(), Type_LUTB2A_Write(), Hash46::walk(), and PSFrontEnd::yylex().