home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libimg / public / il_strm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 KB  |  66 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. /* -*- Mode: C; tab-width: 4 -*-
  20.  *  il_strm.h --- Stream converters for the image library.
  21.  *  $Id: il_strm.h,v 3.1 1998/03/28 03:34:57 ltabb Exp $
  22.  */
  23.  
  24.  
  25. /******************** Identifiers for standard image types. ******************/
  26. #define IL_UNKNOWN 0
  27. #define IL_GIF     1
  28. #define IL_XBM     2
  29. #define IL_JPEG    3
  30. #define IL_PPM     4
  31. #define IL_PNG     5
  32.  
  33. #define IL_NOTFOUND 256
  34.  
  35.  
  36. /********************** Opaque reference to MWContext. ***********************/
  37. #ifdef IL_INTERNAL              /* If used within the Image Library. */
  38. #define OPAQUE_CONTEXT void
  39. #else
  40. #define OPAQUE_CONTEXT MWContext /* The old MWContext. */
  41. #endif /* IL_INTERNAL */
  42.  
  43. /********************** Image Library stream converters. *********************/
  44. extern int IL_DisplayMemCacheInfoAsHTML(FO_Present_Types format_out,
  45.                                         URL_Struct *urls,
  46.                                         OPAQUE_CONTEXT *net_cx);
  47.  
  48. /********************** Image Library stream converters. *********************/
  49. XP_BEGIN_PROTOS
  50.  
  51. /* The standard converter for all types of images which are part of an HTML
  52.    document. */
  53. extern NET_StreamClass * IL_NewStream (FO_Present_Types format_out,
  54.                                        void *data_obj,
  55.                                        URL_Struct *urls,
  56.                                        OPAQUE_CONTEXT *cx);
  57.  
  58. /* The converter used to handle images which are viewed by themselves e.g.
  59.    http://home.netscape.com/foo.gif.  This generates a fake
  60.    HTML document, and ships it off to the parser. */
  61. extern NET_StreamClass * IL_ViewStream (FO_Present_Types format_out,
  62.                                         void *data_obj,
  63.                                         URL_Struct *urls,
  64.                                         OPAQUE_CONTEXT *cx);
  65. XP_END_PROTOS
  66.