[mcclim-cvs] CVS mcclim/Extensions/Images

thenriksen thenriksen at common-lisp.net
Mon Jan 7 12:54:02 UTC 2008


Update of /project/mcclim/cvsroot/mcclim/Extensions/Images
In directory clnet:/tmp/cvs-serv32595/Extensions/Images

Modified Files:
	jpeg.lisp 
Log Message:
Add "jpg" as synonym for "jpeg" image format.

Use internal symbol JPEG::DECODE-IMAGE as CLJL only exports its
symbols during compilation (???).


--- /project/mcclim/cvsroot/mcclim/Extensions/Images/jpeg.lisp	2008/01/06 16:05:47	1.1
+++ /project/mcclim/cvsroot/mcclim/Extensions/Images/jpeg.lisp	2008/01/07 12:54:02	1.2
@@ -25,7 +25,7 @@
 (define-image-reader "jpeg" (pathname)
   (with-open-file (stream pathname :direction :input)
     (multiple-value-bind (rgb height width)
-        (jpeg:decode-image stream)
+        (jpeg::decode-image stream)
       (let* ((rgb-image-data (make-array (list height width)
 					 :element-type '(unsigned-byte 32)))
              (rgb-image (make-instance 'clim-internals::rgb-image
@@ -40,3 +40,6 @@
                                     (dpb grey (byte 8 16)
                                          (dpb (- 255 0) (byte 8 24) 0))))))))
         (clim-internals::make-rgb-image-design rgb-image)))))
+
+(define-image-reader "jpg" (pathname)
+  (load-image-of-format "jpeg" pathname))




More information about the Mcclim-cvs mailing list