Update of /cvsroot/ufraw/ufraw
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1887

Modified Files:
        dcraw.cc 
Log Message:
Support Sony A500 and A550. Patch from Dave Coffin.


Index: dcraw.cc
===================================================================
RCS file: /cvsroot/ufraw/ufraw/dcraw.cc,v
retrieving revision 1.197
retrieving revision 1.198
diff -u -d -r1.197 -r1.198
--- dcraw.cc    12 Oct 2009 07:06:22 -0000      1.197
+++ dcraw.cc    13 Oct 2009 00:17:41 -0000      1.198
@@ -5374,14 +5374,14 @@
       case 262:
        load_raw = &CLASS kodak_262_load_raw;                   break;
       case 32767:
+       if (tiff_ifd[raw].bytes == raw_width*raw_height) {
+         tiff_bps = 12;
+         load_raw = &CLASS sony_arw2_load_raw;                 break;
+       }
        if (tiff_ifd[raw].bytes*8 != (int)(raw_width*raw_height*tiff_bps)) {
          raw_height += 8;
          load_raw = &CLASS sony_arw_load_raw;                  break;
        }
-       if (tiff_bps == 8) {
-         tiff_bps = 12;
-         load_raw = &CLASS sony_arw2_load_raw;                 break;
-       }
        load_flags = 79;
       case 32769:
        load_flags++;
@@ -6532,6 +6532,8 @@
        { 6038,-1484,-578,-9146,16746,2513,-875,746,7217 } },
     { "SONY DSLR-A380", 0, 0,
        { 6038,-1484,-579,-9145,16746,2512,-875,746,7218 } },
+    { "SONY DSLR-A5", 254, 0x1ffe,
+       { 0 } },
     { "SONY DSLR-A700", 254, 0x1ffe,
        { 5775,-805,-359,-8574,16295,2391,-1943,2341,7249 } },
     { "SONY DSLR-A850", 256, 0x1ffe,


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to