Lintlafatso tse 'maloa tse kholo ho laeborari ea ho hlakisa litšoantšo tsa SAIL li phatlalalitsoe, li fana ka mongolo oa C oa li-codec ho tsoa ho sebali sa setšoantšo sa KSquirrel sa khale se sa sebetse, empa ka API ea boemo bo holimo le lintlafatso tse ngata. Laebrari e se e loketse ho sebelisoa, empa e ntse e ntlafatsoa khafetsa. Litšebelisano tsa Binary le API ha li so netefatsoe. Pontšo.
Likarolo tsa SAIL
- E potlakile ebile e bonolo ho e sebelisa laebraring;
- E ngotsoe ka C11 e nang le litlamo ho C++17;
- Tšehetso ea liforomo tsa litšoantšo e kenngoa ts'ebetsong ke li-codec tse jereng ka matla, tse ka tlosoang 'me tsa eketsoa ntle le lehlakore la bareki;
- Ho bala ho tsoa faeleng, mohopolong, mehloling ea hau;
- Ts'ehetso bakeng sa litšoantšo tse nang le maqephe a mangata le a animated;
- Ts'ehetso ea lifomate tse tsebahalang e ntse e etsoa ho sebelisoa lilaebrari tse tsamaellanang libjpeg, libpng, jj.
- Cross-platform: Linux, Windows, macOS;
- "Ho hlahloba" - ho fumana tlhahisoleseling mabapi le setšoantšo ntle le ho khetholla lipikselse;
- Mabitso a mekhatlo ea batho (ha ho FIMULTIBITMAP);
- Ho bala le ho ngola litlaleho tsa ICC;
- E romella lipikselse tsa RGBA kapa BGRA;
- E khutlisetsa lipikselse tsa mantlha (mohlala, CMYK) haeba e tšehetsoa ke codec;
Lethathamo la liphetoho ho tloha khatisong e fetileng:
- API e ntlafalitsoe haholo ebile e nolofalitsoe. E ne e le: struct sail_context *context; SAIL_TRY(sail_init(&context)); struct sail_image *setšoantšo; char e sa ngolisoang *setšoantšo_pixels; SAIL_TRY(sail_read(tsela, moelelo, &setšoantšo, (lefela **)&image_pixels)); ... mahala(setšoantšo_pixels); sail_destroy_image(setšoantšo);
Joale: theha sail_image *setšoantšo; SAIL_TRY(seile_bala_faele(tsela, &setšoantšo); ... seile_destroy_image(setšoantšo);
- E ekelitse liforomo tsa BMP, GIF, TIFF;
- Ho fumaneha ho VCPKG li-platform tsohle ntle le UWP;
- Liteko tsa ts'ebetso ea benchmark li phatlalalitsoe;
- Tlamahano ea C++ e tlositsoe ho C++17;
- Mesebetsi ea kabo ea memori e bokelloa sebakeng se le seng e le hore e ka nkeloa sebaka ke ea hau habonolo, empa hajoale sena se ka etsoa feela ka ho khutlisa;
- Basebelisi joale ba ka sebelisa CMake find_package() ho hokela SAIL;
- E ekelitse bokhoni ba ho bokella ka statically (SAIL_STATIC=ON);
- E kentse bokhoni ba ho bokella li-codec tsohle ho laeborari e le 'ngoe e tloaelehileng (SAIL_COMBINE_CODECS=ON);
- Mosebetsi o se o qalile ho kenyelletsa liteko tse thehiloeng ho µnit;
Mokhoa oa ho kenya o khothalelitsoeng
- Linux - vcpkg, melao ea Debian le eona e teng
- Windows - vcpkg
- macOS - brew
Source: opennet.ru