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

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

Mirror:Random
Showing: m68k-amigaos 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.00
Architecture:m68k-amigaos; generic
Date:2026-07-26
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:382

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

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:-
                           '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:-
  ---------

  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...
                   (Now working on a DCT-II, 1D transposing method for a 2D
                   transform.)

  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.)

  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.)

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

  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.

Now working on a naive 1D to 2D Discrete Cosine Transform using a 1D DCT-II
transposing method; adding some more images too.

----------------------------------------------------------------------------
 
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.

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

                                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-10 09:20 00000000  DCT-II_IDCT-II_DCT-III/
       0  Stored        0   0% 2026-07-18 17:33 00000000  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/
       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-07-16 16:59 00000000  DCT-II_IDCT-II_DCT-III/DCT_IDCT_FCT/DCT_IDCT_Scripts/
    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-07-25 18:29 00000000  DCT-II_IDCT-II_DCT-III/Docs/
    7202  Defl:N     2657  63% 2026-07-25 18:28 3592f720  DCT-II_IDCT-II_DCT-III/Docs/DCT-II_IDCT-II_DCT-III.readme
    1513  Defl:N      717  53% 2026-07-13 14:14 db272d0c  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
    1099  Defl:N      581  47% 2026-07-13 14:16 5a8f3538  DCT-II_IDCT-II_DCT-III/Docs/FCT_LEE.txt
    2130  Defl:N      995  53% 2026-07-13 12:58 3e16730d  DCT-II_IDCT-II_DCT-III/Docs/The_Cosine_Transform.txt
       0  Stored        0   0% 2026-07-10 09:22 00000000  DCT-II_IDCT-II_DCT-III/Pics/
       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
--------          -------  ---                            -------
 1865343          1726998   7%                            33 files
Page generated in 0.04 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>