home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / graphics / 9046 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  5.2 KB

  1. Path: sparky!uunet!olivea!decwrl!pa.dec.com!hydrox.enet.dec.com!mek
  2. From: mek@hydrox.enet.dec.com (Mark Klamerus)
  3. Newsgroups: comp.graphics
  4. Subject: ddif converters
  5. Message-ID: <9208211432.AA15200@enet-gw.pa.dec.com>
  6. Date: 21 Aug 92 14:32:17 GMT
  7. Lines: 124
  8. X-Received: by usenet.pa.dec.com; id AA19872; Fri, 21 Aug 92 07:32:25 -0700
  9. X-Received: by enet-gw.pa.dec.com; id AA15200; Fri, 21 Aug 92 07:32:17 -0700
  10. X-Received: from hydrox.enet; by decwrl.enet; Fri, 21 Aug 92 07:32:17 PDT
  11. X-To: comp.graphics.usenet
  12. X-Apparently-To: comp.graphics.usenet
  13.  
  14.  
  15.     hi,
  16.  
  17.     I'm an imaging systems consultant for digital.
  18.  
  19.     I've posted memos before regarding tools for getting to/from
  20.     ddif and thought I might follow on at this point.
  21.  
  22.     Yes, there are tools for getting to and from ddif (image).
  23.     The majority of these run on (only on) DEC platforms.  A brief
  24.     reason for this is that DDIF (Digital Document Interchange Format)
  25.     is a compound document format.  Digital imaging rests on compound
  26.     document, not image-only documents.  Our imaging products/tools
  27.     use this DDIF.
  28.  
  29.     In order to make it easier/simpler to work with ddif, we've created
  30.     layers of abstraction.
  31.  
  32.     The lowest level describing our compound documents is ASN.1.
  33.     All Compound documents (DDIF) are described via ASN.1.  ASN.1 is
  34.     not the simplest thing in the world to work with directly, but
  35.     it is an industry standard notation and formatting convention
  36.     supporting compound documents via tags and nesting.
  37.  
  38.     To make the use of ASN.1 simpler (as well as manage the reading
  39.     and writing of it on different platforms), Digital created the
  40.     Compound Document Architecture (CDA) libraries.  These routines
  41.     allow for the creation of ASN.1-based compound documents without
  42.     having to know anything (well, not much) about the physical layer.
  43.     You do need to know the overall architecture however.
  44.  
  45.     In order to manage image more easily, Digital created a suite of
  46.     imaging routines (several libraries) which rest on the CDA libraries.
  47.     All our imaging products use these layers.  With these routines
  48.     a simple image reading, decompressing, scaling, display routine
  49.     would be built as:
  50.  
  51.         .
  52.         .
  53.         .
  54.  
  55.         ImageCtx = ImgOpenFile(
  56.             ImgK_ModeImport, ImgK_FtypeDDIF,
  57.             strlen( filename ), filename,
  58.             0, 0 );
  59.  
  60.         ImageFid = ImgImportFrame( ImageCtx, 0 );
  61.  
  62.         ImgCloseFile( ImageCtx, 0 );
  63.  
  64.         .
  65.         .
  66.         .
  67.  
  68.         ImgGet( ImageFid, Img_CompressionType, &ImageCmp, 4, 0, 0 );
  69.     
  70.             if ( ImageCmp != ImgK_PcmCompression )
  71.                     ImgDecompress( ImageFid );
  72.  
  73.         .
  74.         .
  75.         .
  76.  
  77.         ItemInfo( itmlst[ 0 ], IdsNprotocol,    Ids_XImage );
  78.         ItemInfo( itmlst[ 1 ], IdsNworkstation, display );
  79.         ItemInfo( itmlst[ 2 ], IdsNwsWindow,    window );
  80.         ItemInfo( itmlst[ 3 ], NULL,            NULL );
  81.  
  82.         presentation = IdsCreatePresentSurface( itmlst );
  83.  
  84.         .
  85.         .
  86.         .
  87.  
  88.         ItemInfo( itmlst[ 0 ], IdsNscaleMode, Ids_Flood );
  89.         ItemInfo( itmlst[ 1 ], NULL,          NULL );
  90.  
  91.         rendering = IdsCreateRendering( ImageFid, presentation, itmlst );
  92.  
  93.  
  94.     I've left out the non-image components, but in general, it is a very
  95.     simple process in which the programmer doesn't need to know much
  96.     at all about the image.  There are much lower-routines available,
  97.     but most people choose not to use them.
  98.  
  99.  
  100.     This is a 4-GL (vs a 3-GL or assembly) approach to imaging and has
  101.     the same advantages/drawbacks that 4-GLs have vs. 3-GLs.  it is easy
  102.     to use, but wraps you in an environment and way of doing things.
  103.     This approach works where the environment exists, but isn't self-
  104.     sufficient.  That is, you need to do Digital imaging on platforms
  105.     where the cda and imaging libraries are present.  At this time, that
  106.     is limited to Ultrix, and VMS.  The CDA routines are present on
  107.     MS-DOS, Sun, and OS-2, but not the imaging routines.  Converting
  108.     to/from ddif images must be done on a Digital system.  In turn,
  109.     on the digital platforms, there are converters to/from gif, tiff,
  110.     paint, pnm and other formats.  We generally use other converters,
  111.     such as the pbmplus toolkit to get from one of these to anything
  112.     more specific.
  113.  
  114.  
  115.     As a result of public outcry (both internal to DEC and externally)
  116.     and because one of our imaging OEMs will be providing some funding,
  117.     I'm developing a library which works directly with the physical layer.
  118.     Nothing other than the ANSI 'C' libraries is being used in these
  119.     libraries.  I've finished the ASN.1 aspects of the program and am
  120.     now working on what to do with the data plan.  I'm first working
  121.     on reading/writing black and white (uncompressed), then compressed,
  122.     then grayscale and color (uncompressed), then compressed.
  123.  
  124.     My initial target is tiff, but pnm, fax, and gif seem reasonable.
  125.     At that point, I expect to stop.  We still need to consider the
  126.     support and business issues of just sending these out over the
  127.     internet.  If someone else wishes to engage in a similar effort,
  128.     there are published documents on asn.1 and digital's use of it
  129.     (our particular architecture using it).  I expect it may still be
  130.     1-2 mo before the routines I'm engaged in developing will first
  131.     become available, so long as the OEM provides the funding, possibly
  132.     longer if they don't.   It's not impossible to work with ddif.  It's
  133.     very easy on a digital platform (just like using a 4gl would be),
  134.     but without the libraries it is still possible.
  135.  
  136.  
  137.     Mark
  138.