    001/*
    002 * Licensed to the Apache Software Foundation (ASF) under one or more
    003 * contributor license agreements.  See the NOTICE file distributed with
    004 * this work for additional information regarding copyright ownership.
    005 * The ASF licenses this file to You under the Apache License, Version 2.0
    006 * (the "License"); you may not use this file except in compliance with
    007 * the License.  You may obtain a copy of the License at
    008 *
    009 *      http://www.apache.org/licenses/LICENSE-2.0
    010 *
    011 * Unless required by applicable law or agreed to in writing, software
    012 * distributed under the License is distributed on an "AS IS" BASIS,
    013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    014 * See the License for the specific language governing permissions and
    015 * limitations under the License.
    016 */
    017package org.apache.commons.imaging.formats.tiff.constants;
    018
    019import java.util.Arrays;
    020import java.util.Collections;
    021import java.util.List;
    022
    023import org.apache.commons.imaging.formats.tiff.taginfos.TagInfo;
    024import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoAscii;
    025import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoBytes;
    026import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoLong;
    027import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoLongOrIFD;
    028import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoShort;
    029
    030/**
    031 * TIFF specification supplement 1
    032 * <BR>
    033 * Enhancements for Adobe PageMaker(R) 6.0 software
    034 * <BR>
    035 * http://partners.adobe.com/public/developer/en/tiff/TIFFPM6.pdf
    036 */
    037public final class AdobePageMaker6TagConstants {
    038
    039    public static final TagInfoLongOrIFD TIFF_TAG_SUB_IFD = new TagInfoLongOrIFD(
    040            "SubIFDs",  0x014a, -1,
    041            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN, true);
    042
    043    public static final TagInfoBytes TIFF_TAG_CLIP_PATH = new TagInfoBytes(
    044            "ClipPath",  0x0157, -1,
    045            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
    046
    047    public static final TagInfoLong TIFF_TAG_XCLIP_PATH_UNITS = new TagInfoLong(
    048            "XClipPathUnits", 0x0158,
    049            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
    050
    051    public static final TagInfoLong TIFF_TAG_YCLIP_PATH_UNITS = new TagInfoLong(
    052            "YClipPathUnits", 0x0159,
    053            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
    054
    055    public static final TagInfoShort TIFF_TAG_INDEXED = new TagInfoShort(
    056            "Indexed", 0x015a,
    057            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
    058
    059    public static final int INDEXED_VALUE_NOT_INDEXED = 0;
    060    public static final int INDEXED_VALUE_INDEXED = 1;
    061
    062    public static final TagInfoShort TIFF_TAG_OPIPROXY = new TagInfoShort(
    063            "OPIProxy", 0x015f,
    064            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
    065    public static final int OPIPROXY_VALUE_HIGHER_RESOLUTION_IMAGE_DOES_NOT_EXIST = 0;
    066    public static final int OPIPROXY_VALUE_HIGHER_RESOLUTION_IMAGE_EXISTS = 1;
    067
    068    public static final TagInfoAscii TIFF_TAG_IMAGE_ID = new TagInfoAscii(
    069            "ImageID", 0x800d, -1,
    070            TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
    071
    072    public static final List<TagInfo> ALL_ADOBE_PAGEMAKER_6_TAGS =
    073            Collections.unmodifiableList(Arrays.asList(
    074                    TIFF_TAG_SUB_IFD,
    075                    TIFF_TAG_CLIP_PATH,
    076                    TIFF_TAG_XCLIP_PATH_UNITS,
    077                    TIFF_TAG_YCLIP_PATH_UNITS,
    078                    TIFF_TAG_INDEXED,
    079                    TIFF_TAG_OPIPROXY,
    080                    TIFF_TAG_IMAGE_ID));
    081
    082    private AdobePageMaker6TagConstants() {
    083    }
    084}