X-Git-Url: http://git.kpe.io/?p=cl-photo.git;a=blobdiff_plain;f=cameras.lisp;h=7eb8b6700bbb96fac819e61f19c3541cf5b2e9bd;hp=745ea0a887905de6902560a9783cc3a9bdb450a5;hb=431903301170bffaea3a481813a210dc407d0455;hpb=7d95d0eb169714e7ccb145295c635123eb7e3c7f diff --git a/cameras.lisp b/cameras.lisp index 745ea0a..7eb8b67 100644 --- a/cameras.lisp +++ b/cameras.lisp @@ -27,9 +27,15 @@ (eval-when (:compile-toplevel :load-toplevel :execute) (defun make-output-format (w h &key (units :inches)) - (let ((name (format nil "~Dx~Din" w h))) + (let ((name (format nil "~Dx~D~A" w h + (ecase units + (:inches "in") + (:mm "mm") + (:cm "cm") + (:m "m") + (:feet "ft"))))) (list :format (kmrcl:ensure-keyword name) - :output (cons (inches->mm w) (inches->mm h)) + :output (cons (length->mm w units) (length->mm h units)) :name name :nicks (list (kmrcl:ensure-keyword (format nil "~Dx~D" w h))))))) @@ -91,7 +97,9 @@ (:format :d2hs :make "Nikon" :pixels (2464 . 1632) :imager (23.3 . 15.5) :name "D2Hs") (:format :d2x :make "Nikon" :pixels (4288 . 2848) :imager (23.7 . 15.6) :name "D2X") + (:format :cp5900 :make "Nikon" :pixels (2592 . 1944) :imager (7.18 . 5.32) :name "Coolpix 5900") (:format :cp7900 :make "Nikon" :pixels (3072 . 2304) :imager (7.18 . 5.32) :name "Coolpix 7900") + (:format :cp8800 :make "Nikon" :pixels (3264 . 2448) :imager (8.8 . 6.6) :name "Coolpix 8800") (:format :*ist-d :make "Pentax" :pixels (3008 . 2008) :imager (36 . 24) :name "*ist D") @@ -103,6 +111,8 @@ (:format :sd10 :make "Sigma" :pixels (2268 . 1512) :imager (20.7 . 13.8) :name "SD10") + (:format :1/1.8in :imager (7.18 . 5.32) :name "1/1.8\"") + (:format :dx :imager (24 . 16) :name "DX") (:format :35mm :imager (36 . 24) :name "35mm") (:format :6x4.5cm :imager (60 . 45) :name "6x4.5cm" :nicks (:\645))