Recent

Author Topic: JPG fast loading  (Read 11117 times)

derek.john.evans

  • Guest
Re: JPG fast loading
« Reply #15 on: August 11, 2015, 03:37:14 pm »
Btw, thats some interesting GUI designing you have going on there. Reminds me of some old Amiga video editing software I used.

user5

  • Sr. Member
  • ****
  • Posts: 288
Re: JPG fast loading
« Reply #16 on: August 11, 2015, 04:21:00 pm »
I found and successfully installed the package pl_win_directx into a Lazarus project and then tried to install the dspack package again. Then I got a message saying that I need directshow9. Following error messages, I downloaded and installed directshow9.pas, directdraw.pas and dxtypes.pas but I kept getting error messages so I gave up. I've heard that directx9 includes directshow9 but I don't know if installing directx9 will help me.

Sure is a big hassle to install DSpack. I've been searching this forum's archives and trying to do my homework but at the moment I'm stuck. I really wanted to try dspack because it looked pretty cool. derek.john.evan, I will check out the links you posted and thanks.

briantokyo

  • New Member
  • *
  • Posts: 13
Re: JPG fast loading
« Reply #17 on: August 12, 2020, 05:33:11 am »
In Delphi this is ultra FAST: https://blog.synopse.info/?post/2010/03/14/Fast-JPEG-decoder-using-SSE/SSE2

but if you are on a W10 machine, GDI+ is probably faster: https://github.com/synopse/mORMot/blob/master/SynGdiPlus.pas

SynGDIPlus.TJpegImage.Create -> load -> .ToBitmap

avra

  • Hero Member
  • *****
  • Posts: 2044
    • Additional info
Re: JPG fast loading
« Reply #18 on: August 12, 2020, 10:25:10 am »
Sure is a big hassle to install DSpack. I've been searching this forum's archives and trying to do my homework but at the moment I'm stuck.
DSPack is 8 years old. At the time, it used to work with CodeTyphon fork of Lazarus and it's pl_win_directx which also worked directly in Lazarus. Since then CodeTyphon has changed quite a bit, and decided to change the names of many classes, components and even files, breaking Lazarus compatibility at many levels. I didn't like such change so I made ct2laz tool first, and then later ct4laz which can be downloaded via OPM. This means that DSPack should be more close to Lazarus then new CodeTyphon. Enough for introduction.

You should show me the exact error message. If I have to guess it may be 2 things:
1) If you can not start IDE then you need to put d3dx81ab.dll next to your Lazarus EXE. You need to have 32bit IDE version for this.
2) I have just checked and it seams that OPM does not deliver my original pl_0_libs and many DLLs were deleted. OPM version has 1MB and my version has 23MB. Therefore I advise you to try to download all needed pl_* packages from directly from my site (https://bitbucket.org/avra/ct4laz/downloads/), uninstall OPM version and install my original version.

When DLLs are missing, pl_* packages install fine, but lots of examples simply do not work.

You should also read about this DirectX problem on Win10:
https://forum.lazarus.freepascal.org/index.php/topic,39508.msg280694.html#msg280694
« Last Edit: August 12, 2020, 10:31:18 am by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

 

TinyPortal © 2005-2018