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

dev/c/C_V44-DT.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:How to: OS3 V40-44 PicDatatype in 100% C
Author:Andreas R. Kleinert
Uploader:info ar-kleinert de
Type:dev/c
Version:44.1
Architecture:m68k-amigaos >= 3.0.0; ppc-morphos >= 1.4.5
Date:2008-03-18
Download:http://aminet.net/dev/c/C_V44-DT.lha - View contents
Readme:http://aminet.net/dev/c/C_V44-DT.readme
Downloads:1455

  samplePNM.datatype and source-code V44.2 (18.3.2008)
  (C) 1996-2008 by Andreas R. Kleinert. All rights reserved.

  ---
  This small sample datatype source code demonstrates, how to completely
  write an Amiga OS 3 datatype (V40-44) without any assembler stubs
  or compiler/linker tricks in PURE C source code (currently SAS/C-based:
  see Aminet:dev/c/CLib37x.LHA on how to adjust for some other compilers).

  You may e.g. use this example source code to write more portable
  Amiga OS 3 datatypes to allow easier porting of these
  to other Amiga OS-derived operating systems (OS4/MOS).

  Translate your 68k-assembler datatype startup-codes smartly
  to C by simply using this source-code as an advice how to do it.

  As a common case, a datatype of class picture, supporting
  PNM-PGM (P5) and PNM-PPM (P6) has been used as an example.

  With picture.datatype V40-42 only PGM is supported,
  and with picture.datatype V43+ reading of PPM is offered as well,
  while encountering an PGM file under V43 causes a fallback to V40
  routines (could have been done differently, but was not necessary
  here just for demonstration). Optionally, an alpha channel
  can be generated.

  For testing this datatype, simply use a tool from the NetPBM package
  (or maybe for example a tool supporting sview5.library) and save
  a graphics in the binary PGM or PPM format (P5/P6 of the PNM series).

  Then install this datatype and try loading the file via MultiView.
  Should work fine.

  History:

  V43.21 (18.3.08):  - fixed possible blitter race condition

  V44.1 (11.2.2006): - rework of C_V43-DT.lha

  ---
  Feel free to use this source for own projects.

  It is allowed to be spread and distributed anywhere, as far
  as my consent is concerned.

  This work was only roughly inspired by David Junod's original
  example source codes for datatypes and the subsequent NKDs.

  All mentioned trademarks are subject to their owners.


Contents of dev/c/C_V44-DT.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 2715    5092  53.3% -lh5- c7f8 Mar 18 19:22 C_V44-DT/classes/datatypes/samplePNM.datatype
[generic]                 1158    2129  54.4% -lh5- 7379 Mar 18 19:24 C_V44-DT/C_V44-DT.readme
[generic]                   77      86  89.5% -lh5- cea4 Feb 12  2006 C_V44-DT/devs/datatypes/PGM
[generic]                  281     467  60.2% -lh5- a772 Feb 12  2006 C_V44-DT/devs/datatypes/PGM.info
[generic]                   79      86  91.9% -lh5- 8ae0 Feb 12  2006 C_V44-DT/devs/datatypes/PPM
[generic]                  281     467  60.2% -lh5- a772 Feb 12  2006 C_V44-DT/devs/datatypes/PPM.info
[generic]                  429     942  45.5% -lh5- fec6 Feb 12  2006 C_V44-DT/dt_source/include/class/classbase.h
[generic]                 3553   13921  25.5% -lh5- 93aa Mar 18 19:22 C_V44-DT/dt_source/libfuncs.c
[generic]                  368     855  43.0% -lh5- af6d Feb 12  2006 C_V44-DT/dt_source/libfuncs.h
[generic]                 1544    5059  30.5% -lh5- 3dde Mar 18 19:22 C_V44-DT/dt_source/LibInit.c
[generic]                 2715    5092  53.3% -lh5- c7f8 Mar 18 19:22 C_V44-DT/dt_source/samplePNM.datatype
[generic]                  139     179  77.7% -lh5- 41df Feb 12  2006 C_V44-DT/dt_source/SCOPTIONS
[generic]                  156     408  38.2% -lh5- 0478 Oct 25  1996 C_V44-DT/dt_source/smakefile
[generic]                  104     119  87.4% -lh5- 85f0 Oct 25  1996 C_V44-DT/dt_source/smakefile.wth
[generic]                 1216    4281  28.4% -lh5- 9e88 Feb 12  2006 C_V44-DT/dt_source/StartUp.c
[generic]                  291     517  56.3% -lh5- a80e Feb 12  2006 C_V44-DT/Readme.SAS
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        16 files   15106   39700  38.1%            Mar 18 18:55

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>