-
Content Count
562 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Tommi Prami
-
32bit RGBA TBitmap to RGB byte stream.
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Customer had bigger than 5000x3000, which is way way too big, but that just brought this piece of code into my attention.. -
32bit RGBA TBitmap to RGB byte stream.
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Thanks everyone, so far. I'll have to check on this later. I'll stress that this is part of 3rd party component, which we can't totally rewrite, this process takes too much time sometimes so if we can speed up it a bit if just can. I was pondering that if I could define 4byte array and use Absolute trick to map that array to the result of method shown by the Anders above. I am still pretty much in a sleep, so all ideas I get how to implement this seems that it would have too much code in it. I bet there is elegant solution, possibly using pointers which I am not too good at. But have to try later. -Tee- -
32bit RGBA TBitmap to RGB byte stream.
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Input is as in normally in TBitmap with 32 bit pixels. TRGB32 = packed record B, G, R, A: Byte; end; and output should be stream of RGB-bytes in that order. .tee. -
32bit RGBA TBitmap to RGB byte stream.
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Would that still be 4 bytes? Right? Ah, should learn how to read first ๐ -
32bit RGBA TBitmap to RGB byte stream.
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
On large bitmap this takes minutes so I am pretty sure this is the place all speedups are welcome, -
32bit RGBA TBitmap to RGB byte stream.
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
One that could significantly make this faster would be to use some fast but good enough quality Algorithm to resample the image smaller first. Might be possible to do that, or not, depending how large change it would be an sure would have to be super fast resampling. But if possible with put changing the original bitmap, would be cool. -Tee- -
Where to report bugs or feature requests? Or how to make pull request?
Tommi Prami posted a topic in GExperts
Fast search did not give me any help for this. Is this OK place for feature requests/ bugs or is there better place? -Tee- PS. Oh, seems to be SourceForge, maybe? Which is not super nice, but It'll do if that is preferred place ๐ -
Where to report bugs or feature requests? Or how to make pull request?
Tommi Prami replied to Tommi Prami's topic in GExperts
Mainly because SVN doesn't support pull requequests. Make s harder to make an batch (possible but not that automated I think) -
I asked this long time ago, but still can't see the point why it is better to lock down the messages. Own messages from editing. Most of the time, I at least, write message, and might come back to check it days later, if not super urgent question. and it is very annoying to see some typo or ununderstandable (is it a word) sentence. And then can't fix it. Most major Social media platforms do not disable editing , and this is only forum I've ever used which disables editing. -Tee-
-
ANN: Parnassus Parallel Debugger
Tommi Prami replied to Dave Millington (personal)'s topic in Delphi Third-Party
Not true, in my experience, most of the time it'll pause in RTL code etc or outside of the scope (windows maybe dunno), and while stepping for ages you are sill somewhere at "unknown areas". I've never been so lucky with pausing that it'll pause in easy place to step through. Maybe this plugin will help a ton because you see them in parallel. Have not tested threading part of it yet. -
"natural" compare function for sort
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Thanks. That API works if one is using Windows, as we are. If someone has code for this, pleace share, I think would be usable for others tool. -Tee- -
"natural" compare function for sort
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
This -> https://en.wikipedia.org/wiki/Natural_sort_order -
"natural" compare function for sort
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Sorry bad example. Edited the list a bit. Not just alphabetically but numbers would always be Smaller or larger first (depending if Ascending or Descending sort). Can't remeber which this was called. Maybe natural sort etc.,., -
ANN: Parnassus Parallel Debugger
Tommi Prami replied to Dave Millington (personal)'s topic in Delphi Third-Party
Not most likely possible to implement for this plugin, but "Run until project code is reached" would be super cool. Multithreaded app is munching a way, maybe looping for ever, but don't have clue where. One could pause app, and Run until project code is reached (Or Sun until code open in IDE is reached (Named/in any thread). Don't even know would this be possible for debugger to do, but it would be super cool. It is very hard to track down where the app is spending it's time, when it does it in a place you did not expect it to be. Just throwing the idea out there, maybe it is possible or even easy to implement, dunno... -Tee- -
Uninstall does not remove Expert registration from windows registry
Tommi Prami posted a topic in MMX Code Explorer
After uninstall delphi hangs up after. - Could not find Wizard, 'C:\Program Files (x86)\Raabe Software\MMX\15\mmx_bds21.dll'. -
I've been planning on doing pretty simple mobile app with delphi. I already started it, but then backed off to ask few questions so don't have to do it 10 times. This will be my hobby project, so no hurry, but maybe some other also benefits from this. First of all I've haven't done much with FMX and what simple things I've done it still feels bit alien to me, it is so close to VCL but still so far. Also Iรคve got hunch that mobile apps have some general guidelines on technical level also, how app should be done so it'll work OK. Any best practices or development guide for newbie on mobile apps. (Where to start)? What GUI components or libraries you would recommend? What kind of GUI (in general on phone) you'd use (of course will vary greatly from app to app), but what components etc you would use and how design it, to make it behave well on Android (mainly) and iOS. Any traps and how to avoid not to fall in them (you are fine as long as you don't do this ๐ ) All other is an bonus. Looking forward on hearing your ideas on this. -Tee-
-
Add way to disable and/or change Find unit (Ctrl+F12) feature
Tommi Prami posted a topic in MMX Code Explorer
I gave MMX a spin but had to uninstall it because could not find how to disable MMX Find Unit feature and use Delphi build in instead. MMX version does not work for me. I works differently than Delphi version. I have used to use fragments to speed up the search. Like type "Form User Edit" to find OurGigaProduct.Form.Base.User.Edit or something. Would like to have both as option. way to disable override functionality and even better have way to use "keywords" in search. -Tee- -
Add way to disable and/or change Find unit (Ctrl+F12) feature
Tommi Prami replied to Tommi Prami's topic in MMX Code Explorer
I'll try this later, thanks -
Add way to disable and/or change Find unit (Ctrl+F12) feature
Tommi Prami replied to Tommi Prami's topic in MMX Code Explorer
Would it be hard to have way to disable the feature, and let user use one shipped with Delphi? Or are some other features depending in this etc? -Tee- -
Is there Any solution to collect anonymous usage telemetry (Windows)
Tommi Prami posted a topic in General Help
We would like to collect info on which are the most/least used features in out software (and possibly with which settings etc.). Is there any free or paid solution for this out there. -Tee- -
Interesting sort implementation, does not fit into usual API tough
Tommi Prami posted a topic in Algorithms, Data Structures and Class Design
Because of 4 way swap, highly tuned implementation could still be cool. https://github.com/scandum/quadsort -
Interesting sort implementation, does not fit into usual API tough
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Is there good Timsort for Delphi around? -
Interesting sort implementation, does not fit into usual API tough
Tommi Prami replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Wow... -
I am not 100% sure is it Filter Exceptions, but I'll filter quite a lot expected exceptions in unit tests, and can't do anything while it is running because Delphi keeps up jumping in front of everything all the time. Can someone confirm this? (or debunk my theory :) ) . I'll look into it, if I can temporarily disable it (Have not checked yet, had to write this message so I do not forget) -Tee-
-
Does Filter Exceptions make Delphi to steal focus
Tommi Prami replied to Tommi Prami's topic in GExperts
We are investicating ๐