changeset 80:17f7b0db59ca

Updated doc/Images.txt
author jcid
date Sun, 23 Dec 2007 22:55:24 +0100
parents 7706d6d6c699
children 0bf230809ed1
files doc/Images.txt src/html.cc src/image.hh
diffstat 3 files changed, 25 insertions(+), 21 deletions(-) [+]
line wrap: on
line diff
--- a/doc/Images.txt	Thu Dec 20 22:32:33 2007 +0100
+++ b/doc/Images.txt	Sun Dec 23 22:55:24 2007 +0100
@@ -1,4 +1,4 @@
- February 2001, --Jcid
+ December 2007, --Jcid
 
                               ------
                               IMAGES
@@ -23,10 +23,16 @@
 one has the whole data already decoded.
 
 *  Regardless of the RGB-data feeding method, the decoded data is
-passed  to the widget (DwImage) and drawn by GdkRGB in a streamed
-way.
+passed to the widget (DwImage) and drawn in a streamed way.
    Note that INDEXED images are also decoded into RGB format.
 
+   Html_tag_open_img    // IMG element processing
+     Html_add_new_image // Reat attributes, create image, add to HTML page
+     Html_load_image    // Tells cache to retrieve image
+       a_Image_new      // Create a 'DilloImage' data structure, to coordinate
+                        // decoded image-data transfer to an 'Imgbuf'.
+       Html_add_widget  // Adds the dw::Image to the page
+
 
 ---------------------
 Fetching from the net
@@ -99,16 +105,16 @@
 
 * The image processing can be found in the following sources:
 
-  - image.[ch]
+  - image.{cc,hh}
   - dicache.[ch]
   - gif.[ch], png.[ch], jpeg.[ch]
-  - dw_image.[ch]
-
-* Bear  in  mind  that  there are three data structures for image
-code:
+  - dw/image.{cc,hh}
 
-  - DilloImage (image.h)
-  - DwImage (dw_image.h)
+*  Bear  in  mind  that  there are four data structures for image
+code: 
+
+  - DilloImage (image.hh)
   - DICacheEntry (dicache.h)
+  - dw::Image (class Image in dw/image.hh)
+  - core::Imgbuf (imgbuf.hh)
 
-
--- a/src/html.cc	Thu Dec 20 22:32:33 2007 +0100
+++ b/src/html.cc	Sun Dec 23 22:55:24 2007 +0100
@@ -862,7 +862,7 @@
    DilloHtmlForm *form;
    DilloHtmlInput *input_j;
 
-   MSG("::~DilloHtml(this=%p)\n", this);
+   _MSG("::~DilloHtml(this=%p)\n", this);
 
    a_Bw_remove_doc(bw, this);
 
@@ -2816,12 +2816,10 @@
       if (S_TOP(html)->style->x_link != -1) {
          /* In this case we can use the text color */
          style_attrs.setBorderColor (
-            Color::createShaded (HT2LT(html),
-                                 style_attrs.color->getColor()));
+            Color::createShaded (HT2LT(html), style_attrs.color->getColor()));
       } else {
          style_attrs.setBorderColor (
-            Color::createShaded (HT2LT(html),
-                                 html->link_color));
+            Color::createShaded (HT2LT(html), html->link_color));
       }
       style_attrs.setBorderStyle (BORDER_SOLID);
       style_attrs.borderWidth.setVal (border);
--- a/src/image.hh	Thu Dec 20 22:32:33 2007 +0100
+++ b/src/image.hh	Sun Dec 23 22:55:24 2007 +0100
@@ -39,14 +39,14 @@
    uint_t height;
 
    const uchar_t *cmap;     /* Color map (only for indexed) */
-   DilloImgType in_type;   /* Image Type */
+   DilloImgType in_type;    /* Image Type */
    int32_t bg_color;        /* Background color */
 
-   int ProcessedBytes;    /* Amount of bytes already decoded */
-   bitvec_t *BitVec;       /* Bit vector for decoded rows */
-   ImageState State;
+   int ProcessedBytes;      /* Amount of bytes already decoded */
+   bitvec_t *BitVec;        /* Bit vector for decoded rows */
+   ImageState State;        /* Processing status */
 
-   int RefCount;          /* Reference counter */
+   int RefCount;            /* Reference counter */
 };