Package org.photovault.dcraw

Examples of org.photovault.dcraw.RawConversionSettings


        };
       
        double daylightMul[] = {
            .3, .5, .7
        };
        RawConversionSettings rs = RawConversionSettings.create( chanMul, daylightMul,
                16000, 0, -.5, 0., RawConversionSettings.WB_MANUAL, false );
        p.setRawSettings( rs );
        RawConversionSettings rs2 = p.getRawSettings();
        assertTrue( rs.equals( rs2 ) );
        assertEquals( 16000, rs2.getWhite() );
    }
View Full Code Here


                Iterator rawIter = rawFactories.entrySet().iterator();
                while ( rawIter.hasNext() ) {
                    Map.Entry e = (Map.Entry) rawIter.next();
                    PhotoInfo p = (PhotoInfo) e.getKey();
                    RawSettingsFactory f = (RawSettingsFactory) e.getValue();
                    RawConversionSettings r = null;
                    try {
                        r = f.create();
                    } catch (PhotovaultException ex) {
                        ex.printStackTrace();
                    }
View Full Code Here

    private RawSettingsFactory getRawSettingsFactory( PhotoInfo p ) {
        RawSettingsFactory f = null;
        if ( rawFactories.containsKey( p ) ) {
            f = (RawSettingsFactory) rawFactories.get( p );
        } else {
            RawConversionSettings r = p.getRawSettings();
            f = new RawSettingsFactory( r );
            if ( r != null ) {
                rawFactories.put( p, f );
            }
        }
View Full Code Here

     */
    public void setRawSettings( RawConversionSettings s ) {
        log.debug( "entry: setRawSettings()" );
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        RawConversionSettings settings = null;
        if ( s != null ) {
            if ( !s.equals( rawSettings ) ) {
                invalidateThumbnail();
                purgeInvalidInstances();
            }
            settings =  s.clone();
            Database db = ODMG.getODMGDatabase();
            db.makePersistent( settings );
            RawConversionSettings oldSettings = rawSettings;
            txw.lock( settings, Transaction.WRITE );
            if ( oldSettings != null ) {
                txw.lock( oldSettings, Transaction.WRITE );
                db.deletePersistent( oldSettings );
            }
View Full Code Here

                rawSettingsChanged();
            }
        }
        protected Object getModelValue( Object model ) {
            PhotoInfo obj = (PhotoInfo) model;
            RawConversionSettings r = obj.getRawSettings();
            Object ret = null;
            if ( r != null ) {
                ret = doGetModelValue( r );
            }
            return ret;
View Full Code Here

        ChannelMapOperation cm = p.getColorChannelMapping();
        if ( cm != null ) {
            String chanMapXml = cm.getAsXml( indent );
            writer.write( chanMapXml );
        }
        RawConversionSettings rs = p.getRawSettings();
        if ( rs != null ) {
            writeRawSettings( rs );
        }
        // Write instances
        writer.write( getIndent() + "<instances>" );
View Full Code Here

        ChannelMapOperation cm = i.getColorChannelMapping();
        if ( cm != null ) {
            String chanMapXml = cm.getAsXml( indent );
            writer.write( chanMapXml );
        }
        RawConversionSettings rs = i.getRawSettings();
        if ( rs != null ) {
            writeRawSettings( rs );
        }
        File f = i.getImageFile();
        if ( f != null ) {
View Full Code Here

     The method makes a clone of the object.    
     */
    public void setRawSettings( RawConversionSettings s ) {
        ODMGXAWrapper txw = new ODMGXAWrapper();
        txw.lock( this, Transaction.WRITE );
        RawConversionSettings settings = null;
        if ( s != null ) {
            settings = s.clone();
            txw.lock( settings, Transaction.WRITE );
        }
        if ( rawSettings != null ) {
View Full Code Here

TOP

Related Classes of org.photovault.dcraw.RawConversionSettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.