AminetAminet
Search:
85474 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/src/DCT-II_IDCT-II_DCT-III.zip

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:1D, 2D, Cosine Transforms and Inverse.
Author: wisecracker.bazza at gmail.com (Barry_Walker, G0LCU)
Uploader:wisecracker bazza gmail com (Lincs Amiga Group, LAG)
Type:dev/src
Version:0.10.10
Architecture:m68k-amigaos; generic
Date:2026-08-09
Distribution:Aminet
Download:dev/src/DCT-II_IDCT-II_DCT-III.zip - View contents
Readme:dev/src/DCT-II_IDCT-II_DCT-III.readme
Downloads:576

=============================================================================

Architectures: Classic AMIGA A1200(HD), FS-UAE on OSX 10.15.x and Mint 22.3.
----------------------------------------------------------------------------

  MINIMUM Requirements Are:-
  --------------------------

  Amiga environment:-
  -------------------
    Classic STOCK AMIGA A1200(HD), default OS3.0x install.
    FS-UAE on Intel APPLE OSX 10.15.x and GNU/Linux Mint Cinnamon 22.3.
    Standard default AMIGA OS_3.0.x install, or better still a highly
    expanded AMIGA with extra RAM will speed things up considerably.
    Python Version 1.4.0 on Classic AMIGA A1200(HD) OS3.0x:-

               https://aminet.net/package/dev/lang/Python_14

    This version that requires no extra hardware at all:-
                           'python_020_ieee'

    Python Version 1.5.2 to 2.0.1 on '030+ highly expanded AMIGAs OS3.0x.
    AmigaMicropython340 on Classic AMIGA A1200(HD) OS3.0x.

            https://aminet.net/package/dev/misc/AmigaMicropython

    Also as a matter of interest these Python scripts also work inside the
    excellent ADE, the *NIX emulation, but the STOCK AMIGA A1200(HD) needs
    at least an extra 4MB of FastRAM to do so:-

                   https://aminet.net/package/dev/gcc/ADE

-----------------------------------------------------------------------------

  Other environments:-
  --------------------
    Any Python version from 2.x.x to 3.15.0b3 on Intel APPLE OSX 10.15.7.
    Any Python Version from 1.3.0 to 3.12.x on GNU/LINUX MINT CINNAMON 22.3.

    It has NOT been tested on WinUAE emulation of the above, Windows, and
    WSL[-2], with a Python Version installed.
    It has NOT been tested on any 'M' series APPLE gear either.

    It would be nice to know if they do work, along with a snapshot of the
    FCT_LEE.py version running, along with the Python Version running it and
    sent to my email addy above...

    TIA...

=============================================================================

  History:-
  ---------

  09-08-2026.
  -----------
  Version 0.10.10. This is probably going to be the final upload.
                   Added a 1D DCT-II to 2D Cosine Transform, no Inverse.
                   Also more images to show that it works. Again technically
                   JPEG compatible using "scipy's" "norm='ortho'" method.
                   ----------------------------------------------------------
                   Also a _Gemini_AI_ created, highly modified for backwards
                   compatibility, FCT_LEE_1D_2D Cosine Transform that 
                   _Gemini_ says CANNOT be done over the huge Python Versions
                   spread, see the pictures, and read the code for more 
                   information! Well, this is the result; and the fact that
                   humans are not only able to Literally think, AI thinking,
                   BUT, Laterally and Orthogonally also! One up for humans!
                   (Red rag to a bull to me! <wink>)
                   ----------------------------------------------------------
                   Added a 'C_Bonus' drawer inside the 'DCT_IDCT_Scripts'
                   drawer with a minimal DCT-II.c C source and other bits.

                   I am thinking of Wavelet Transforms next, although there
                   is a minimal basic Haar Wavelet Transform of mine here:-

                   https://aminet.net/package/dev/src/DFT_IDFT_DWT_FFT

  25-07-2026.
  -----------
  Version 0.10.00. Added a 2 Dimension Cosine Transform and its Inverse.
                   Also images to show they work. They are technically JPEG
                   compatible using "scipy's" "norm='ortho'" method.
                   This is VERY naive and has 4 nested 'for' loops in the
                   Transform and 4 nested 'for' loops in its Inverse, so
                   don't expect lightning speed...
                   (Total 526 DLs on 09-08-2026, UK BST.)

  10-07-2026.
  -----------
  Version 0.01.00. This version now includes, Byeong Gi Lee's, RADIX-2, Fast
                   Cosine Transform. Again, naive, unnormalised, and
                   conforming to scipy's default of, 'type=2'; "norm=None",
                   or, "norm='backward'".
                   (Added Intel APPLE pics of Python Version 3.15.0b3
                   running these first two uploads.)
                   (Total 346 DLs on 25-07-2026, UK BST.)

  25-06-2026.
  -----------
  Version 0.00.10. Taster upload to see if people are interested.
                   The archive is (C)2026, Barry Walker, and issued as PD,
                   Creative Commons CC0 licence.
                   (132 DLs on 10-07-2026, UK BST.)

=============================================================================

  General:-
  ---------

(Apologies for any typos, etc...)

The Discrete Cosine Transform is probably one of the most important
algorithms developed in modern history.
See the 'The_Cosine_Transform.txt' for more information.

As is normal for me nowadays I post code recipes that work on ancient
versions of current languages that the AMIGA has in the AMINET archive.
In this case Python 1.4.0 for an absolutely STOCK AMIGA A1200(HD).
These recipes are designed to work on _ALL_ platforms and Python Versions
from at least, (1.3.0)-1.4.0 to 3.13.x without ANY modification at all.
Now tested on Intel, APPLE OSX 10.15.7, Python Version 3.15.0b3, as of
25-07-2026, see photos.

-----------------------------------------------------------------------------
 
In ALL of the images you will notice that the floating point
resolution/precision has increased from very early to later and current
versions of Python.

-----------------------------------------------------------------------------

  !!! REMEMBER !!!
  ----------------

The Classic AMIGA does not have the luxuries of the current, (as of the
above date), Python Version 3.15.0b3 and its massive (C)2026_Pytho[-]System,
so these recipes might help towards using what we have and inspiring others
to add to them. They can be anything, not just mathematics.
(Also 'numpy' arrays are not like Python 'list' type arrays, so be aware!)
The difficulty is learning and memorising _ALL_ of the differences between
Python Versions, 1.3.0 to 3.15.0b3; there are a great many, believe me!

(Creating workarounds has become second nature to me nowadays.)

This also applies to other languages in the AMINET ecosystem.

And finally, it's better to have something for a retro-computer that does
NOT have that facility, TO have it, than TO NOT have it at all, no matter
how fast the code may or may not be in use!

=============================================================================

                                IMPORTANT:-
                                -----------

    The Legal Stuff:-
    -----------------

    The authors are not responsible for any damage to, or loss of, or
    failure of equipment or data caused in any way by the use of this code.

    There is NO warranty with the use of this software release and
    YOU USE IT AT YOUR OWN RISK.

-----------------------------------------------------------------------------

    Testing Evaluation:-
    --------------------

    Classic STOCK AMIGA A1200(HD). 
    FS-UAE emulation of Classic AMIGA test conditions were/are running
    standard OS 3.0.x and using standard ~topaz 8~ fonts throughout.

    I have no idea what strange configuration setups will create so refer
    to the ~The Legal Stuff~ above.

    The whole archive was centred around the AMIGA!
    APPLE OSX 10.15.x and MY Linux flavour were included to make the code as
    universal as possible without any modification at all.

=============================================================================

    Barry Walker, G0LCU.
    wisecracker.bazza@gmail.com

-----------------------------------------------------------------------------

    A place to visit, literally and URL wise:-
                    https://lincsamiga.org.uk/wordpress/

-----------------------------------------------------------------------------

    A very useful HardWare related site, (C) Anthony Hoffman, for
    modifications, schematics, repairs and the like is:-

                          http://amiga.serveftp.net/

=============================================================================



Contents of dev/src/DCT-II_IDCT-II_DCT-III.zip
Archive:  /home/aminet/aminet_root/doc/dev/src/DCT-II_IDCT-II_DCT-III.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Stored        0   0% 2026-07-26 15:02 00000000  DCT-II_IDCT-II_DCT-III/
       0  Stored        0   0% 2026-08-03 10:07 00000000  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/
       0  Stored        0   0% 2026-07-29 12:17 00000000  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/
    3640  Defl:N     1362  63% 2026-07-25 09:56 377ebfa0  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/DCT-II_1D_2D.py
    1130  Defl:N      571  50% 2026-07-04 17:00 b2344fa7  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/DCT_IDCT_2D_Numpy_Scipy.py
       0  Stored        0   0% 2026-08-08 21:44 00000000  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/Gemini_AI_FCT_LEE_1D _2D/
  143804  Defl:N   138937   3% 2026-07-27 11:19 74beeab2  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/Gemini_AI_FCT_LEE_1D _2D/FCT_1D_2D_Gemini-1.png
  109397  Defl:N   107209   2% 2026-07-27 11:21 8b7b57fd  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/Gemini_AI_FCT_LEE_1D _2D/FCT_1D_2D_Gemini-2.png
  220136  Defl:N   198617  10% 2026-07-26 10:59 5467ad54  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/Gemini_AI_FCT_LEE_1D _2D/FCT_LEE_1D_2D-AMIGA.png
    8368  Defl:N     3472  59% 2026-08-05 14:24 68e1a772  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/Gemini_AI_FCT_LEE_1D _2D/FCT_LEE_1D_2D_AMIGA.py
  298997  Defl:N   280105   6% 2026-07-26 15:59 c3f95d57  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/Gemini_AI_FCT_LEE_1D _2D/FCT_LEE_1D_2D_APPLE.png
  230707  Defl:N   216353   6% 2026-07-29 10:43 969b0696  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT-II_1D-2D_Scripts/Gemini_AI_FCT_LEE_1D _2D/FCT_LEE_1D_2D_LINUX.png
       0  Stored        0   0% 2026-07-12 11:19 00000000  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_2D_Scripts/
    6645  Defl:N     2317  65% 2026-07-12 11:19 9cd7adcc  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_2D_Scripts/DCT_IDCT_2D_All.py
    1130  Defl:N      571  50% 2026-07-04 17:00 b2344fa7  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_2D_Scripts/DCT_IDCT_2D_Numpy_Scipy.py
       0  Stored        0   0% 2026-08-03 10:07 00000000  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/
       0  Stored        0   0% 2026-08-09 03:56 00000000  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/C_Bonus/
    2447  Defl:N     1074  56% 2026-08-04 14:21 401b6835  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/C_Bonus/DCT-II.c
     971  Defl:N      476  51% 2026-08-09 03:55 14a3461d  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/C_Bonus/DCT-II.c_Notes.txt
  116068  Defl:N   102795  11% 2026-08-02 21:50 6b11fdd0  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/C_Bonus/DCT-II_AMIGA.png
   25236  Defl:N     8945  65% 2026-08-04 14:37 6d084a6d  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/C_Bonus/DCT-II_GCC_AMIGA.exe
  810808  Defl:N   339211  58% 2026-08-04 14:23 53630482  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/C_Bonus/DCT-II_GNU_LINUX.exe
  132362  Defl:N   124257   6% 2026-08-04 14:11 f1ea75d2  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/C_Bonus/DCT-II_LINUX.png
   12360  Defl:N     6530  47% 2026-08-04 14:38 f19a7b06  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/C_Bonus/DCT-II_VBCC_AMIGA.exe
    2635  Defl:N     1167  56% 2026-07-06 11:16 1b15920d  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/DCT-II_Minimal.py
    1495  Defl:N      597  60% 2026-07-05 10:49 ac2bfb2a  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/DCT_IDCT_Numpy_Scipy.py
    2661  Defl:N     1197  55% 2026-07-16 16:59 472b0657  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/IDCT-II_DCT-III_Minimal.py
       0  Stored        0   0% 2026-07-14 11:59 00000000  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/FCT_Scripts/
    1495  Defl:N      597  60% 2026-07-05 16:20 ac2bfb2a  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/FCT_Scripts/DCT_IDCT_Numpy_Scipy.py
    4633  Defl:N     1623  65% 2026-07-14 11:59 6ec0546b  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/FCT_Scripts/FCT_LEE.py
       0  Stored        0   0% 2026-08-09 04:03 00000000  DCT-II_IDCT-II_DCT-III/Docs/
    8685  Defl:N     3114  64% 2026-08-09 04:00 975bb51e  DCT-II_IDCT-II_DCT-III/Docs/DCT-II_IDCT-II_DCT-III.readme
    1514  Defl:N      717  53% 2026-08-03 13:29 257e1dbf  DCT-II_IDCT-II_DCT-III/Docs/DCT-II_IDCT-II_minimal.txt
    1704  Defl:N      796  53% 2026-07-13 12:57 b4f597c9  DCT-II_IDCT-II_DCT-III/Docs/DFT_Multiplier.txt
    1100  Defl:N      581  47% 2026-08-03 13:27 dbb6c6bc  DCT-II_IDCT-II_DCT-III/Docs/FCT_LEE.txt
    1859  Defl:N      899  52% 2026-08-03 13:28 3a159ade  DCT-II_IDCT-II_DCT-III/Docs/The_Cosine_Transform.txt
       0  Stored        0   0% 2026-07-25 19:43 00000000  DCT-II_IDCT-II_DCT-III/Pics/
       0  Stored        0   0% 2026-07-18 19:34 00000000  DCT-II_IDCT-II_DCT-III/Pics/DCT-II_1D-2D/
  199758  Defl:N   180286  10% 2026-07-12 11:47 f08694ea  DCT-II_IDCT-II_DCT-III/Pics/DCT-II_1D-2D/DCT-II_1D_2D_AMIGA.png
  190417  Defl:N   184599   3% 2026-07-13 18:07 a2913ef3  DCT-II_IDCT-II_DCT-III/Pics/DCT-II_1D-2D/DCT-II_1D_2D_APPLE.png
  154354  Defl:N   144954   6% 2026-07-13 16:43 c41bf63e  DCT-II_IDCT-II_DCT-III/Pics/DCT-II_1D-2D/DCT-II_1D_2D_LINUX-1.png
  170771  Defl:N   160486   6% 2026-07-13 16:53 e4b4457d  DCT-II_IDCT-II_DCT-III/Pics/DCT-II_1D-2D/DCT-II_1D_2D_LINUX-2.png
       0  Stored        0   0% 2026-07-08 17:16 00000000  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT/
  186510  Defl:N   167246  10% 2026-06-17 15:43 87b0df7a  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT/DCT-II_DCT-III_AMIGA.png
   69644  Defl:N    65648   6% 2026-06-15 20:45 c50f30af  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT/DCT-II_DCT-III_Formulae.png
  254786  Defl:N   248492   3% 2026-06-17 14:37 39fd0db4  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT/DCT-II_DCT-III_LINUX.png
  126058  Defl:N   121953   3% 2026-07-06 18:39 412f5aa3  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT/DCT_IDCT_FCT_APPLE.png
       0  Stored        0   0% 2026-07-11 19:18 00000000  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT_2D/
  222203  Defl:N   200740  10% 2026-07-04 13:03 3f2ae3cd  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT_2D/DCT_IDCT_2D_All-1.png
  257385  Defl:N   241559   6% 2026-07-04 12:34 f5f1904e  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT_2D/DCT_IDCT_2D_All-2.png
  144496  Defl:N   137293   5% 2026-07-10 12:34 79f6a62f  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT_2D/DCT_IDCT_2D_All-3.png
  159322  Defl:N   144974   9% 2026-07-04 12:51 3826a033  DCT-II_IDCT-II_DCT-III/Pics/DCT_IDCT_2D/DCT_IDCT_2D_Numpy_Scipy.png
       0  Stored        0   0% 2026-07-08 17:17 00000000  DCT-II_IDCT-II_DCT-III/Pics/FCT/
  126058  Defl:N   121953   3% 2026-07-06 18:39 412f5aa3  DCT-II_IDCT-II_DCT-III/Pics/FCT/DCT_IDCT_FCT_APPLE.png
  171478  Defl:N   153941  10% 2026-06-21 17:58 bb52332d  DCT-II_IDCT-II_DCT-III/Pics/FCT/FCT_LEE_AMIGA.png
  113061  Defl:N   109384   3% 2026-06-21 17:40 6ecbdd35  DCT-II_IDCT-II_DCT-III/Pics/FCT/FCT_LEE_LINUX.png
--------          -------  ---                            -------
 4698288          3927598  16%                            56 files
Page generated in 0.03 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>