Search found 88 matches

by Iczer
Oct 22, 2022 14:12
Forum: Beginners
Topic: Strange Error on Swap()
Replies: 2
Views: 223

Re: Strange Error on Swap()

Thanks!
by Iczer
Oct 22, 2022 13:11
Forum: Beginners
Topic: Strange Error on Swap()
Replies: 2
Views: 223

Strange Error on Swap()

I'm getting strange error at Swap(): Type tagParentUDT iCount as long iCountMAX as long ptMyUDT as tagMyUDT Ptr Declare sub SomeSubName() End Type Dim As tagParentUDT Ptr ptParentUDT = New tagParentUDT ptParentUDT->iCount = 10 ptParentUDT->iCountMAX = 10 ptParentUDT->ptMyUDT = New tagMyUDT[ptParentU...
by Iczer
Sep 11, 2022 11:07
Forum: General
Topic: undefined reference to `__popcnt'
Replies: 20
Views: 654

undefined reference to `__popcnt'

I'm trying to compile curl library with http3 support, so I compiled and added nghttp3 and ngtcp2 static libraries - it compiled successfully under mingw64 7.2. But when I added resulted curl static library to FreeBasic 1.09 (gcc 5.2, gcc 8.1) project - compilation fails with: C:/Temp/nghttp3-0.7.0/...
by Iczer
Aug 16, 2022 11:33
Forum: Libraries Questions
Topic: mingw64 compiled dll - missing version on dll properties
Replies: 2
Views: 320

mingw64 compiled dll - missing version on dll properties

just wanted to check/compare actual version of freshly compiled libavif.dll and discovered that it has none - on right-click->properties in explorer there a no "version" tab in displayed window. Going by library sources, version should be "0.10.1.0". Did I miss something on confi...
by Iczer
Aug 13, 2022 14:28
Forum: Beginners
Topic: Avif image - read/convert to dibitmap
Replies: 33
Views: 1970

Re: Avif image - read/convert to dibitmap

just wanted to check actual version of compiled libavif.dll and discovered that it has none - on right-click->properties in explorer there a no "version" tab in displayed window. Going by library sources, version should be "0.10.1.0". Did I miss something on configure(cmake) or c...
by Iczer
Aug 03, 2022 17:14
Forum: Beginners
Topic: Avif image - read/convert to dibitmap
Replies: 33
Views: 1970

Re: Avif image - read/convert to dibitmap

Solved! Just set desired bit depth and format before converting from YUV to RGB... While avifDecoderNextImage(decoder) = AVIF_RESULT_OK avifRGBImageSetDefaults(@_rgb, decoder->image) _rgb.depth = 8 _rgb.format = AVIF_RGB_FORMAT_BGR avifRGBImageAllocatePixels(@_rgb) avifImageYUVToRGB(decoder->image, ...
by Iczer
Jul 31, 2022 14:58
Forum: Beginners
Topic: Avif image - read/convert to dibitmap
Replies: 33
Views: 1970

Re: Avif image - read/convert to dibitmap

problem was - freeimage expects raw images/byte arrays in ARGB format but image was in RGBA, color masks dont work for some reason (or maybe it i'm not doing it right...). Anyway, this works for 8bit per channel images: Function Preview_AVIF(ByVal pwsPathTo_ImageToShow As WString Ptr, ByVal hWndMain...
by Iczer
Jul 30, 2022 22:20
Forum: Beginners
Topic: Avif image - read/convert to dibitmap
Replies: 33
Views: 1970

Re: Avif image - read/convert to dibitmap

with disabled multi-threading in aom codec it works in XP... I'm testing avif-preview GUI based on freeimage and avif lib's , but run into problem with wrong colors: ' ============================================================================================= #Pragma Once ' ..........................
by Iczer
May 26, 2022 15:36
Forum: Beginners
Topic: Avif image - read/convert to dibitmap
Replies: 33
Views: 1970

Re: Avif image - read/convert to dibitmap

I tried to load (just load) libavif.so (x64, renamed to .dll) but get "InitOnceBeginInitialize not found in KERNEL32.dll." (I'm need it under WinXP x64) So I tried to compile library from source, but after running cmake and enabling AVIF_CODEC_AOM, I get: libavif: Enabling warnings for GCC...
by Iczer
May 25, 2022 16:41
Forum: Beginners
Topic: Avif image - read/convert to dibitmap
Replies: 33
Views: 1970

Re: Avif image - read/convert to dibitmap

main project is here: https://github.com/AOMediaCodec/libavif
fresh static library builds in vs2019 is here: https://ci.appveyor.com/project/louquil ... /artifacts
by Iczer
May 24, 2022 20:53
Forum: Beginners
Topic: Avif image - read/convert to dibitmap
Replies: 33
Views: 1970

Avif image - read/convert to dibitmap

I use for image-related tasks well known library - FreeImage.dll, but recently appeared avif-format and its not supported. It is possible to find pre-compiled libavif, but example-decode is in C and it not clear how to re-scale image and convert it to HBITMAP ( convert to freebasic, windows) // Copy...
by Iczer
Jan 28, 2022 17:04
Forum: Beginners
Topic: glib and ptr ptr variables
Replies: 3
Views: 471

Re: glib and ptr ptr variables

Thanks!
by Iczer
Jan 28, 2022 15:38
Forum: Beginners
Topic: glib and ptr ptr variables
Replies: 3
Views: 471

glib and ptr ptr variables

what would be correct way to write code for function g_file_get_contents() https://docs.gtk.org/glib/func.file_get_contents.html This: Dim As ZString Ptr psFile_Content If g_file_test(psFile_FullFilePath, G_FILE_TEST_EXISTS) Then Dim As gchar ptr ptr gsFile_Content Dim As gsize Ptr giFile_ContentLen...
by Iczer
Jan 15, 2022 11:40
Forum: Sources, Examples, Tips and Tricks
Topic: The beauty / magic of math (28 examples) Vol. II (Vol. 1 - 12 build 2022-01-16)
Replies: 25
Views: 5104

Re: The beauty / magic of math (28 examples) Vol. II (Vol. 1 - 12)

Sounds interesting! Thanks!
As side note - is there a possibility to transform it to transparent windowless kind of animated splash-screen with counter/progress bar to show at main program start/busy times? It would be great to have something this beautiful...
by Iczer
Dec 06, 2021 20:36
Forum: Beginners
Topic: Union in Union
Replies: 7
Views: 984

Re: Union in Union

Thanks! This working but... there a problem or bug or I just not understand how it's should work. I mean - setting main value would not affect/clear any of bits placed after embedded union: Union tagStateInfo Dim As ULongInt Value Type Dim As ULongInt Is_Opt_01 : 1 Dim As ULongInt Is_Opt_02 : 1 Dim ...