IMG_isTIF(3)
π IMG_isTIF(3) β the TIFF detector, bestie π
okay so welcome to SDL_image3 FUNCTIONS, bestie β this page is literally all about IMG_isTIF(3), and itβs giving βtiny peek, big verdictβ energy β¨
πΈ NAME πΈ
IMG_isTIF β detect TIFF image data on a readable/seekable SDL_IOStream.
β¨ SYNOPSIS β¨
#include <SDL3_image/SDL_image.h>
bool IMG_isTIF(SDL_IOStream *src);
thatβs the whole signature, no cap π
π¦ DESCRIPTION π¦
so this function attempts to determine if a file is a given filetype β in this case, TIFF β and it reads the least amount possible from the SDL_IOStream (usually just a few bytes). tiny sniff, iconic behavior π
there is no distinction made between βnot the filetype in questionβ and basic i/o errors. like, it will not tattle about which one happened π
this function will always attempt to seek src back to where it started when this function was called, but it will not report any errors in doing so. but assuming seeking works, this means you can immediately use this with a different IMG_isTYPE function, or load the image without further seeking. bestie-friendly chaining, periodt π«Ά
you do not need to call this function to load data; SDL_image can work to determine file type in many cases in its standard load functions. so this is a vibe check, not a mandatory step π
π FUNCTION PARAMETERS π
srcβ a seekable/readableSDL_IOStreamto provide image data.
π RETURN VALUE π
returns true if this is TIFF data, false otherwise. thatβs the whole mood π
π¦ AVAILABILITY π¦
this function is available since SDL_image 3.0.0.
π SEE ALSO π
go read these next, bestie:
IMG_isANI(3)IMG_isAVIF(3)IMG_isBMP(3)IMG_isCUR(3)IMG_isGIF(3)IMG_isICO(3)IMG_isJPG(3)IMG_isJXL(3)IMG_isLBM(3)IMG_isPCX(3)IMG_isPNG(3)IMG_isPNM(3)IMG_isQOI(3)IMG_isSVG(3)IMG_isWEBP(3)IMG_isXCF(3)IMG_isXPM(3)IMG_isXV(3)
okay thatβs the whole page π signing off from the footer tea: source is SDL_image, version is SDL_image 3.4.4, and the title is IMG_isTIF(3) β the footer didnβt give us a date, so weβre not inventing one, bestie ππ«Ά
π¦ where this page comes from
- ubuntu stonking: libsdl3-image-doc 3.4.4+ds-2 Β· zlib/libpng AND HPND-like AND zlib-like-permissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms