{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"VisualC","path":"VisualC","contentType":"directory"},{"name":"VisualCE","path":"VisualCE","contentType":"directory"},{"name":"Xcode","path":"Xcode","contentType":"directory"},{"name":"Xcode_iPhone","path":"Xcode_iPhone","contentType":"directory"},{"name":"acinclude","path":"acinclude","contentType":"directory"},{"name":"Android.mk","path":"Android.mk","contentType":"file"},{"name":"CHANGES","path":"CHANGES","contentType":"file"},{"name":"COPYING","path":"COPYING","contentType":"file"},{"name":"IMG.c","path":"IMG.c","contentType":"file"},{"name":"IMG_ImageIO.m","path":"IMG_ImageIO.m","contentType":"file"},{"name":"IMG_UIImage.m","path":"IMG_UIImage.m","contentType":"file"},{"name":"IMG_bmp.c","path":"IMG_bmp.c","contentType":"file"},{"name":"IMG_gif.c","path":"IMG_gif.c","contentType":"file"},{"name":"IMG_jpg.c","path":"IMG_jpg.c","contentType":"file"},{"name":"IMG_lbm.c","path":"IMG_lbm.c","contentType":"file"},{"name":"IMG_pcx.c","path":"IMG_pcx.c","contentType":"file"},{"name":"IMG_png.c","path":"IMG_png.c","contentType":"file"},{"name":"IMG_pnm.c","path":"IMG_pnm.c","contentType":"file"},{"name":"IMG_tga.c","path":"IMG_tga.c","contentType":"file"},{"name":"IMG_tif.c","path":"IMG_tif.c","contentType":"file"},{"name":"IMG_webp.c","path":"IMG_webp.c","contentType":"file"},{"name":"IMG_xcf.c","path":"IMG_xcf.c","contentType":"file"},{"name":"IMG_xpm.c","path":"IMG_xpm.c","contentType":"file"},{"name":"IMG_xv.c","path":"IMG_xv.c","contentType":"file"},{"name":"IMG_xxx.c","path":"IMG_xxx.c","contentType":"file"},{"name":"MPWmake.sea.bin","path":"MPWmake.sea.bin","contentType":"file"},{"name":"Makefile.am","path":"Makefile.am","contentType":"file"},{"name":"README","path":"README","contentType":"file"},{"name":"SDL_image.h","path":"SDL_image.h","contentType":"file"},{"name":"SDL_image.pc.in","path":"SDL_image.pc.in","contentType":"file"},{"name":"SDL_image.spec.in","path":"SDL_image.spec.in","contentType":"file"},{"name":"Watcom-OS2.zip","path":"Watcom-OS2.zip","contentType":"file"},{"name":"autogen.sh","path":"autogen.sh","contentType":"file"},{"name":"config.guess","path":"config.guess","contentType":"file"},{"name":"config.sub","path":"config.sub","contentType":"file"},{"name":"configure.in","path":"configure.in","contentType":"file"},{"name":"gcc-fat.sh","path":"gcc-fat.sh","contentType":"file"},{"name":"ltmain.sh","path":"ltmain.sh","contentType":"file"},{"name":"showimage.c","path":"showimage.c","contentType":"file"},{"name":"version.rc","path":"version.rc","contentType":"file"}],"totalCount":40}},"fileTreeProcessingTime":2.281949,"foldersToFetch":[],"repo":{"id":331517360,"defaultBranch":"main","name":"SDL_image","ownerLogin":"libsdl-org","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2021-01-21T04:48:26.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/77683370?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"15ba591a1b45138f6f5ae4fb6dbbc79129b4f353","listCacheKey":"v0:1704145021.0","canEdit":false,"refType":"tree","currentOid":"15ba591a1b45138f6f5ae4fb6dbbc79129b4f353"},"path":"README","currentUser":null,"blob":{"rawLines":["","SDL_image 1.2","","The latest version of this library is available from:","http://www.libsdl.org/projects/SDL_image/","","This is a simple library to load images of various formats as SDL surfaces.","This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG,","TGA, and TIFF formats.","","API:","#include \"SDL_image.h\"","","\tSDL_Surface *IMG_Load(const char *file);","or","\tSDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc);","or","\tSDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type);","","where type is a string specifying the format (i.e. \"PNG\" or \"pcx\").","Note that IMG_Load_RW cannot load TGA images.","","To create a surface from an XPM image included in C source, use:","","\tSDL_Surface *IMG_ReadXPMFromArray(char **xpm);","","An example program 'showimage' is included, with source in showimage.c","","JPEG support requires the JPEG library: http://www.ijg.org/","PNG support requires the PNG library: http://www.libpng.org/pub/png/libpng.html"," and the Zlib library: http://www.gzip.org/zlib/","TIFF support requires the TIFF library: ftp://ftp.sgi.com/graphics/tiff/","","If you have these libraries installed in non-standard places, you can","try adding those paths to the configure script, e.g.","sh ./configure CPPFLAGS=\"-I/somewhere/include\" LDFLAGS=\"-L/somewhere/lib\"","If this works, you may need to add /somewhere/lib to your LD_LIBRARY_PATH","so shared library loading works correctly.","","This library is under the GNU Library General Public License, see the file","\"COPYING\" for details. Certain image loaders may be under a different","license, see the individual image loader source files for details."],"stylingDirectives":[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/libsdl-org/SDL_image/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"README","displayUrl":"https://github.com/libsdl-org/SDL_image/blame/15ba591a1b45138f6f5ae4fb6dbbc79129b4f353/README?raw=true","headerInfo":{"blobSize":"1.56 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":null,"isGitLfs":false,"onBranch":false,"shortPath":"a196e88","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Flibsdl-org%2FSDL_image%2Fblame%2F15ba591a1b45138f6f5ae4fb6dbbc79129b4f353%2FREADME","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"42","truncatedSloc":"30"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":null,"languageID":null,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/libsdl-org/SDL_image/blame/15ba591a1b45138f6f5ae4fb6dbbc79129b4f353/README","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/libsdl-org/SDL_image/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/libsdl-org/SDL_image/raw/15ba591a1b45138f6f5ae4fb6dbbc79129b4f353/README","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":true,"symbols":[]}},"copilotInfo":null,"copilotAccessAllowed":false,"blame":{"ranges":{"1":{"start":1,"oldStart":1,"end":1,"oldEnd":1,"commitOid":"4ddea4470fcf204f1ec576737c30c29823168354","reblamePath":null},"2":{"start":2,"oldStart":2,"end":2,"oldEnd":2,"commitOid":"547b70e6c6068aec0d2394f273d64be4a82087e6","reblamePath":"README"},"3":{"start":3,"oldStart":3,"end":4,"oldEnd":4,"commitOid":"4ddea4470fcf204f1ec576737c30c29823168354","reblamePath":null},"5":{"start":5,"oldStart":5,"end":5,"oldEnd":5,"commitOid":"547b70e6c6068aec0d2394f273d64be4a82087e6","reblamePath":"README"},"6":{"start":6,"oldStart":6,"end":7,"oldEnd":7,"commitOid":"4ddea4470fcf204f1ec576737c30c29823168354","reblamePath":null},"8":{"start":8,"oldStart":8,"end":8,"oldEnd":8,"commitOid":"f304de1ba7e4ffd0d13d4e9883c72579a2b494e8","reblamePath":"README"},"9":{"start":9,"oldStart":9,"end":9,"oldEnd":9,"commitOid":"23c8e8b300d6b71eb8573731ff6b653b5a5d68f5","reblamePath":"README"},"10":{"start":10,"oldStart":9,"end":17,"oldEnd":16,"commitOid":"4ddea4470fcf204f1ec576737c30c29823168354","reblamePath":null},"18":{"start":18,"oldStart":17,"end":18,"oldEnd":17,"commitOid":"384fc25941aca2d10246518802a54a9c66cdff7d","reblamePath":"README"},"19":{"start":19,"oldStart":18,"end":22,"oldEnd":21,"commitOid":"4ddea4470fcf204f1ec576737c30c29823168354","reblamePath":null},"23":{"start":23,"oldStart":23,"end":26,"oldEnd":26,"commitOid":"4f5ba294d3e74fd7925ccc48c46afba59da8997c","reblamePath":"README"},"27":{"start":27,"oldStart":22,"end":29,"oldEnd":24,"commitOid":"4ddea4470fcf204f1ec576737c30c29823168354","reblamePath":null},"30":{"start":30,"oldStart":30,"end":31,"oldEnd":31,"commitOid":"d8965891b046584ed20f62db71402083f9a86923","reblamePath":"README"},"32":{"start":32,"oldStart":27,"end":33,"oldEnd":28,"commitOid":"4ddea4470fcf204f1ec576737c30c29823168354","reblamePath":null},"34":{"start":34,"oldStart":34,"end":39,"oldEnd":39,"commitOid":"6172f459030914f1391bbb37e3b2b376e2adb057","reblamePath":"README"},"40":{"start":40,"oldStart":29,"end":42,"oldEnd":31,"commitOid":"4ddea4470fcf204f1ec576737c30c29823168354","reblamePath":null}},"commits":{"4ddea4470fcf204f1ec576737c30c29823168354":{"oid":"4ddea4470fcf204f1ec576737c30c29823168354","message":"Initial revision","shortMessageHtmlLink":"Initial revision","authorAvatarUrl":null,"committerName":"Sam Lantinga","committerEmail":"slouken@lokigames.com","committedDate":"2000-08-10T06:05:39.000Z","firstParentOid":null},"547b70e6c6068aec0d2394f273d64be4a82087e6":{"oid":"547b70e6c6068aec0d2394f273d64be4a82087e6","message":"*** empty log message ***","shortMessageHtmlLink":"*** empty log message ***","authorAvatarUrl":null,"committerName":"Sam Lantinga","committerEmail":"slouken@lokigames.com","committedDate":"2001-04-06T03:27:14.000Z","firstParentOid":"18b1ce108732b4fc0d04067054db1dfb974e7375"},"f304de1ba7e4ffd0d13d4e9883c72579a2b494e8":{"oid":"f304de1ba7e4ffd0d13d4e9883c72579a2b494e8","message":"Daniel Morais - Sun Sep 23 16:32:13 PDT 2001\n * Added support for the IFF (LBM) image format","shortMessageHtmlLink":"Daniel Morais - Sun Sep 23 16:32:13 PDT 2001","authorAvatarUrl":"https://avatars.githubusercontent.com/u/2100061?s=80&v=4","committerName":"Sam Lantinga","committerEmail":"slouken@libsdl.org","committedDate":"2001-09-23T23:33:06.000Z","firstParentOid":"5045cd93ecb469a30c77351145c2aa107ff05f91"},"23c8e8b300d6b71eb8573731ff6b653b5a5d68f5":{"oid":"23c8e8b300d6b71eb8573731ff6b653b5a5d68f5","message":"Added general PNM (PPM/PGM/PBM) support","shortMessageHtmlLink":"Added general PNM (PPM/PGM/PBM) support","authorAvatarUrl":null,"committerName":"Sam Lantinga","committerEmail":"slouken@lokigames.com","committedDate":"2001-03-07T16:59:28.000Z","firstParentOid":"037934027a73f8e0d354c7545adb302f8ce5e2bb"},"384fc25941aca2d10246518802a54a9c66cdff7d":{"oid":"384fc25941aca2d10246518802a54a9c66cdff7d","message":"*** empty log message ***","shortMessageHtmlLink":"*** empty log message ***","authorAvatarUrl":null,"committerName":"Sam Lantinga","committerEmail":"slouken@lokigames.com","committedDate":"2000-11-29T11:57:44.000Z","firstParentOid":"79f8b1320efd45f995976ac560f729a04f0a90d8"},"4f5ba294d3e74fd7925ccc48c46afba59da8997c":{"oid":"4f5ba294d3e74fd7925ccc48c46afba59da8997c","message":"Date: Tue, 24 Apr 2001 15:26:53 +0200 (MET DST)\nFrom: \"Mattias Engdeg?rd\" \nSubject: XPM patch to SDL_image\n\nA couple of people have requested an interface to SDL_image for loading\nSDL images directly from #included XPM files in the C source.\nWriting a separate loader for this would be silly as the code in SDL_image\nalready does the XPM parsing, so I added a new call to the SDL_image API:\n\n\tSDL_Surface *IMG_ReadXPMFromArray(char **xpm);\n\nwhich does the obvious thing. As a bonus, the code got a little cleaner as\nwell. (We probably need to increase the minor .so-version number since the\ninterface got changed but I didn't do so in my patch.)\n\nWe should perhaps include the rgb.txt colour name database as well, since\nit's quite small (~13K in binary form), but I haven't made up my mind\n\nCheers,\n\n\tMattias","shortMessageHtmlLink":"Date: Tue, 24 Apr 2001 15:26:53 +0200 (MET DST)","authorAvatarUrl":null,"committerName":"Sam Lantinga","committerEmail":"slouken@lokigames.com","committedDate":"2001-04-28T18:24:37.000Z","firstParentOid":"547b70e6c6068aec0d2394f273d64be4a82087e6"},"d8965891b046584ed20f62db71402083f9a86923":{"oid":"d8965891b046584ed20f62db71402083f9a86923","message":"*** empty log message ***","shortMessageHtmlLink":"*** empty log message ***","authorAvatarUrl":"https://avatars.githubusercontent.com/u/2100061?s=80&v=4","committerName":"Sam Lantinga","committerEmail":"slouken@libsdl.org","committedDate":"2001-12-14T12:48:43.000Z","firstParentOid":"7630018ef0dfa0d511d542dc2dbd056e95ec1492"},"6172f459030914f1391bbb37e3b2b376e2adb057":{"oid":"6172f459030914f1391bbb37e3b2b376e2adb057","message":"Improved detection of libjpeg, libpng, and libtiff at configure time","shortMessageHtmlLink":"Improved detection of libjpeg, libpng, and libtiff at configure time","authorAvatarUrl":"https://avatars.githubusercontent.com/u/2100061?s=80&v=4","committerName":"Sam Lantinga","committerEmail":"slouken@libsdl.org","committedDate":"2007-07-18T08:17:08.000Z","firstParentOid":"901203e3cee3d9b309566bdcb6a5809a8c3a60cc"}},"ignoreRevs":{"path":".git-blame-ignore-revs","present":false,"timedOut":null}},"csrf_tokens":{"/libsdl-org/SDL_image/branches":{"post":"kJBR8eidd2JudEDboCSUNa0WbceOoEwmJl0c7ivnmoGBfnziAiwFZ6BABymygZk7dWX6JPfOGuap3A5G0o0YjQ"},"/repos/preferences":{"post":"K-19oi8y3F0DHVn3CwC9X_44yY9sRRRy8Omvp5Mj9by1UHfaIzHXNclOFbh_ecQ20M-AQXSxaXotATwodv0pPA"}}},"title":"Blaming SDL_image/README at 15ba591a1b45138f6f5ae4fb6dbbc79129b4f353 ยท libsdl-org/SDL_image"}