Examples of ImageMetaValue


Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

    /**
     * {@inheritDoc}
     */
    public String getArtist() {
        final ImageMetaValue value = getValue( CANON_OWNER_NAME );
        return value != null ? value.getStringValue() : null;
    }
View Full Code Here

Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

    /**
     * {@inheritDoc}
     */
    public int getColorTemperature() {
        ImageMetaValue value = getValue( CANON_PI_COLOR_TEMPERATURE );
        if ( value == null )
            value = getValue( CANON_CI_D30_COLOR_TEMPERATURE );
        if ( value == null )
            value = getValue( CANON_COLOR_TEMPERATURE );
        return value != null ? value.getIntValue() : 0;
    }
View Full Code Here

Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

    /**
     * {@inheritDoc}
     */
    public float getFocalLength() {
        final ImageMetaValue value = getValue( CANON_FL_FOCAL_LENGTH );
        return value != null ? value.getFloatValue() : 0;
    }
View Full Code Here

Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

    /**
     * {@inheritDoc}
     */
    public int getImageHeight() {
        final ImageMetaValue value = getValue( CANON_PI_IMAGE_HEIGHT );
        return value != null ? value.getIntValue() : 0;
    }
View Full Code Here

Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

    /**
     * {@inheritDoc}
     */
    public int getImageWidth() {
        final ImageMetaValue value = getValue( CANON_PI_IMAGE_WIDTH );
        return value != null ? value.getIntValue() : 0;
    }
View Full Code Here

Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

    /**
     * {@inheritDoc}
     */
    public int getISO() {
        boolean isAPEX = false;
        ImageMetaValue value = getValue( CANON_CS_ISO );
        if ( value == null ) {
            value = getValue( CANON_SI_ISO );
            isAPEX = true;
        }
        if ( value == null )
            return 0;
        int iso = value.getIntValue();
        if ( isAPEX )
            iso = MetadataUtil.convertISOFromAPEX( iso );
        return iso >= 1 && iso <= 10000 ? iso : 0;
    }
View Full Code Here

Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

    /**
     * {@inheritDoc}
     */
    public String getLens() {
        final ImageMetaValue lensValue = getValue( CANON_CS_LENS_TYPE );
        final String label = hasTagValueLabelFor( lensValue );
        if ( label != null )
            return label;
        return makeLensLabelFrom(
            getValue( CANON_CS_SHORT_FOCAL_LENGTH ),
View Full Code Here

Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

        if ( make == null && includeModel ) {
            //
            // If there was no TIFF Make field, and the model was requested,
            // try the DNG-specific UniqueCameraModel field.
            //
            final ImageMetaValue value = getValue( DNG_UNIQUE_CAMERA_MODEL );
            if ( value != null )
                return value.getStringValue().toUpperCase().trim();
        }
        return make;
    }
View Full Code Here

Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

    /**
     * {@inheritDoc}
     */
    public ImageOrientation getOrientation() {
        final ImageMetaValue value = getValue( CANON_SI_AUTO_ROTATE );
        if ( value != null ) {
            switch ( value.getIntValue() ) {
                //
                // The CIFF constants are the same for the CanonDirectory.
                //
                case CIFF_AUTO_ROTATE_NONE:
                    return ORIENTATION_LANDSCAPE;
View Full Code Here

Examples of com.lightcrafts.image.metadata.values.ImageMetaValue

    /**
     * {@inheritDoc}
     */
    public String getLens() {
        final ImageMetaValue lens = getValue( DNG_LENS_INFO );
        return lens != null ? lens.toString() : null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.