Network Working Group                                       L. McIntyre
Request for Comments: 2301                            Xerox Corporation
Category: Standards Track                                     S. Zilles
                                                    Adobe Systems, Inc.
                                                             R. Buckley
                                                      Xerox Corporation
                                                             D. Venable
                                                      Xerox Corporation
                                                             G. Parsons
                                                       Northern Telecom
                                                            J. Rafferty
                                                   Human Communications
                                                             March 1998
        
Network Working Group                                       L. McIntyre
Request for Comments: 2301                            Xerox Corporation
Category: Standards Track                                     S. Zilles
                                                    Adobe Systems, Inc.
                                                             R. Buckley
                                                      Xerox Corporation
                                                             D. Venable
                                                      Xerox Corporation
                                                             G. Parsons
                                                       Northern Telecom
                                                            J. Rafferty
                                                   Human Communications
                                                             March 1998
        

File Format for Internet Fax

Internet传真的文件格式

Status of this Memo

本备忘录的状况

This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the "Internet Official Protocol Standards" (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited.

本文件规定了互联网社区的互联网标准跟踪协议,并要求进行讨论和提出改进建议。有关本协议的标准化状态和状态,请参考当前版本的“互联网官方协议标准”(STD 1)。本备忘录的分发不受限制。

Copyright Notice

版权公告

Copyright (C) The Internet Society (1998). All Rights Reserved.

版权所有(C)互联网协会(1998年)。版权所有。

Abstract

摘要

This document describes the TIFF (Tag Image File Format) representation of image data specified by the ITU-T Recommendations for black-and-white and color facsimile. This file format specification is commonly known as TIFF-FX. It formally defines minimal, extended and lossless JBIG modes (Profiles S, F, J) for black-and-white fax, and base JPEG, lossless JBIG and Mixed Raster Content modes (Profiles C, L, M) for color and grayscale fax. These modes or profiles correspond to the content of the applicable ITU-T Recommendations. Files formatted according to this specification use the image/tiff MIME Content Type.

本文件描述了ITU-T黑白和彩色传真建议规定的图像数据TIFF(标签图像文件格式)表示。此文件格式规范通常称为TIFF-FX。它正式定义了黑白传真的最小、扩展和无损JBIG模式(配置文件S、F、J),以及彩色和灰度传真的基本JPEG、无损JBIG和混合光栅内容模式(配置文件C、L、M)。这些模式或配置文件对应于适用的ITU-T建议的内容。根据本规范格式化的文件使用图像/tiff MIME内容类型。

Table of Contents

目录

1. INTRODUCTION........................................................4
   1.1. Scope..........................................................5
   1.2. Approach.......................................................5
   1.3. Overview of this draft.........................................5
2. TIFF and Fax........................................................7
   2.1. TIFF Overview..................................................7
     2.1.1. File Structure.............................................7
     2.1.2. Image Structure............................................9
     2.1.3. TIFF File Structure for Fax Applications..................10
   2.2 TIFF Fields for All Fax Applications...........................11
     2.2.1. TIFF Fields required for all fax modes....................12
     2.2.2. Additional TIFF Fields required for all fax modes.........13
     2.2.3. TIFF Fields recommended for all fax modes.................15
     2.2.4. New TIFF Fields recommended for fax modes.................16
3. Minimal Black-and-White Fax Mode...................................18
   3.1. Overview......................................................18
   3.2. Required TIFF Fields..........................................18
     3.2.1 Baseline Fields............................................18
     3.2.2 Extension Fields...........................................20
     3.2.3 New Fields.................................................20
   3.3. Recommended TIFF Fields.......................................20
   3.4. End of Line (EOL) and Return to Control (RTC).................20
     3.4.1 RTC Exclusion..............................................21
   3.5. File Structure................................................22
   3.6. Minimal Black-and-White Mode Summary..........................23
4. Extended Black-and-White Fax Mode..................................24
   4.1. TIFF-F Overview...............................................25
   4.2. Required TIFF Fields..........................................26
     4.2.1. Baseline Fields...........................................26
     4.2.2. Extension Fields..........................................28
     4.2.3. New Fields................................................29
   4.3. Recommended TIFF Fields.......................................29
     4.3.1. Baseline Fields...........................................29
     4.3.2. Extension Fields..........................................29
     4.3.3. New Fields................................................29
   4.4. Technical Implementation Issues...............................30
     4.4.1. Strips....................................................30
     4.4.2. Bit Order.................................................31
     4.4.3. Multi-Page................................................31
     4.4.4. Compression...............................................31
     4.4.5. Example Use of Page-quality Fields........................32
     4.4.6. Practical Guidelines for Writing and Reading Multi-Page
            TIFF-F Files..............................................33
     4.4.7. Use of TIFF-F for Streaming Applications..................34
   4.5. Implementation Warnings.......................................34
     4.5.1. Uncompressed Data.........................................34
        
1. INTRODUCTION........................................................4
   1.1. Scope..........................................................5
   1.2. Approach.......................................................5
   1.3. Overview of this draft.........................................5
2. TIFF and Fax........................................................7
   2.1. TIFF Overview..................................................7
     2.1.1. File Structure.............................................7
     2.1.2. Image Structure............................................9
     2.1.3. TIFF File Structure for Fax Applications..................10
   2.2 TIFF Fields for All Fax Applications...........................11
     2.2.1. TIFF Fields required for all fax modes....................12
     2.2.2. Additional TIFF Fields required for all fax modes.........13
     2.2.3. TIFF Fields recommended for all fax modes.................15
     2.2.4. New TIFF Fields recommended for fax modes.................16
3. Minimal Black-and-White Fax Mode...................................18
   3.1. Overview......................................................18
   3.2. Required TIFF Fields..........................................18
     3.2.1 Baseline Fields............................................18
     3.2.2 Extension Fields...........................................20
     3.2.3 New Fields.................................................20
   3.3. Recommended TIFF Fields.......................................20
   3.4. End of Line (EOL) and Return to Control (RTC).................20
     3.4.1 RTC Exclusion..............................................21
   3.5. File Structure................................................22
   3.6. Minimal Black-and-White Mode Summary..........................23
4. Extended Black-and-White Fax Mode..................................24
   4.1. TIFF-F Overview...............................................25
   4.2. Required TIFF Fields..........................................26
     4.2.1. Baseline Fields...........................................26
     4.2.2. Extension Fields..........................................28
     4.2.3. New Fields................................................29
   4.3. Recommended TIFF Fields.......................................29
     4.3.1. Baseline Fields...........................................29
     4.3.2. Extension Fields..........................................29
     4.3.3. New Fields................................................29
   4.4. Technical Implementation Issues...............................30
     4.4.1. Strips....................................................30
     4.4.2. Bit Order.................................................31
     4.4.3. Multi-Page................................................31
     4.4.4. Compression...............................................31
     4.4.5. Example Use of Page-quality Fields........................32
     4.4.6. Practical Guidelines for Writing and Reading Multi-Page
            TIFF-F Files..............................................33
     4.4.7. Use of TIFF-F for Streaming Applications..................34
   4.5. Implementation Warnings.......................................34
     4.5.1. Uncompressed Data.........................................34
        
     4.5.2. Encoding and Resolution...................................35
     4.5.3. EOL byte-aligned..........................................35
     4.5.4. EOL.......................................................36
     4.5.5. RTC Exclusion.............................................36
     4.5.6. Use of EOFB for T.6 Compressed Images.....................37
   4.6. Example Use of TIFF-F.........................................37
   4.7. Extended Black-and-white Fax Mode Summary.....................37
5. Lossless JBIG Black-and-White Fax Mode.............................39
   5.1. Overview......................................................40
   5.2. Required TIFF Fields..........................................40
     5.2.1. Baseline Fields...........................................40
     5.2.2. Extension Fields..........................................40
     5.2.3. New Fields................................................41
   5.3. Recommended TIFF Fields.......................................41
   5.4. Lossless JBIG Black-and-White Mode Summary....................41
6. Base Color Fax Mode................................................43
   6.1. Overview......................................................43
   6.2. Required TIFF Fields..........................................43
     6.2.1. Baseline Fields...........................................43
     6.2.2. Extension Fields..........................................45
     6.2.3. New Fields................................................46
   6.3. Recommended TIFF Fields.......................................47
   6.4. Base Color Fax Mode Summary...................................47
7. Lossless Color Mode................................................49
   7.1. Overview......................................................50
     7.1.1. Color Encoding............................................50
     7.1.2. JBIG Encoding.............................................50
   7.2. Required TIFF Fields..........................................51
     7.2.1. Baseline Fields...........................................51
     7.2.2. Extension Fields..........................................52
     7.2.3. New Fields................................................53
   7.3. Recommended TIFF Fields.......................................53
   7.4. Lossless Color Fax Mode Summary...............................53
8. Mixed Raster Content Mode..........................................55
   8.1 Overview.......................................................55
     8.1.1. MRC 3-layer model.........................................55
     8.1.2. A TIFF Representation for the MRC 3-layer model...........56
   8.2. Required TIFF Fields..........................................58
     8.2.1. Baseline Fields...........................................58
     8.2.2. Extension Fields..........................................59
     8.2.3. New Fields................................................60
   8.3. Recommended TIFF Fields.......................................62
   8.4. Rules and Requirements for Images.............................62
   8.5. MRC Fax Mode Summary..........................................63
9. MIME content-type image/tiff.......................................66
   9.1 Refinement of MIME content-type image/tiff for Facsimile
       Applications...................................................66
10. Security Considerations...........................................67
        
     4.5.2. Encoding and Resolution...................................35
     4.5.3. EOL byte-aligned..........................................35
     4.5.4. EOL.......................................................36
     4.5.5. RTC Exclusion.............................................36
     4.5.6. Use of EOFB for T.6 Compressed Images.....................37
   4.6. Example Use of TIFF-F.........................................37
   4.7. Extended Black-and-white Fax Mode Summary.....................37
5. Lossless JBIG Black-and-White Fax Mode.............................39
   5.1. Overview......................................................40
   5.2. Required TIFF Fields..........................................40
     5.2.1. Baseline Fields...........................................40
     5.2.2. Extension Fields..........................................40
     5.2.3. New Fields................................................41
   5.3. Recommended TIFF Fields.......................................41
   5.4. Lossless JBIG Black-and-White Mode Summary....................41
6. Base Color Fax Mode................................................43
   6.1. Overview......................................................43
   6.2. Required TIFF Fields..........................................43
     6.2.1. Baseline Fields...........................................43
     6.2.2. Extension Fields..........................................45
     6.2.3. New Fields................................................46
   6.3. Recommended TIFF Fields.......................................47
   6.4. Base Color Fax Mode Summary...................................47
7. Lossless Color Mode................................................49
   7.1. Overview......................................................50
     7.1.1. Color Encoding............................................50
     7.1.2. JBIG Encoding.............................................50
   7.2. Required TIFF Fields..........................................51
     7.2.1. Baseline Fields...........................................51
     7.2.2. Extension Fields..........................................52
     7.2.3. New Fields................................................53
   7.3. Recommended TIFF Fields.......................................53
   7.4. Lossless Color Fax Mode Summary...............................53
8. Mixed Raster Content Mode..........................................55
   8.1 Overview.......................................................55
     8.1.1. MRC 3-layer model.........................................55
     8.1.2. A TIFF Representation for the MRC 3-layer model...........56
   8.2. Required TIFF Fields..........................................58
     8.2.1. Baseline Fields...........................................58
     8.2.2. Extension Fields..........................................59
     8.2.3. New Fields................................................60
   8.3. Recommended TIFF Fields.......................................62
   8.4. Rules and Requirements for Images.............................62
   8.5. MRC Fax Mode Summary..........................................63
9. MIME content-type image/tiff.......................................66
   9.1 Refinement of MIME content-type image/tiff for Facsimile
       Applications...................................................66
10. Security Considerations...........................................67
        
11. References........................................................67
12. Authors' Addresses................................................69
Annex A: Summary of TIFF Fields for Internet Fax .....................70
Annex B. IANA Registration for image/tiff Application Parameter
         Values used for facsimile....................................75
Full Copyright Statement..............................................77
        
11. References........................................................67
12. Authors' Addresses................................................69
Annex A: Summary of TIFF Fields for Internet Fax .....................70
Annex B. IANA Registration for image/tiff Application Parameter
         Values used for facsimile....................................75
Full Copyright Statement..............................................77
        
1. Introduction
1. 介绍

This document describes the use of TIFF (Tag Image File Format) to represent the data content and structure generated by the current suite of ITU-T Recommendations for Group 3 facsimile. These Recommendations and the TIFF fields described here support the following facsimile modes or profiles:

本文件描述了使用TIFF(标签图像文件格式)表示当前ITU-T第3组传真建议套件生成的数据内容和结构。这些建议和此处描述的TIFF字段支持以下传真模式或配置文件:

      S:  minimal black-and-white mode, using binary MH compression
             [T.4]
      F:  extended black-and-white mode, using binary MH, MR and MMR
             compression [T.4, T.6]
      J:  lossless JBIG black-and-white mode, with JBIG compression
             [T.85, T.82]
      C:  lossy color and grayscale mode, using JPEG compression
             [T.42, T.81]
      L:  lossless color and grayscale mode, using JBIG compression
             [T.43, T.82]
      M:  mixed raster content mode [T.44], using a combination of
             existing compression methods
        
      S:  minimal black-and-white mode, using binary MH compression
             [T.4]
      F:  extended black-and-white mode, using binary MH, MR and MMR
             compression [T.4, T.6]
      J:  lossless JBIG black-and-white mode, with JBIG compression
             [T.85, T.82]
      C:  lossy color and grayscale mode, using JPEG compression
             [T.42, T.81]
      L:  lossless color and grayscale mode, using JBIG compression
             [T.43, T.82]
      M:  mixed raster content mode [T.44], using a combination of
             existing compression methods
        

Each profile corresponds to the content of ITU-T Recommendations shown and is a subset of the full TIFF for facsimile specification.

每个配置文件对应于所示ITU-T建议的内容,并且是完整TIFF传真规范的子集。

Profile S describes a minimal interchange set of fields, which will guarantee that, at least, binary black-and-white images will be supported. Implementations are required to support this minimal interchange set of fields.

概要文件S描述了一组最小的字段交换,这将保证至少支持二进制黑白图像。需要实现来支持这个最小的字段交换集。

With the intent of specifying a file format for Internet Fax, this draft:

为了指定Internet传真的文件格式,本草案:

1. specifies the structure of TIFF files for facsimile data, 2. defines ITU fax-compatible values for existing TIFF fields, 3. defines new TIFF fields and values required for compatibility with ITU color fax.

1. 指定传真数据的TIFF文件的结构,2。定义现有TIFF字段的ITU传真兼容值,3。定义与ITU彩色传真兼容所需的新TIFF字段和值。

This specification of TIFF for facsimile is known as TIFF-FX.

本传真TIFF规范称为TIFF-FX。

1.1 Scope
1.1 范围

This document defines a TIFF-based file format specification for enabling standardized messaging-based fax over the Internet. It specifies the TIFF fields and field values required for compatibility with the existing ITU-T Recommendations for Group 3 black-and-white, grayscale and color facsimile. TIFF has historically been used for handling fax image files in applications such as store-and-forward messaging. Implementations that support this file format specification for import/export may elect to support it as a native format. This document recommends a TIFF file structure that is compatible with low-memory and page-level streaming implementations.

本文档定义了一个基于TIFF的文件格式规范,用于在Internet上启用标准化的基于消息传递的传真。它规定了与第3组黑白、灰度和彩色传真现有ITU-T建议兼容所需的TIFF字段和字段值。TIFF历来用于处理应用程序(如存储和转发消息)中的传真图像文件。支持此文件格式规范进行导入/导出的实现可以选择将其作为本机格式支持。本文档推荐与低内存和页面级流媒体实现兼容的TIFF文件结构。

Unless otherwise noted, the current TIFF specification [TIFF] and selected TIFF Technical Notes [TTN1, TTN2] are the primary references for describing TIFF and defining TIFF fields. This document is the primary reference for defining TIFF field values for fax applications.

除非另有说明,当前的TIFF规范[TIFF]和选定的TIFF技术说明[TTN1,TTN2]是描述TIFF和定义TIFF字段的主要参考。本文档是定义传真应用程序TIFF字段值的主要参考。

1.2 Approach
1.2 方法

The basic approach to using TIFF for facsimile data is to insert the compressed fax image data in a TIFF file and use TIFF fields to encode the parameters that describe the image data. These fields will have values that comply with the ITU-T Recommendations. The MIME content type of the resulting file will be image/tiff, with an optional Application parameter [TIFF-REG]; see Section 9.

将TIFF用于传真数据的基本方法是将压缩的传真图像数据插入TIFF文件中,并使用TIFF字段对描述图像数据的参数进行编码。这些字段的值将符合ITU-T建议。生成文件的MIME内容类型为image/tiff,带有可选的应用程序参数[tiff-REG];见第9节。

This approach takes advantage of TIFF features and structures that bridge the data formats and performance requirements of both legacy fax machines and host-based fax applications. TIFF constructs for pages, images, and strips allow a TIFF file to preserve the fax data stream structure and the performance advantages that come with it. A TIFF-based approach also builds on an established base of users and implementors and ensures backward compatibility with existing TIFF-based IETF proposals and work in progress for Internet fax.

此方法利用TIFF功能和结构,将传统传真机和基于主机的传真应用程序的数据格式和性能要求连接起来。用于页面、图像和条带的TIFF结构允许TIFF文件保留传真数据流结构及其附带的性能优势。基于TIFF的方法还建立在已建立的用户和实施者基础上,并确保与现有基于TIFF的IETF提案和正在进行的Internet传真的向后兼容性。

1.3 Overview of this draft
1.3 本草案概览

Section 2 gives an overview of TIFF. Section 2.1 describes the structure of TIFF files, including general guidelines for structuring multi-page TIFF files. Section 2.2 lists the TIFF fields that are required or recommended for all fax modes. The TIFF fields used only by specific fax modes are described in Sections 3-8, which describe the individual fax modes. These sections also specify the ITU-compatible field values (image parameters) for each mode.

第2节概述了TIFF。第2.1节描述了TIFF文件的结构,包括构造多页TIFF文件的一般准则。第2.2节列出了所有传真模式所需或建议的TIFF字段。第3-8节描述了仅由特定传真模式使用的TIFF字段,其中描述了各个传真模式。这些部分还指定了每个模式的ITU兼容字段值(图像参数)。

The full set of permitted fields of TIFF for facsimile are included in the current TIFF specification, Section 2 of this document and the sections on specific modes of facsimile operation. This document defines profiles of TIFF for facsimile, where a profile is a subset of the full set of permitted fields and field values of TIFF for facsimile.

当前的TIFF规范、本文件第2节以及关于传真操作特定模式的章节中包含了传真TIFF的全套许可字段。本文件定义了传真TIFF的配置文件,其中配置文件是传真TIFF的全套允许字段和字段值的子集。

Section 3 defines the minimal black-and-white facsimile mode (Profile S), which is required in all implementations. Section 4 defines the extended black-and-white fax mode (Profile F), which provides a standard definition of TIFF-F. Section 5 describes the lossless black-and-white mode using JBIG compression (Profile J). Section 6 defines the base color mode, required in all color implementations, for the lossy JPEG representation of color and grayscale facsimile data (Profile C). Section 7 defines the lossless JBIG color and grayscale facsimile mode (Profile L) and Section 8 defines the Mixed Raster Content facsimile mode (Profile M). Each of these sections concludes with a table summarizing the required and recommended fields for each mode and the values they can have.

第3节定义了所有实现中所需的最小黑白传真模式(配置文件S)。第4节定义了扩展黑白传真模式(配置文件F),它提供了TIFF-F的标准定义。第5节描述了使用JBIG压缩的无损黑白模式(配置文件J)。第6节定义了所有颜色实现中所需的基色模式,用于彩色和灰度传真数据的有损JPEG表示(配置文件C)。第7节定义了无损JBIG彩色和灰度传真模式(配置文件L),第8节定义了混合光栅内容传真模式(配置文件M)。每一节最后都有一个表格,总结了每种模式的必填字段和推荐字段以及它们可以具有的值。

Section 9 describes the MIME content type image/tiff and the use of the optional Application parameter in connection with TIFF for facsimile. Sections 10, 11, 12 and 13 give Security Considerations, the ISOC Copyright Notice, References and Authors' Addresses. Annex A gives a summary of the TIFF fields used or defined in this document and provides a convenient reference for implementors.

第9节介绍了MIME内容类型image/tiff以及与传真tiff相关的可选应用程序参数的使用。第10、11、12和13节给出了安全注意事项、ISOC版权通知、参考资料和作者地址。附录A总结了本文件中使用或定义的TIFF字段,并为实施者提供了方便的参考。

To implement only the minimal interchange black-and-white set of fields and values (Profile S), one need read only Sections 1, 2, 3, 9 and 10.

为了只实现字段和值(概要文件)的最小交换黑白集,需要只读第1、2、3、9和10节。

The following tree diagram shows the relationship among profiles and between profiles and coding methods.

下图显示了配置文件之间以及配置文件和编码方法之间的关系。

                                S (MH)
                               / \
                       B&W    /   \   Color
                  ------------     ----------
                 /      \                    \
                /        F (MMR, MR)          C (JPEG)
               /                             / \
              J (JBIG)                   ----   \
                                        /        \
                                       L (JBIG)   \
                                                   \
                                                    M (MRC)
        
                                S (MH)
                               / \
                       B&W    /   \   Color
                  ------------     ----------
                 /      \                    \
                /        F (MMR, MR)          C (JPEG)
               /                             / \
              J (JBIG)                   ----   \
                                        /        \
                                       L (JBIG)   \
                                                   \
                                                    M (MRC)
        

A profile is based on a collection of ITU-T facsimile coding methods.

配置文件基于一系列ITU-T传真编码方法。

For example, Profile S, the minimal mode, is based on Modified Huffman (MH) compression, which are defined in ITU-T Rec. T.4. Profile F specifies Modified Read (MR) and Modified Modified Read (MMR) compressions, which are defined in ITU-T Rec. T.4 and T.6.

例如,配置文件S(最小模式)基于ITU-T Rec.T.4中定义的修改的哈夫曼(MH)压缩。配置文件F规定了修改读取(MR)和修改读取(MMR)压缩,这在ITU-T Rec.T.4和T.6中有定义。

All implementations of TIFF for facsimile MUST implement Profile S, which is the root node of the tree. All color implementations of TIFF for facsimile MUST implement Profile C. The implementation of a particular profile MUST also implement those profiles on the path that connect it to the root node, and MAY optionally implement profiles not on the path connecting it to the root node. For example, an implementation of Profile M must also implement Profiles C and S, and may optionally implement Profile F, J or L. For another example, an implementation of Profile C must also implement Profile S, and may optionally implement Profile F or J.

传真TIFF的所有实现都必须实现概要文件S,它是树的根节点。用于传真的TIFF的所有颜色实现必须实现配置文件C。特定配置文件的实现还必须在将其连接到根节点的路径上实现这些配置文件,并且可以选择不在将其连接到根节点的路径上实现配置文件。例如,概要文件M的实现还必须实现概要文件C和S,并且可以可选地实现概要文件F、J或L。例如,概要文件C的实现还必须实现概要文件S,并且可以可选地实现概要文件F或J。

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", " NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [REQ].

本文件中的关键词“必须”、“不得”、“要求”、“应”、“不得”、“应”、“不应”、“建议”、“可”和“可选”应按照[REQ]中的说明进行解释。

2. TIFF and Fax
2. TIFF和传真
2.1. TIFF Overview
2.1. TIFF概述

TIFF provides a means for describing, storing and interchanging raster image data. A primary goal of TIFF is to provide a rich environment within which applications can exchange image data. The current TIFF specification [TIFF] defines a commonly used, core set of TIFF fields known as Baseline TIFF. The current specification and TIFF Technical Notes 1 and 2 [TTN1, TTN2] define several TIFF extensions. The TIFF- based specification for fax applications uses a subset of Baseline TIFF fields, with selected extensions, as described in this document. In a few cases, this document defines new TIFF fields specifically for fax applications.

TIFF提供了一种描述、存储和交换光栅图像数据的方法。TIFF的主要目标是提供一个丰富的环境,应用程序可以在其中交换图像数据。当前的TIFF规范[TIFF]定义了一组常用的核心TIFF字段,称为基线TIFF。当前规范和TIFF技术说明1和2[TTN1,TTN2]定义了几个TIFF扩展。传真应用程序的基于TIFF的规范使用了基线TIFF字段的子集以及选定的扩展,如本文档所述。在少数情况下,本文档专门为传真应用程序定义了新的TIFF字段。

2.1.1. File Structure
2.1.1. 文件结构

TIFF is designed for raster images, which makes it a good match for facsimile documents, which are multi-page raster images. Each raster image consists of a number of rows or scanlines, each of which has the same number of pixels, the unit of sampling. Each pixel has at least one sample or component (exactly one for black-and-white images).

TIFF是为光栅图像而设计的,这使得它非常适合多页光栅图像的传真文档。每个光栅图像由若干行或扫描线组成,每个行或扫描线具有相同数量的像素(采样单位)。每个像素至少有一个样本或组件(黑白图像正好有一个)。

A TIFF file begins with an 8-byte image file header. The first two bytes describe the byte order used within the file. Legal values are "II" (0x4949) when bytes are ordered from least to most significant (little- endian), and "MM" (0x4D4D), when bytes are ordered from most

TIFF文件以8字节的图像文件头开头。前两个字节描述文件中使用的字节顺序。当字节从最低有效位到最高有效位(小端)排序时,法定值为“II”(0x4949);当字节从最高有效位排序时,法定值为“MM”(0x4D4D)

to least significant (big-endian) within a 16- or 32-bit integer. Either byte order can be used, except in the case of the minimal black-and-white mode, which SHALL use value "II". The next two bytes contain the value 42 that identifies the file as a TIFF file and is ordered according to the value in the first two bytes of the header. The last four bytes give the offset that points to the first image file directory (IFD). This and all other offsets in a TIFF file are with respect to the beginning of the TIFF file. An IFD can be at any location in the file after the header but must begin on a word boundary.

16位或32位整数中的最低有效位(大端)。可以使用任意一个字节顺序,但最小黑白模式除外,该模式应使用值“II”。接下来的两个字节包含将文件标识为TIFF文件的值42,并根据头的前两个字节中的值进行排序。最后四个字节给出指向第一个映像文件目录(IFD)的偏移量。TIFF文件中的此偏移和所有其他偏移都是相对于TIFF文件的开头的偏移。IFD可以位于文件头之后的任何位置,但必须从单词边界开始。

An IFD is a sequence of tagged fields, sorted in ascending order by tag value. An IFD consists of a 2-byte count of the number of fields, a sequence of field entries and a 4-byte offset to the next IFD. The fields contain information about the image and pointers to the image data. Each separate raster image in the file is represented by an IFD.

IFD是标记字段的序列,按标记值按升序排序。IFD由字段数的2字节计数、字段条目序列和到下一个IFD的4字节偏移量组成。这些字段包含有关图像的信息和指向图像数据的指针。文件中每个单独的光栅图像都由IFD表示。

Each field entry in an IFD has 12 bytes and consists of a 2-byte Tag, 2 bytes identifying the field type (e.g. short, long, rational, ASCII), 4 bytes giving the count (number of values or offsets), and 4 bytes that either contain the offset to a field value stored outside the IFD, or, based on the type and count, the field value itself. Resolution and metadata such as dates, names and descriptions are examples of "long" field values that do not fit in 4 bytes and therefore use offsets in the field entry. Details are given in the TIFF specification [TIFF].

IFD中的每个字段条目有12个字节,由2个字节的标记、2个字节标识字段类型(例如,短、长、有理、ASCII)、4个字节表示计数(值或偏移量的数量),以及4个字节组成,其中包含存储在IFD外部的字段值的偏移量,或者根据类型和计数,包含字段值本身。解析和元数据(如日期、名称和描述)是“长”字段值的示例,这些字段值不适合4字节,因此在字段条目中使用偏移量。详细信息见TIFF规范[TIFF]。

A TIFF file can contain more than one IFD, where each IFD is a subfile whose type is given in the NewSubfileType field. Multiple IFDs can be organized either as a linked list, with the last entry in each IFD pointing to the next IFD (the pointer in the last IFD is 0), or as a tree, using the SubIFDs field in the primary IFD [TTN1]. The SubIFDs field contains an array of pointers to child IFDs of the primary IFD.

TIFF文件可以包含多个IFD,其中每个IFD都是一个子文件,其类型在NewSubfileType字段中给出。可以将多个IFD组织为链表,每个IFD中的最后一个条目指向下一个IFD(最后一个IFD中的指针为0),或者使用主IFD[TTN1]中的子IFD字段将其组织为树。SubIFDs字段包含指向主IFD的子IFD的指针数组。

Child IFDs describe related images, such as reduced resolution versions of the primary IFD image. The same IFD can point both to a next IFD and to child IFDs, and child IFDs can themselves point to other IFDs.

子IFD描述相关图像,例如主IFD图像的低分辨率版本。同一个IFD可以指向下一个IFD和子IFD,子IFD本身也可以指向其他IFD。

All fax modes represent a multi-page fax image as a linked list of IFDs, with a NewSubfileType field containing a bit that identifies the IFD as one page of a multi-page document. Each IFD has a PageNumber field, identifying the page number in ascending order, starting at 0 for the first page. While a Baseline TIFF reader is not

所有传真模式都将多页传真图像表示为IFD的链接列表,其中NewSubfileType字段包含一个位,该位将IFD标识为多页文档的一页。每个IFD都有一个页码字段,以升序标识页码,第一页从0开始。而基线TIFF读取器不是

required to read any IFDs beyond the first, an implementation that reads the files that comply with this specification SHALL read multiple IFDs. Only the Mixed Raster Content fax mode, described in Section 8, requires the use of child IFDs.

需要读取第一个IFD之外的任何IFD时,读取符合本规范的文件的实现应读取多个IFD。只有第8节所述的混合光栅内容传真模式需要使用子IFD。

The following figure illustrates the structure of a multi-page TIFF file.

下图说明了多页TIFF文件的结构。

                   +-----------------------+
                   |         Header        |------------+
                   +-----------------------+            | First IFD
                   |      IFD (page 0)     |<-----------+ Offset
               +---|                       |------------+
         Value |   +-----------------------+            |
        Offset +-->|      Long Values      |--+         |
                   +-----------------------|  | Strip   |
                   |       Image Data      |<-+ Offset  |
                   |     strip 1 page 0    |  |         |
                   +-----------------------+  |         |
                   |           :           |  :         |
                                                        |
                   +-----------------------+            | Next IFD
                   |      IFD (page 1)     |<-----------+ Offset
               +---|                       |------------+
         Value |   +-----------------------+            |
        Offset +-->|      Long Values      |--+         |
                   +-----------------------|  | Strip   |
                   |       Image Data      |<-+ Offset  |
                   |     strip 1 page 1    |  |         |
                   +-----------------------+  |         |
                   |     strip 2 page 1    |<-+         |
                   +-----------------------+  |         |
                   |          :            |  :         |
                                                        |
                   +-----------------------+            | Next IFD
                   |      IFD (page 2)     |<-----------+ Offset
                   |          :            |
        
                   +-----------------------+
                   |         Header        |------------+
                   +-----------------------+            | First IFD
                   |      IFD (page 0)     |<-----------+ Offset
               +---|                       |------------+
         Value |   +-----------------------+            |
        Offset +-->|      Long Values      |--+         |
                   +-----------------------|  | Strip   |
                   |       Image Data      |<-+ Offset  |
                   |     strip 1 page 0    |  |         |
                   +-----------------------+  |         |
                   |           :           |  :         |
                                                        |
                   +-----------------------+            | Next IFD
                   |      IFD (page 1)     |<-----------+ Offset
               +---|                       |------------+
         Value |   +-----------------------+            |
        Offset +-->|      Long Values      |--+         |
                   +-----------------------|  | Strip   |
                   |       Image Data      |<-+ Offset  |
                   |     strip 1 page 1    |  |         |
                   +-----------------------+  |         |
                   |     strip 2 page 1    |<-+         |
                   +-----------------------+  |         |
                   |          :            |  :         |
                                                        |
                   +-----------------------+            | Next IFD
                   |      IFD (page 2)     |<-----------+ Offset
                   |          :            |
        
2.1.2 Image Structure
2.1.2 图像结构

An IFD stores an image as one or more strips, as shown in the preceding figure. A strip consists of 1 or more scanlines (rows) of raster image data in compressed form. An image may be stored in a single strip or may be divided into several strips, which would require less memory to buffer. (Baseline TIFF recommends about 8k bytes per strip, but existing fax usage is typically one strip per image.)

IFD将图像存储为一个或多个条带,如上图所示。条带由1条或多条压缩形式的光栅图像数据扫描线(行)组成。图像可以存储在单个条带中,也可以分为多个条带,这将需要更少的内存来缓冲。(基线TIFF建议每个条带大约8k字节,但现有的传真使用通常是每个图像一条带。)

Each IFD requires three strip-related fields: StripOffsets, RowsPerStrip and StripByteCounts. The StripOffsets field is an array of pointers to the strip or strips that contain the actual image data. The StripByteCounts field gives the number of bytes in each strip after compression. TIFF requires that each strip, except the last, contain the same number of scanlines, which is given in the RowsPerStrip field. This document introduces the new StripRowCounts field that allows a variable number of scanlines per strip, which is required by the Mixed Raster Content fax mode (Section 8).

每个IFD需要三个与条带相关的字段:StripOffset、RowsPerStrip和StripByteCounts。StripOffsets字段是指向包含实际图像数据的一个或多个条带的指针数组。StripByteCounts字段给出压缩后每个条带中的字节数。TIFF要求每个条带(最后一条除外)包含相同数量的扫描线,这在RowsPerStrip字段中给出。本文档介绍了新的StripRowCounts字段,该字段允许每个条带具有可变数量的扫描线,这是混合光栅内容传真模式(第8节)所要求的。

Image data is stored as uninterpreted, compressed image data streams within a strip. The formats of these streams follow the ITU-T Recommendations. The Compression field in the IFD indicates the type of compression, and other TIFF fields in the IFD describe image attributes, such as color encoding and spatial resolution. Compression parameters are stored in the compressed data stream, rather than in TIFF fields. This makes the TIFF representation and compressed data format specification independent of each another. This approach, modeled on [TTN2], allows TIFF to gracefully add new compression schemes as they become available.

图像数据作为未解释的压缩图像数据流存储在条带中。这些流的格式遵循ITU-T建议。IFD中的压缩字段表示压缩类型,IFD中的其他TIFF字段描述图像属性,例如颜色编码和空间分辨率。压缩参数存储在压缩数据流中,而不是存储在TIFF字段中。这使得TIFF表示和压缩数据格式规范相互独立。这种基于[TTN2]的方法允许TIFF在新的压缩方案可用时优雅地添加新的压缩方案。

Some attributes can be specified both in the compressed data stream and within a TIFF field. It is possible that the two values will differ. When this happens for values required to interpret the data stream, then the values in the data stream take precedence. For informational values that are not required to interpret the data stream, such as author name, then the TIFF field value takes precedence.

可以在压缩数据流和TIFF字段中指定某些属性。这两个值可能不同。当解释数据流所需的值发生这种情况时,数据流中的值优先。对于解释数据流不需要的信息值,如作者姓名,则优先使用TIFF字段值。

2.1.3 TIFF File Structure for Fax Applications
2.1.3 传真应用程序的TIFF文件结构

The TIFF specification has a very flexible file structure, which does not specify the ordering of IFDs, field values and image data in a file. Individual applications may require or recommend an ordering.

TIFF规范具有非常灵活的文件结构,它不指定文件中IFD、字段值和图像数据的顺序。个别应用可能需要或建议订购。

This specification recommends that when using a TIFF file for facsimile, A multi-page fax document SHOULD be represented as a linked list of IFDs. It also recommends that a TIFF file for facsimile SHOULD order pages in a TIFF file in the same way that they are ordered in a fax data stream. In a TIFF file, a page consists of several elements: one or more IFDs (including subIFDs), long field values that are stored outside the IFDs, and image data (in one or more strips).

本规范建议,当使用TIFF文件进行传真时,多页传真文件应表示为IFD的链接列表。它还建议用于传真的TIFF文件在TIFF文件中的页面顺序应与在传真数据流中的页面顺序相同。在TIFF文件中,页面由多个元素组成:一个或多个IFD(包括子IFD)、存储在IFD外部的长字段值和图像数据(在一个或多个条带中)。

The minimal black-and-white mode (Profile S) specifies a required ordering of pages and elements within a page (Section 3.5). The extended black-and-white mode (Profile F) provides guidelines for ordering pages and page elements (Section 4.4.6). Other profiles

最小黑白模式(概要文件S)规定了页面和页面内元素的所需顺序(第3.5节)。扩展黑白模式(配置文件F)提供了页面和页面元素排序指南(第4.4.6节)。其他概况

SHOULD follow these guidelines. This recommendation is intended to simplify the implementation of TIFF writers and readers in fax applications and the conversion between TIFF file and fax data stream representations. However, for interchange robustness, readers SHOULD be prepared to read TIFF files whose structure is consistent with [TIFF], which supports a more flexible file structure than is recommended here.

我们应该遵循这些准则。本建议旨在简化传真应用程序中TIFF写入程序和读取器的实现,以及TIFF文件和传真数据流表示之间的转换。但是,为了保证交换的健壮性,读者应该准备好读取结构与[TIFF]一致的TIFF文件,后者支持比此处推荐的更灵活的文件结构。

This specification introduces an optional new GlobalParametersIFD field, defined in Section 2.2.4. This field has type IFD and indicates parameters describing the fax session. While it is often possible to obtain these parameters by scanning the file, it is convenient to make them available together in one place for fast and easy access. If the GlobalParametersIFD occurs in a TIFF file, it SHOULD be located in the first IFD, immediately following the 8-byte image file header.

本规范引入了第2.2.4节中定义的可选新GlobalParametersIFD字段。此字段的类型为IFD,表示描述传真会话的参数。虽然通常可以通过扫描文件来获取这些参数,但可以方便地将它们放在一个地方,以便快速轻松地访问。如果GlobalParametersIFD出现在TIFF文件中,则它应位于第一个IFD中,紧跟在8字节图像文件头之后。

2.2 TIFF Fields for All Fax Applications
2.2 所有传真应用程序的TIFF字段

The TIFF specification [TIFF] is organized as a baseline set and several extensions, including technical notes [TTN1, TTN2] that will be incorporated in the next release of TIFF. The baseline and extensions have required and optional fields.

TIFF规范[TIFF]被组织为一个基线集和几个扩展,包括将纳入下一版本TIFF的技术说明[TTN1,TTN2]。基线和扩展具有必填字段和可选字段。

Facsimile applications require (and recommend) a mixture of baseline and extensions fields, as well as some new fields that are not part of the TIFF specification and that are defined in this document. This sub- section lists the fields that are required or recommended for all modes. In particular, Section 2.2.1 lists the fields that are required by all modes and that have values that do not depend on the mode. Section 2.2.2 lists the fields that are required by all modes and that have values which do depend on the mode. Section 2.2.3 lists the fields that are recommended for all modes. Fields that are required or recommended by some but not all modes are given in the section (Section 3-8) that describes that mode. The sections for each fax mode have sub-sections for required and recommended fields; each sub-section organizes the fields according to whether they are baseline, extension or new.

传真应用程序需要(并建议)基线和扩展字段的混合,以及一些不属于TIFF规范一部分且在本文档中定义的新字段。本小节列出了所有模式所需或建议的字段。特别是,第2.2.1节列出了所有模式所需的字段以及不依赖于模式的值。第2.2.2节列出了所有模式所需的字段,这些字段的值取决于模式。第2.2.3节列出了建议用于所有模式的字段。描述该模式的章节(第3-8节)中给出了某些但并非所有模式所需或建议的字段。每个传真模式的部分都有必填字段和推荐字段的子部分;每个小节根据字段是基线字段、扩展字段还是新字段来组织字段。

The fields required for facsimile have only a few legal values, specified in the ITU-T Recommendations. Of these legal values, some are required and some are optional, just as they are required (mandatory) or optional in fax implementations that conform to the ITU-T Recommendations. The required and optional values are noted in the sections on the different fax modes.

传真所需的字段只有ITU-T建议中规定的几个法定值。在这些法律价值中,有些是必需的,有些是可选的,正如它们在符合ITU-T建议的传真实施中是必需的(强制性)或可选的一样。所需值和可选值在不同传真模式的章节中有所说明。

This section describes the fields required or recommended by all fax modes. The pattern for the description of TIFF fields in this draft is:

本节介绍所有传真模式所需或建议的字段。本草案中TIFF字段的描述模式为:

FieldName(TagValueInDecimal) = allowable values.                    TYPE
    WhetherRequiredByTIFForTIFFforFAX
    Count = (omitted if =1) = (if not in current spec but available)
    Explanation of the field, how it's used, and the values it can have.
    Default value, if any, as specified in [TIFF]
        
FieldName(TagValueInDecimal) = allowable values.                    TYPE
    WhetherRequiredByTIFForTIFFforFAX
    Count = (omitted if =1) = (if not in current spec but available)
    Explanation of the field, how it's used, and the values it can have.
    Default value, if any, as specified in [TIFF]
        

When a field's default value is the desired value, that field may be omitted from the relevant IFD unless specifically required by the text of this specification.

当某个字段的默认值为所需值时,除非本规范文本有明确要求,否则相关IFD中可省略该字段。

2.2.1. TIFF fields required for all fax modes
2.2.1. 所有传真模式都需要TIFF字段

The TIFF fields listed in this section SHALL be used by all fax modes, but have field values that are not specified by the ITU standards, i.e. the fields do not depend on the mode. The next sub-section lists the fields that SHALL be used by all fax modes, but which do have values specified by the ITU-specified or mode-specific values. Fields that SHALL be used by some but not all modes are given in the sections (3-8) which describe the modes that uses them.

本节中列出的TIFF字段应用于所有传真模式,但其字段值未经ITU标准规定,即字段不依赖于模式。下一小节列出了所有传真模式应使用的字段,但这些字段的值由ITU指定或模式特定值指定。部分模式(而非所有模式)应使用的字段在描述使用它们的模式的章节(3-8)中给出。

ImageLength(257) SHORT or LONG RequiredByTIFFBaseline Total number of scanlines in image. No default, must be specified.

ImageLength(257)图像中扫描线总数所需的短或长。没有默认值,必须指定。

PageNumber(297) SHORT RequiredByTIFFforFAX, TIFFExtension Count = 2 The first number represents the page number (0 for the first page); the second number is the total number of pages in the document. If the second value is 0, then the total page count is not available. No default, must be specified

PageNumber(297)TiffForFax要求的短,TIFFExtension Count=2第一个数字表示页码(第一页为0);第二个数字是文档中的总页数。如果第二个值为0,则总页数不可用。没有默认值,必须指定

RowsPerStrip(278) SHORT or LONG RequiredByTIFFBaseline The number of scanlines per TIFF strip, except for the last strip. For a single strip image, this is the same as the value of the ImageLength field. Default = 2**32 - 1 (meaning all scanlines in one strip)

RowsPerStrip(278)TIFF基线要求的短或长每个TIFF条带的扫描线数,最后一条除外。对于单个条形图像,这与ImageLength字段的值相同。默认值=2**32-1(表示一条带中的所有扫描线)

StripByteCounts(279) SHORT or LONG RequiredByTIFFBaseline Count = number of strips For each strip, the number of bytes in that strip after compression.

StripByteCounts(279)SHORT或LONG RequiredByTIFFBaseline Count=每个条带的条带数,压缩后该条带中的字节数。

No default, must be specified.

没有默认值,必须指定。

StripOffsets(273) SHORT or LONG RequiredByTIFFBaseline Count = number of strips For each strip, the byte offset from the beginning of the file to the start of that strip. No default, must be specified.

StripOffset(273)SHORT或LONG RequiredByTIFFBaseline Count=每个条带的条带数,即从文件开头到该条带开头的字节偏移量。没有默认值,必须指定。

2.2.2 Additional TIFF fields required for all fax modes
2.2.2 所有传真模式所需的附加TIFF字段

The TIFF fields listed in this section SHALL be used by all fax modes, but the values associated with them depend on the mode being described and the associated ITU Recommendations. Therefore, only the fields are defined here; the values applicable to a particular fax mode are described in Sections 3-8. Fields that SHALL be used by some but not all modes are given in the section (3-8) describing the mode that uses them.

本节中列出的TIFF字段适用于所有传真模式,但与之相关的值取决于所描述的模式和相关的ITU建议。因此,此处仅定义字段;第3-8节描述了适用于特定传真模式的值。部分模式(而非所有模式)应使用的字段在描述使用它们的模式的章节(3-8)中给出。

BitsPerSample(258) SHORT RequiredByTIFFBaseline Number of bits per image sample Default = 1 (field may be omitted if this is the value)

BitsPerSample(258)SHORT RequiredByTIFFBaseline每个图像采样的位数默认值=1(如果这是值,则可以省略该字段)

Compression(259) SHORT RequiredByTIFFBaseline Compression method used for image data Default = 1 (no compression, so may not be omitted for FAX)

压缩(259)图像数据默认值为1时使用的TIFF基线压缩方法所需的短时间(无压缩,因此传真时不能省略)

FillOrder(266) SHORT RequiredByTIFFforFax The default bit order in Baseline TIFF per [TIFF] is indicated by FillOrder=1, where bits are not reversed before being stored. However, TIFF for Fax typically utilizes the setting of FillOrder=2, where the bit order within bytes is reversed before storage (i.e., bits are stored with the Least Significant Bit first). Default = 1 (field may be omitted if this is the value) Facsimile data appears on the phone line in bit-reversed order relative to its description in the relevant ITU compression Recommendation. Therefore, a wide majority of facsimile implementations choose this natural order for storage. Nevertheless, all readers conforming to this specification must be able to read data in both bit orders.

FillOrder(266)FillOrder(266)SHORT REQUIRED BYTIFF FORFAX基线TIFF per[TIFF]中的默认位顺序由FillOrder=1表示,其中位在存储之前不会反转。然而,传真TIFF通常使用FillOrder=2的设置,其中字节内的位顺序在存储之前反转(即,位以最低有效位优先存储)。默认值=1(如果这是值,则可省略字段)传真数据以与相关ITU压缩建议中的描述相反的位顺序出现在电话线上。因此,大多数传真实现都选择这种自然的存储顺序。然而,符合本规范的所有读卡器必须能够以两种位顺序读取数据。

ImageWidth(256) SHORT or LONG RequiredByTIFFBaseline The number of pixels (columns) per scanline (row) of the image No default, must be specified.

ImageWidth(256)TiffBaseline要求的短或长必须指定图像每扫描线(行)的像素数(列)无默认值。

NewSubFileType(254) LONG RequiredByTIFFforFAX A general indication of the kind of data contained in this IFD Bit 1 is 1 if the image is a single page of a multi-page document. Default = 0 (no subfile bits on, so may not be omitted for FAX)

TIFFFORFAX要求的新闻子文件类型(254)长如果图像是多页文档的单页,则此IFD位1中包含的数据类型的一般指示为1。默认值=0(没有子文件位打开,因此传真时不能省略)

PhotometricInterpretation(262) SHORT RequiredByTIFFBaseline The color space of the image data No default, must be specified

PhotometricInterpretation(262)TiffBaseline所需的缩写必须指定图像数据的颜色空间无默认值

ResolutionUnit(296) SHORT RequiredByTIFFBaseline The unit of measure for resolution. 2 = inch, 3 = centimeter; Default = 2 (field may be omitted if this is the value)

ResolutionUnit(296)是分辨率的度量单位。2=英寸,3=厘米;默认值=2(如果为该值,则可省略该字段)

SamplesPerPixel(277) SHORT RequiredByTIFFBaseline The number of color components per pixel; SamplesPerPixel is 1 for a black-and-white, grayscale or indexed (palette) image. Default =1 (field may be omitted if this is the value)

SamplesPerPixel(277)每个像素所需的颜色分量数量;对于黑白、灰度或索引(调色板)图像,SamplesPerPixel为1。默认值=1(如果为该值,则可省略该字段)

XResolution(282) RATIONAL RequiredByTIFFBaseline The horizontal resolution of the image in pixels per resolution unit. The ITU-T Recommendations for facsimile specify a small number of horizontal resolutions: 100, 200, 300, 400 pixels per inch, and 80, 160 pixels per centimeter (or 204, 408 pixels per inch). The allowed XResolution values for each mode are given in the section defining that mode. Per [T.4], it is permissible for applications to treat the following XResolution values as being equivalent: <204, 200> and <400,408> in pixels/inch. These equivalencies were allowed by [T.4] to permit conversions between inch and metric based facsimile terminals. TIFF for Facsimile Writers SHOULD express XResolution in inch based units, for consistency with historical practice and to maximize interoperability. See the table below for information on how to convert from an ITU-T metric value to its inch based equivalent resolution. No default, must be specified

XResolution(282)RATIONAL RequiredByTIFFBaseline图像的水平分辨率,单位为像素/分辨率单位。ITU-T传真建议规定了少量的水平分辨率:每英寸100200300400像素和每厘米80160像素(或每英寸204408像素)。每个模式允许的分辨率值在定义该模式的部分中给出。根据[T.4],允许应用程序将以下X分辨率值视为等效值:<204200>和<400408>像素/英寸。[T.4]允许这些等效性,以允许在基于英寸和公制的传真终端之间进行转换。传真机的TIFF应以英寸为单位表示X分辨率,以与历史惯例保持一致,并最大限度地提高互操作性。有关如何将ITU-T公制值转换为基于英寸的等效分辨率的信息,请参见下表。没有默认值,必须指定

YResolution(283) RATIONAL RequiredByTIFFBaseline The vertical resolution of the image in pixels per resolution unit. The ITU-T Recommendations for facsimile specify a small number of vertical resolutions: 100, 200, 300, 400 pixels per inch, and 38.5, 77, 154 pixels per centimeter (or 98, 196, 391 pixels per inch). The allowed YResolution values for each mode are given in the section

YResolution(283)RATIONAL RequiredByTIFFBaseline图像的垂直分辨率,单位为像素/分辨率单位。ITU-T传真建议规定了少量垂直分辨率:每英寸100、200、300、400像素,每厘米38.5、77、154像素(或每英寸98196391像素)。每种模式允许的YResolution值在本节中给出

defining that mode. Per [T.4], it is permissible for applications to treat the following YResolution values as being equivalent: <98, 100>, <196, 200>, and <391, 400> in pixels/inch. These equivalencies were allowed by [T.4] to permit conversions between inch and metric based facsimile terminals. TIFF for Facsimile Writers SHOULD express YResolution in inch based units, for consistency with historical practice and to maximize interoperability. See the table below for information on how to convert from an ITU-T metric value to its inch based equivalent resolution. No default, must be specified

定义该模式。根据[T.4],允许应用程序将以下Y分辨率值视为等效值:<98100>、<196200>和<391400>(像素/英寸)。[T.4]允许这些等效性,以允许在基于英寸和公制的传真终端之间进行转换。传真机的TIFF应以英寸为单位表示YResolution,以与历史惯例保持一致,并最大限度地提高互操作性。有关如何将ITU-T公制值转换为基于英寸的等效分辨率的信息,请参见下表。没有默认值,必须指定

      +-----------------------------+-----------------------------+
      |         XResolution         |         YResolution         |
      +--------------+--------------+--------------+--------------+
      |ResolutionUnit|ResolutionUnit|ResolutionUnit|ResolutionUnit|
      |  =2 (inch)   |   =3 (cm)    |  =2 (inch)   |   =3 (cm)    |
      +--------------+--------------+--------------+--------------+
      |     100      |              |     100      |              |
      +--------------+--------------+--------------+--------------+
      |     204      |      80      |      98      |     38.5     |
      |     200      |              |     100      |              |
      +--------------+--------------+--------------+--------------+
      |     204      |      80      |     196      |      77      |
      |     200      |              |     200      |              |
      +--------------+--------------+--------------+--------------+
      |     204      |      80      |     391      |     154      |
      +--------------+--------------+--------------+--------------+
      |     300      |              |     300      |              |
      +--------------+--------------+--------------+--------------+
      |     408      |     160      |     391      |     154      |
      |     400      |              |     400      |              |
      +--------------+--------------+--------------+--------------+
        
      +-----------------------------+-----------------------------+
      |         XResolution         |         YResolution         |
      +--------------+--------------+--------------+--------------+
      |ResolutionUnit|ResolutionUnit|ResolutionUnit|ResolutionUnit|
      |  =2 (inch)   |   =3 (cm)    |  =2 (inch)   |   =3 (cm)    |
      +--------------+--------------+--------------+--------------+
      |     100      |              |     100      |              |
      +--------------+--------------+--------------+--------------+
      |     204      |      80      |      98      |     38.5     |
      |     200      |              |     100      |              |
      +--------------+--------------+--------------+--------------+
      |     204      |      80      |     196      |      77      |
      |     200      |              |     200      |              |
      +--------------+--------------+--------------+--------------+
      |     204      |      80      |     391      |     154      |
      +--------------+--------------+--------------+--------------+
      |     300      |              |     300      |              |
      +--------------+--------------+--------------+--------------+
      |     408      |     160      |     391      |     154      |
      |     400      |              |     400      |              |
      +--------------+--------------+--------------+--------------+
        
2.2.3 TIFF fields recommended for all fax modes
2.2.3 建议所有传真模式使用TIFF字段

The TIFF fields listed in this section MAY be used by all fax modes. However, Profile S writers (the minimal fax mode described in Section 3) SHOULD NOT use these fields. Recommended fields that are mode-specific are described in Sections 3-8.

本节中列出的TIFF字段可用于所有传真模式。但是,配置文件的编写器(第3节中描述的最小传真模式)不应使用这些字段。第3-8节介绍了特定于模式的推荐字段。

DateTime(306) ASCII OptionalInTIFFBaseline Date/time of image creation in 24-hour format "YYYY:MM:DD HH:MM:SS". No default.

DateTime(306)ASCII OptionalInTIFFBaseline 24小时格式图像创建的日期/时间“YYYY:MM:DD HH:MM:SS”。没有默认值。

DocumentName(269) ASCII OptionalInTIFFExtension(DocumentStorageAndRetrieval) The name of the scanned document. This is a TIFF extension field, not a Baseline TIFF field.

DocumentName(269)ASCII选项AntiffExtension(DocumentStorageAndRetrieval)扫描文档的名称。这是TIFF扩展字段,不是基线TIFF字段。

No default.

没有默认值。

ImageDescription(270) ASCII OptionalInTIFFBaseline A string describing the contents of the image. No default.

ImageDescription(270)ASCII OptionantiffBaseline描述图像内容的字符串。没有默认值。

Orientation(274) = 1-8. SHORT OptionalinTIFFBaseline 1: 0th row represents the visual top of the image; the 0th column represents the visual left side of the image. See the current TIFF spec [TIFF] for further values; Baseline TIFF only requires value=1. Default = 1. Note: It is recommended that a writer that is aware of the orientation will include this field to give a positive indication of the orientation, even if the value is the default. If the Orientation field is omitted, the reader SHALL assume a value of 1.

方向(274)=1-8。SHORT OptionInTiffBaseline 1:0行表示图像的可视顶部;第0列表示图像的可视左侧。有关更多值,请参见当前TIFF规范[TIFF];基线TIFF仅要求值=1。默认值=1。注意:建议知道方向的编写器包括此字段,以提供方向的正向指示,即使该值是默认值。如果省略了方向字段,则读取器应假定值为1。

Software(305) ASCII OptionalInTIFFBaseline The optional name and release number of the software package that created the image. No default.

软件(305)ASCII OptionalInTIFFBaseline创建映像的软件包的可选名称和版本号。没有默认值。

2.2.4 New TIFF fields recommended for fax modes
2.2.4 建议传真模式使用新的TIFF字段

The new TIFF fields listed in this section MAY be used by all fax modes, but their support is not expected for the minimal fax mode described in Section 3. In addition, support for these new TIFF fields has not been included in historical TIFF-F readers described in Section 4 and [TIFF- F]. These fields describe "global" parameters of the fax session that created the image data. They are optional, not part of the current TIFF specification, and are defined in this document.

本节中列出的新TIFF字段可用于所有传真模式,但第3节中所述的最小传真模式不支持这些字段。此外,第4节和[TIFF-F]中所述的历史TIFF-F阅读器中未包含对这些新TIFF字段的支持。这些字段描述创建图像数据的传真会话的“全局”参数。它们是可选的,不是当前TIFF规范的一部分,并在本文档中定义。

The first new field, GlobalParametersIFD, is an IFD that contains global parameters and is located in a Primary IFD.

第一个新字段GlobalParametersIFD是一个包含全局参数的IFD,位于主IFD中。

GlobalParametersIFD (400) IFD An IFD containing global parameters. It is recommended that a TIFF writer place this field in the first IFD, where a TIFF reader would find it quickly.

GlobalParametersIFD(400)IFD包含全局参数的IFD。建议TIFF编写器将此字段放在第一个IFD中,TIFF阅读器可以在其中快速找到它。

Each field in the GlobalParametersIFD is a TIFF field that is legal in any IFD. Required baseline fields should not be located in the GlobalParametersIFD, but should be in each image IFD. If a conflict exists between fields in the GlobalParametersIFD and in the image IFDs, then the data in the image IFD shall prevail.

GlobalParametersIFD中的每个字段都是在任何IFD中合法的TIFF字段。必需的基线字段不应位于GlobalParametersIFD中,而应位于每个图像IFD中。如果全局参数SIFD和图像IFD中的字段之间存在冲突,则应以图像IFD中的数据为准。

Among the GlobalParametersIFD entries is a new ProfileType field which generally describes information in this IFD and in the TIFF file.

在GlobalParametersIFD条目中有一个新的ProfileType字段,它通常描述此IFD和TIFF文件中的信息。

ProfileType(401) LONG The type of image data stored in this IFD. 0 = Unspecified 1 = Group 3 fax No default

ProfileType(401)长此IFD中存储的图像数据类型。0=未指定1=第3组传真无默认值

The following new global fields are defined in this document as IFD entries for use with fax applications.

以下新的全局字段在本文档中定义为IFD条目,用于传真应用程序。

FaxProfile(402) = 0 - 6. BYTE The profile that applies to this file; a profile is subset of the full set of permitted fields and field values of TIFF for facsimile. The currently defined values are: 0: does not conform to a profile defined for TIFF for facsimile 1: minimal black & white lossless, Profile S 2: extended black & white lossless, Profile F 3: lossless JBIG black & white, Profile J 4: lossy color and grayscale, Profile C 5: lossless color and grayscale, Profile L 6: Mixed Raster Content, Profile M

传真配置文件(402)=0-6。字节应用于此文件的配置文件;配置文件是传真TIFF的全套允许字段和字段值的子集。当前定义的值为:0:不符合为传真TIFF定义的配置文件1:最小黑白无损、配置文件S2:扩展黑白无损、配置文件F3:无损JBIG黑白、配置文件J4:有损颜色和灰度、配置文件C5:无损颜色和灰度、配置文件L6:混合光栅内容、配置文件M

CodingMethods(403) LONG This field indicates which coding methods are used in the file. A bit value of 1 indicates which of the following coding methods is used: Bit 0: unspecified compression, Bit 1: 1-dimensional coding, ITU-T Rec. T.4 (MH - Modified Huffman), Bit 2: 2-dimensional coding, ITU-T Rec. T.4 (MR - Modified Read), Bit 3: 2-dimensional coding, ITU-T Rec. T.6 (MMR - Modified MR), Bit 4: ITU-T Rec. T.82 coding, using ITU-T Rec. T.85 (JBIG), Bit 5: ITU-T Rec. T.81 (Baseline JPEG), Bit 6: ITU-T Rec. T.82 coding, using ITU-T Rec. T.43 (JBIG color), Bits 7-31: reserved for future use Note: There is a limit of 32 compression types to identify standard compression methods.

CodingMethods(403)长此字段指示文件中使用的编码方法。位值1表示使用了以下哪种编码方法:位0:未指定压缩、位1:一维编码、ITU-T Rec.T.4(MH-修改的哈夫曼)、位2:二维编码、ITU-T Rec.T.4(MR-修改的读取)、位3:二维编码、ITU-T Rec.T.6(MMR-修改的MR)、位4:ITU-T Rec.T.82编码,使用ITU-T Rec.T.85(JBIG),第5位:ITU-T Rec.T.81(基线JPEG),第6位:ITU-T Rec.T.82编码,使用ITU-T Rec.T.43(JBIG颜色),第7-31位:保留供将来使用注:识别标准压缩方法的压缩类型限制为32种。

VersionYear(404) BYTE Count: 4 The year of the standard specified by the FaxProfile field, given as 4 characters, e.g. '1997'; used in lossy and lossless color modes.

VersionYear(404)字节计数:4由FaxProfile字段指定的标准年份,以4个字符表示,例如“1997”;用于有损和无损颜色模式。

ModeNumber (405) BYTE The mode of the standard specified by the FaxProfile field. A value of 0 indicates Mode 1.0; used in Mixed Raster Content mode.

ModeNumber(405)字节由FaxProfile字段指定的标准模式。值为0表示模式1.0;用于混合光栅内容模式。

3. Minimal Black-and-White Fax Mode
3. 最小黑白传真模式

This section defines the minimal black-and-white subset of TIFF for facsimile. This subset is designated Profile S. All implementations of TIFF for facsimile SHALL support the minimal subset.

本节定义了传真TIFF的最小黑白子集。该子集被指定为概要文件S。传真TIFF的所有实现都应支持最小子集。

Black-and-white mode is the binary fax application most users are familiar with today. This mode is appropriate for black-and-white text and line art. Black-and-white mode is divided into two levels of capability. This section describes the minimal interchange set of TIFF fields that must be supported by all implementations in order to assure that some form of image, albeit black-and-white, can be interchanged. This minimum interchange set is a strict subset of the fields and values defined for the extended black-and-white mode (TIFF-F or Profile F) in Section 4, which describes extensions to the minimal interchange set of fields that provide a richer set of black-and-white capabilities.

黑白模式是目前大多数用户熟悉的二进制传真应用程序。此模式适用于黑白文本和线条艺术。黑白模式分为两个能力级别。本节介绍所有实现必须支持的TIFF字段的最小交换集,以确保某种形式的图像(尽管是黑白图像)可以交换。该最小交换集是第4节中为扩展黑白模式(TIFF-F或配置文件F)定义的字段和值的严格子集,该节描述了对提供更丰富黑白功能的字段最小交换集的扩展。

3.1. Overview
3.1. 概述

The minimal interchange portion of the black-and-white facsimile mode supports 1-dimensional Modified Huffman (MH) compression, with the original Group 3 fax resolutions, commonly called "standard" and "fine."

黑白传真模式的最小交换部分支持一维修改哈夫曼(MH)压缩,具有原始的第3组传真分辨率,通常称为“标准”和“精细”

To assure interchange, this mode uses the minimal set of fields, with a minimal set of values. There are no recommended fields in this mode. Further, the TIFF file is required to be "little endian," which means that the byte order value in the TIFF header is "II". This mode defines a required ordering for the pages in a fax document and for the IFDs and image data of a page. It also requires that a single strip contain the image data for each page; see Section 3.5. The image data may contain RTC sequences, as specified in Section 3.4.

为了确保交换,此模式使用最小字段集和最小值集。此模式中没有推荐的字段。此外,TIFF文件要求为“little endian”,这意味着TIFF头中的字节顺序值为“II”。此模式为传真文档中的页面以及页面的IFD和图像数据定义所需的顺序。它还要求单个条带包含每个页面的图像数据;见第3.5节。如第3.4节所述,图像数据可能包含RTC序列。

3.2. Required TIFF Fields
3.2. 必需的TIFF字段

Besides the fields listed in Section 2.2.1, the minimal black-and-white fax mode requires the following fields. The fields listed in Section 2.2.1 and the fields and fax-specific values specified in this sub- section must be supported by all implementations.

除了第2.2.1节中列出的字段外,最小黑白传真模式还需要以下字段。所有实现必须支持第2.2.1节中列出的字段以及本小节中指定的字段和传真特定值。

3.2.1 Baseline fields
3.2.1 基线字段

BitsPerSample(258) = 1. SHORT RequiredByTIFFBaseline Binary data only. Default = 1 (field may be omitted if this is the value)

比特采样(258)=1。仅限基线二进制数据所需的短字符。默认值=1(如果为该值,则可省略该字段)

Compression(259) = 3. SHORT RequiredByTIFFBaseline 3 = 1- or 2- dimensional coding. The value 3 is a TIFF extension value [TIFF]. The T4Options field must be specified and its value specifies that the data is encoded using the Modified Huffman (MH) encoding of [T.4].

压缩(259)=3。TIFF基线3所需的短代码=1维或2维编码。值3是TIFF扩展值[TIFF]。必须指定T4Options字段,其值指定使用[T.4]的修改哈夫曼(MH)编码对数据进行编码。

FillOrder(266) = 2. SHORT RequiredByTIFFBaseline 2 = Least Significant Bit first

填充顺序(266)=2。SHORT RequiredByTIFFBaseline 2=最低有效位优先

NOTE: Baseline TIFF readers are only required to support FillOrder = 1, where the lowest numbered pixel is stored in the MSB of the byte. However, because many devices, such as modems, transmit the LSB first when converting the data to serial form, it is common for black-and-white fax products to use the second FillOrder =2, where the lowest numbered pixel is stored in the LSB. Therefore, this value is specified in the minimal black-and-white mode.

注意:基线TIFF读取器仅需要支持FillOrder=1,其中编号最低的像素存储在字节的MSB中。然而,由于许多设备(如调制解调器)在将数据转换为串行形式时首先传输LSB,因此黑白传真产品通常使用第二个FillOrder=2,其中编号最低的像素存储在LSB中。因此,该值是在最小黑白模式下指定的。

ImageWidth(256) = 1728. SHORT or LONG RequiredByTIFFBaseline This mode only supports a page width of 1728 pixels. This width corresponds to North American Letter and Legal and to ISO A4 size pages. No default, must be specified.

图像宽度(256)=1728。此模式仅支持1728像素的页面宽度。此宽度对应于北美字母和法律以及ISO A4大小的页面。没有默认值,必须指定。

NewSubFileType(254) = (Bit 1=1).                                    LONG
    RequiredByTIFFforFAX
    Bit 1 is 1 if the image is a single page of a multi-page document.
    Default = 0 (no subfile bits on, so may not be omitted for fax)
        
NewSubFileType(254) = (Bit 1=1).                                    LONG
    RequiredByTIFFforFAX
    Bit 1 is 1 if the image is a single page of a multi-page document.
    Default = 0 (no subfile bits on, so may not be omitted for fax)
        

PhotometricInterpretation(262) = 0. SHORT RequiredByTIFFBaseline 0 = pixel value 1 means black No default, must be specified

测光解释(262)=0。SHORT RequiredByTIFFBaseline 0=像素值1表示黑色无默认值,必须指定

ResolutionUnit(296) = 2. SHORT RequiredByTIFFBaseline The unit of measure for resolution. 2 = inch. Default = 2 (field may be omitted if this is the value)

分辨率单位(296)=2。分辨率的度量单位。2=英寸。默认值=2(如果为该值,则可省略该字段)

SamplesPerPixel(277) = 1. SHORT RequiredByTIFFBaseline The number of components per pixel; 1 for black-and-white Default =1 (field may be omitted if this is the value)

采样每像素(277)=1。每个像素所需的组件数;1表示黑白默认值=1(如果为该值,则可省略该字段)

XResolution(282) = 200, 204. RATIONAL RequiredByTIFFBaseline

分辨率(282)=200204。RationalRequiredByTiffBaseline

The horizontal resolution of the image is expressed in pixels per resolution unit. In pixels/inch, the allowed values are 200 and 204, which may be treated as equivalent. See Section 2.2.2 for inch-metric equivalency. No default, must be specified

图像的水平分辨率以每分辨率单位的像素表示。以像素/英寸为单位,允许值为200和204,可以将其视为等效值。英寸公制等效性见第2.2.2节。没有默认值,必须指定

YResolution(283) = 98, 100, 196, 200. RATIONAL RequiredByTIFFBaseline The vertical resolution of the image is expressed in pixels per resolution unit. In pixels/inch, the allowed values are 98, 100, 196 and 200; 98 and 100 may be treated as equivalent, and 196 and 200 may be treated as equivalent. See Section 2.2.2 for inch-metric equivalency. No default, must be specified

YResolution(283)=98100196200。RationalRequiredByTiffBaseline图像的垂直分辨率以每分辨率单位的像素表示。以像素/英寸为单位,允许值为98、100、196和200;98和100可被视为等效,196和200可被视为等效。英寸公制等效性见第2.2.2节。没有默认值,必须指定

3.2.2 Extension fields
3.2.2 扩展字段
T4Options(292) = (Bit 0 = 0, Bit 1 = 0, Bit 2 = 0, 1)               LONG
    RequiredTIFFExtension (when Compression = 3)
    Bit 0 = 0 indicates MH encoding.
    Bit 1 must be 0
    Bit 2 = 1 indicates that EOLs are byte aligned, = 0 EOLs not byte
    aligned
    Default is all bits are 0 (applies when EOLs are not byte aligned)
        
T4Options(292) = (Bit 0 = 0, Bit 1 = 0, Bit 2 = 0, 1)               LONG
    RequiredTIFFExtension (when Compression = 3)
    Bit 0 = 0 indicates MH encoding.
    Bit 1 must be 0
    Bit 2 = 1 indicates that EOLs are byte aligned, = 0 EOLs not byte
    aligned
    Default is all bits are 0 (applies when EOLs are not byte aligned)
        

Note: The T4Options field is required when the Compression field has a value of 3. Bit 0 of this field specifies the encoding used (MH only in this mode) and Bit 2 indicates whether the EOL codes are byte-aligned or not. If they are byte aligned, then fill bits have been added as necessary so that the End of Line (EOL) codes always end on byte boundaries. See Section 3.4 for details.

注意:当压缩字段的值为3时,T4Options字段是必需的。该字段的第0位指定使用的编码(仅在此模式下为MH),第2位指示下线代码是否为字节对齐。如果它们是字节对齐的,则根据需要添加填充位,以便行结束(EOL)代码始终在字节边界上结束。详见第3.4节。

3.2.3. New Fields
3.2.3. 新领域

None.

没有一个

3.3. Recommended TIFF Fields
3.3. 推荐的TIFF字段

None.

没有一个

3.4. End of Line (EOL) and Return to Control (RTC)
3.4. 生产线结束(EOL)和返回控制(RTC)

The handling of End of Line (EOL) codes and Return to Control (RTC) sequences illustrate the differences between conventional fax, which is bit and stream oriented, and TIFF, which is byte and file oriented. Conventional fax, Baseline TIFF and TIFF extensions for fax all handle EOLs and RTCs differently.

线端(EOL)代码和返回控制(RTC)序列的处理说明了面向位和流的传统传真与面向字节和文件的TIFF之间的区别。传统传真、基准TIFF和传真TIFF扩展都以不同方式处理EOL和RTC。

In conventional fax, an MH-compressed fax data stream for a page consists of the following sequence:

在传统传真中,页面的MH压缩传真数据流由以下序列组成:

EOL, compressed data (first line), EOL, compressed data, ... , EOL, compressed data (last line), RTC (6 consecutive EOL codes)

下线,压缩数据(第一行),下线,压缩数据,下线,压缩数据(最后一行),RTC(6个连续下线代码)

Baseline TIFF does not use EOL codes or Return to Control (RTC) sequences for MH-compressed data. However, the TIFF extension field T4Options used in this specification for MH compression (Compression = 3) requires EOLs.

基线TIFF不对MH压缩数据使用下线代码或返回控制(RTC)序列。但是,本规范中用于MH压缩(压缩=3)的TIFF扩展字段T4选项需要EOL。

Furthermore, Bit 2 in the T4Options field indicates whether or not the EOL codes are byte aligned. If Bit 2 = 1, indicating the EOL codes are byte aligned, then fill bits have been added as necessary before EOL codes so that an EOL code always ends on a byte boundary, and the first bit of data following an EOL begins on a byte boundary. Without fill bits, an EOL code may end in the middle of a byte. Byte alignment relieves application software of the burden of bit-shifting every byte while parsing scan lines for line-oriented image manipulation (such as writing a TIFF file). Not all TIFF readers historically used for fax are able to deal with non-byte aligned data.

此外,T4Options字段中的第2位指示下线代码是否为字节对齐。如果位2=1,表示下线代码是字节对齐的,则在下线代码之前根据需要添加了填充位,以便下线代码始终在字节边界上结束,下线后的第一位数据在字节边界上开始。如果没有填充位,EOL代码可以在字节中间结束。字节对齐减轻了应用软件在解析扫描行以进行面向行的图像处理(如编写TIFF文件)时对每个字节进行位移位的负担。并非所有用于传真的TIFF阅读器都能够处理非字节对齐的数据。

While TIFF extension requires EOL codes, TIFF in fax applications has traditionally prohibited RTC sequences. Implementations that want common processing and interfaces for fax data streams and Internet fax files would prefer that the TIFF data include RTC sequences.

虽然TIFF扩展需要EOL代码,但传真应用程序中的TIFF传统上禁止RTC序列。对于需要传真数据流和Internet传真文件的通用处理和接口的实现,希望TIFF数据包括RTC序列。

To reconcile these differences, RTCs are allowed in cases where EOL codes are not byte aligned and no fill bits have been added to the data. This corresponds to situations where the fax data is simply inserted in a strip without being processed or interpreted. RTCs should not occur in the data when EOLs have been byte aligned. This is formally specified in the next sub-section.

为了协调这些差异,允许在下线代码未对齐字节且未向数据添加填充位的情况下使用RTC。这对应于传真数据仅插入条带而不进行处理或解释的情况。当EOL已进行字节对齐时,数据中不应出现RTC。这将在下一小节中正式规定。

3.4.1. RTC Exclusion
3.4.1. RTC排除

Implementations which wish to maintain strict conformance with TIFF and compatibility with the historical use of TIFF for fax SHOULD NOT include the RTC sequence when writing TIFF files. However, implementations which need to support "transparency" of T.4-generated image data MAY include RTCs when writing TIFF files if the flag settings of the T4Options field are set for non-byte aligned data, i.e. Bit 2 is 0. Implementors of TIFF readers should be aware that there are some existing TIFF implementations for fax that include the RTC sequence in MH image data. Therefore, minimal set readers MUST be able to process files which do not include RTCs and SHOULD be able to process files which do include RTCs.

在编写TIFF文件时,希望与TIFF保持严格一致并与TIFF用于传真的历史使用保持兼容的实施不应包括RTC序列。但是,如果T4Options字段的标志设置是针对非字节对齐数据设置的,则需要支持T.4生成的图像数据的“透明性”的实现在写入TIFF文件时可能包括RTC,即位2为0。TIFF阅读器的实现者应该知道,一些现有的传真TIFF实现包括MH图像数据中的RTC序列。因此,最小集读取器必须能够处理不包含RTC的文件,并且应该能够处理包含RTC的文件。

3.5. File Structure
3.5. 文件结构

The TIFF header, described in Section 2.1.1, contains two bytes which describe the byte order used within the file. For the minimal black-and- white mode, these bytes SHALL have the value "II" (0x4949), denoting that the bytes in the TIFF file are in LSByte-first order (little- endian). The first or 0th IFD immediately follows the header, so that offset to the first IFD is 8. The headers values are shown in the following table:

第2.1.1节中描述的TIFF头包含两个字节,用于描述文件中使用的字节顺序。对于最小黑白模式,这些字节的值应为“II”(0x4949),表示TIFF文件中的字节为LSByte一阶(little-endian)。第一个或第0个IFD紧跟在标题后面,因此到第一个IFD的偏移量为8。标题值如下表所示:

          +--------+-------------------+--------+-----------+
          | Offset |   Description     |     Value          |
          +--------+-------------------+--------+-----------+
          |   0    |   Byte Order      |  0x4949 (II)       |
          +--------+-------------------+--------+-----------+
          |   2    |   Identifier      |  42 decimal        |
          +--------+-------------------+--------+-----------+
          |   4    | Offset of 0th IFD |  0x 0000 0008      |
          +--------+-------------------+--------+-----------+
        
          +--------+-------------------+--------+-----------+
          | Offset |   Description     |     Value          |
          +--------+-------------------+--------+-----------+
          |   0    |   Byte Order      |  0x4949 (II)       |
          +--------+-------------------+--------+-----------+
          |   2    |   Identifier      |  42 decimal        |
          +--------+-------------------+--------+-----------+
          |   4    | Offset of 0th IFD |  0x 0000 0008      |
          +--------+-------------------+--------+-----------+
        

The minimal black-and-white mode SHALL order IFDs and image data within a file as follows: 1) there SHALL be an IFD for each page in a multi- page fax document; (2) the IFDs SHALL occur in the same order in the file as the pages occur in the document; (3) the IFD SHALL precede the image data to which it has offsets; (4) the image data SHALL occur in the same order in the file as the pages occur in the document; (5) the IFD, the value data and the image data it has offsets to SHALL precede the next image IFD; and (6) the image data for each page SHALL be contained within a single strip.

最小黑白模式应按如下顺序排列文件中的IFD和图像数据:1)多页传真文件中的每页应有IFD;(2) IFD在文件中的出现顺序应与文件中的页面出现顺序相同;(3) IFD应位于其具有偏移的图像数据之前;(4) 图像数据在文件中的出现顺序应与文件中的页面出现顺序相同;(5) IFD、值数据及其偏移的图像数据应位于下一个图像IFD之前;和(6)每页的图像数据应包含在单个条带内。

As a result of (6), the StripOffsets field will contain the pointer to the image data. With two exceptions, the field entries in the IFD contain the field values instead of offsets to field values located outside the IFD. The two exceptions are the values for the XResolution and YResolution fields, both of which are type RATIONAL and require 2 4- byte numbers. These "long" field values SHALL be placed immediately after the IFD which contains the offsets to them, and before the image data pointed to by that IFD.

作为(6)的结果,StripOffsets字段将包含指向图像数据的指针。除了两个例外,IFD中的字段条目包含字段值,而不是IFD外部字段值的偏移量。这两个例外是XResolution和YResolution字段的值,它们都是RATIONAL类型,需要2个4字节的数字。这些“长”字段值应立即放置在包含偏移的IFD之后,并放置在该IFD指向的图像数据之前。

The effect of these requirements is that the IFD for the first page SHALL come first in the file after the TIFF header, followed by the long field values for XResolution and YResolution, followed by the image data for the first page, then the IFD for second page, etc. This is shown in the following figure. Each IFD is required to have a PageNumber field, which has value 0 for the first page, 1 for the second page, and so on.

这些要求的效果是,文件中第一页的IFD应位于TIFF标题之后,然后是X分辨率和Y分辨率的长字段值,然后是第一页的图像数据,然后是第二页的IFD,如下图所示。每个IFD都需要有一个PageNumber字段,第一页的值为0,第二页的值为1,依此类推。

                   +-----------------------+
                   |         Header        |------------+
                   +-----------------------+            | First IFD
                   |      IFD (page 0)     | <----------+ Offset
               +---|                       |------------+
               |   |                       |--+         |
         Value |   +-----------------------+  |         |
        Offset +-->|      Long Values      |  |         |
                   +-----------------------|  | Strip   |
                   |  Image Data (page 0)  |<-+ Offset  |
                   +-----------------------+            | Next IFD
                   |      IFD (page 1)     | <----------+ Offset
               +---|                       |------------+
               |   |                       |--+         |
         Value |   +-----------------------+  |         |
        Offset +-->|      Long Values      |  |         |
                   +-----------------------|  | Strip   |
                   |  Image Data (page 1)  |<-+ Offset  |
                   +-----------------------+            | Next IFD
                   |      IFD (page 2)     | <----------+ Offset
                   +-----------------------+
                   |          :            |
        
                   +-----------------------+
                   |         Header        |------------+
                   +-----------------------+            | First IFD
                   |      IFD (page 0)     | <----------+ Offset
               +---|                       |------------+
               |   |                       |--+         |
         Value |   +-----------------------+  |         |
        Offset +-->|      Long Values      |  |         |
                   +-----------------------|  | Strip   |
                   |  Image Data (page 0)  |<-+ Offset  |
                   +-----------------------+            | Next IFD
                   |      IFD (page 1)     | <----------+ Offset
               +---|                       |------------+
               |   |                       |--+         |
         Value |   +-----------------------+  |         |
        Offset +-->|      Long Values      |  |         |
                   +-----------------------|  | Strip   |
                   |  Image Data (page 1)  |<-+ Offset  |
                   +-----------------------+            | Next IFD
                   |      IFD (page 2)     | <----------+ Offset
                   +-----------------------+
                   |          :            |
        

Using this file structure may reduce the memory requirements in implementations. It is also provides some support for streaming, in which a file can be processed as it is received and before the entire file is received.

使用此文件结构可以减少实现中的内存需求。它还提供了对流式传输的一些支持,在流式传输中,可以在接收文件时和接收整个文件之前对其进行处理。

3.6 Minimal Black-and-white Mode Summary
3.6 最小黑白模式摘要

The table below summarizes the TIFF fields that comprise the minimal interchange set for black-and-white facsimile. The Baseline and Extension fields and field values MUST be supported by all implementations. For convenience in the table, certain fields which have a value that is a sequence of flag bits are shown taking integer values that correspond to the flags that are set. An implementation should test the setting of the relevant flag bits individually, however, to allow extensions to the sequence of flag bits to be appropriately ignored. (See, for example, T4Options below.)

下表总结了构成黑白传真最小交换集的TIFF字段。所有实现都必须支持基线和扩展字段以及字段值。为方便起见,表中显示了具有标志位序列值的某些字段,这些字段采用与设置的标志相对应的整数值。然而,实现应该单独测试相关标志位的设置,以允许适当忽略对标志位序列的扩展。(例如,请参见下面的T4选项。)

      +---------------------------+--------------------------------+
      | Baseline Fields           |  Values                        |
      +---------------------------+--------------------------------+
      | BitsPerSample             | 1                              |
      +---------------------------+--------------------------------+
      | Compression               | 3: 1D Modified Huffman coding  |
      |                           |     set T4Options = 0 or 4     |
      +------------------------------------------------------------+
        
      +---------------------------+--------------------------------+
      | Baseline Fields           |  Values                        |
      +---------------------------+--------------------------------+
      | BitsPerSample             | 1                              |
      +---------------------------+--------------------------------+
      | Compression               | 3: 1D Modified Huffman coding  |
      |                           |     set T4Options = 0 or 4     |
      +------------------------------------------------------------+
        
      +---------------------------+--------------------------------+
      | FillOrder                 | 2: least significant bit first |
      +---------------------------+--------------------------------+
      | ImageWidth                | 1728                           |
      +---------------------------+--------------------------------+
      | ImageLength               | n: total number of scanlines   |
      |                           | in image                       |
      +---------------------------+--------------------------------+
      | NewSubFileType            | 2: Bit 1 identifies single     |
      |                           | page of a multi-page document  |
      +---------------------------+--------------------------------+
      | PageNumber                | n,m: page number n followed by |
      |                           | total page count m             |
      +---------------------------+--------------------------------+
      | PhotometricInterpretation | 0: pixel value 1 means black   |
      +---------------------------+--------------------------------+
      | ResolutionUnit            | 2: inch                        |
      +---------------------------+--------------------------------+
      | RowsPerStrip              | number of scanlines per strip  |
      |                           | = ImageLength, with one strip  |
      +---------------------------+--------------------------------+
      | SamplesPerPixel           | 1                              |
      +---------------------------+--------------------------------+
      | StripByteCounts           | number of bytes in TIFF strip  |
      +---------------------------+--------------------------------+
      | StripOffsets              | offset from beginning of       |
      |                           | file to single TIFF strip      |
      +---------------------------+--------------------------------+
      | XResolution               | 204, 200 (pixels/inch)         |
      +---------------------------+--------------------------------+
      | YResolution               | 98, 196, 100, 200 (pixels/inch)|
      +---------------------------+--------------------------------+
      | Extension Fields                                           |
      +---------------------------+--------------------------------+
      | T4Options                 | 0: MH coding, EOLs not byte    |
      |                           |               aligned          |
      |                           | 4: MH coding, EOLs byte aligned|
      +---------------------------+--------------------------------+
        
      +---------------------------+--------------------------------+
      | FillOrder                 | 2: least significant bit first |
      +---------------------------+--------------------------------+
      | ImageWidth                | 1728                           |
      +---------------------------+--------------------------------+
      | ImageLength               | n: total number of scanlines   |
      |                           | in image                       |
      +---------------------------+--------------------------------+
      | NewSubFileType            | 2: Bit 1 identifies single     |
      |                           | page of a multi-page document  |
      +---------------------------+--------------------------------+
      | PageNumber                | n,m: page number n followed by |
      |                           | total page count m             |
      +---------------------------+--------------------------------+
      | PhotometricInterpretation | 0: pixel value 1 means black   |
      +---------------------------+--------------------------------+
      | ResolutionUnit            | 2: inch                        |
      +---------------------------+--------------------------------+
      | RowsPerStrip              | number of scanlines per strip  |
      |                           | = ImageLength, with one strip  |
      +---------------------------+--------------------------------+
      | SamplesPerPixel           | 1                              |
      +---------------------------+--------------------------------+
      | StripByteCounts           | number of bytes in TIFF strip  |
      +---------------------------+--------------------------------+
      | StripOffsets              | offset from beginning of       |
      |                           | file to single TIFF strip      |
      +---------------------------+--------------------------------+
      | XResolution               | 204, 200 (pixels/inch)         |
      +---------------------------+--------------------------------+
      | YResolution               | 98, 196, 100, 200 (pixels/inch)|
      +---------------------------+--------------------------------+
      | Extension Fields                                           |
      +---------------------------+--------------------------------+
      | T4Options                 | 0: MH coding, EOLs not byte    |
      |                           |               aligned          |
      |                           | 4: MH coding, EOLs byte aligned|
      +---------------------------+--------------------------------+
        
4. Extended Black-and-White fax mode
4. 扩展黑白传真模式

This section defines the extended black-and-white mode or Profile F of TIFF for facsimile. It provides a standard definition of what has historically been known as TIFF Class F and now TIFF-F. In doing so, it aligns this mode with current ITU-T Recommendations for black-and-white fax and with existing industry practice. Implementations of this profile include implementations of Profile S.

本节定义了传真用TIFF的扩展黑白模式或模式F。它提供了历史上被称为TIFF F级和现在的TIFF-F的标准定义。在这样做的过程中,它将此模式与当前ITU-T对黑白传真的建议以及现有行业惯例保持一致。此概要文件的实现包括概要文件S的实现。

This section describes extensions to the minimal interchange set of fields (Profile S) that provide a richer set of black-and-white capabilities. The fields and values described in this section are a superset of the fields and values defined for the minimal interchange set in Section 3. In addition to the MH encoding, Modified READ (MR) and Modified Modified READ (MMR) encoding as described in [T.4] and [T.6] are supported.

本节描述了对最小字段交换集(概要文件)的扩展,这些字段提供了更丰富的黑白功能集。本节中描述的字段和值是为第3节中的最小交换集定义的字段和值的超集。除MH编码外,还支持[T.4]和[T.6]中所述的修改读取(MR)和修改读取(MMR)编码。

Section 4.1 gives an overview of TIFF-F. Section 4.2 describes the TIFF fields that SHALL be used in this mode. Section 4.3 describes the fields that MAY be used in this mode. In the spirit of the original TIFF-F specification, Sections 4.4 and 4.5 discuss technical implementation issues and warnings. Section 4.6 gives an example use of TIFF-F. Section 4.7 gives a summary of the required and recommended fields and their values.

第4.1节概述了TIFF-F。第4.2节描述了该模式中应使用的TIFF字段。第4.3节描述了可在此模式下使用的字段。本着原始TIFF-F规范的精神,第4.4节和第4.5节讨论了技术实施问题和警告。第4.6节给出了TIFF-F的使用示例。第4.7节给出了所需和建议字段及其值的摘要。

4.1 TIFF-F Overview
4.1 TIFF-F概述

Though it has been in common usage for many years, TIFF-F has previously never been documented in the form of a standard. An informal TIFF-F document was originally created by a small group of fax experts led by Joe Campbell. The existence of TIFF-F is noted in [TIFF] but it is not defined. This document serves as the formal definition of the F application of [TIFF] for Internet applications. For ease of reference, the term TIFF-F will be used throughout this document as a shorthand for the extended black-and-white mode or profile of TIFF for facsimile.

尽管TIFF-F已经普遍使用多年,但此前从未以标准的形式记录。非正式的TIFF-F文档最初由Joe Campbell领导的一个传真专家小组创建。TIFF-F的存在在[TIFF]中有说明,但没有定义。本文件作为[TIFF]在互联网应用中的F应用的正式定义。为便于参考,本文件中将使用术语TIFF-F作为扩展黑白模式或传真TIFF配置文件的缩写。

Up until the TIFF 6.0 specification, TIFF supported various "Classes" which defined the use of TIFF for various applications. Classes were used to support specific applications. In this spirit, TIFF-F has been known historically as "TIFF Class F". Previous informal TIFF-F documents [TIFF-F0] used the "Class F" terminology. As of TIFF 6.0 [TIFF], the TIFF Class concept has been eliminated in favor of the concept of Baseline TIFF. Therefore, this document updates the definition of TIFF-F as the F profile of TIFF for facsimile, by using Baseline TIFF as defined in [TIFF] as the starting point and then adding the TIFF extensions to Baseline TIFF which apply for TIFF-F. In almost all cases, the resulting definition of TIFF-F fields and values remains consistent with those used historically in earlier definitions of TIFF Class F. Where some of the values for fields have been updated to provide more precise conformance with the ITU-T [T.4] and [T.30] fax recommendations, these differences are noted.

在TIFF 6.0规范之前,TIFF支持各种“类”,定义了TIFF在各种应用中的使用。类用于支持特定的应用程序。本着这种精神,TIFF-F历来被称为“TIFF F级”。先前的非正式TIFF-F文件[TIFF-F0]使用了“F类”术语。自TIFF 6.0[TIFF]起,TIFF类别概念已被取消,取而代之的是基准TIFF的概念。因此,本文件将TIFF-F的定义更新为传真用TIFF的F配置文件,使用[TIFF]中定义的基线TIFF作为起点,然后将适用于TIFF-F的TIFF扩展添加到基线TIFF中。在几乎所有情况下,TIFF-F字段和值的最终定义与TIFF F类早期定义中使用的字段和值保持一致。如果一些字段的值已更新,以提供与ITU-T[T.4]和[T.30]传真建议更精确的一致性,则应注意这些差异。

4.2. Required TIFF Fields
4.2. 必需的TIFF字段

This section lists the required fields and the values they must have to be ITU-compatible. Besides the fields listed in Section 2.2.1, the extended black-and-white fax mode SHALL use the following fields.

本节列出了所需字段及其必须与ITU兼容的值。除第2.2.1节中列出的字段外,扩展黑白传真模式应使用以下字段。

4.2.1. Baseline fields
4.2.1. 基线字段

BitsPerSample(258) = 1. SHORT RequiredByTIFFBaseline Binary data only. Default = 1 (field may be omitted if this is the value)

比特采样(258)=1。仅限基线二进制数据所需的短字符。默认值=1(如果为该值,则可省略该字段)

Compression(259) = 3, 4. SHORT RequiredByTIFFBaseline 3 = 1- or 2- dimensional coding, must have T4Options field This is a TIFF Extension value [TIFF]. 4 = 2-dimensional coding, ITU-T Rec. T.6 (MMR - Modified Modified Read, must have T6Options field)) This is a TIFF Extension value. Default = 1 (and is not applicable; field must be specified)

压缩(259)=3,4。SHORT RequiredByTIFFBaseline 3=1维或2维编码,必须具有T4Options字段这是TIFF扩展值[TIFF]。4=二维编码,ITU-T Rec.T.6(MMR-修改读取,必须有T6Options字段))这是TIFF扩展值。默认值=1(不适用;必须指定字段)

NOTE: Baseline TIFF permits use of value 2 for Modified Huffman encoding, but data is presented in a form which does not use EOLs, and so TIFF for facsimile uses Compression=3 instead. See Sections 4.4.4, 4.5.1 and 4.5.2 for more information on compression and encoding.

注:基线TIFF允许将值2用于修改的哈夫曼编码,但数据以不使用EOL的形式呈现,因此传真TIFF使用压缩=3。有关压缩和编码的更多信息,请参见第4.4.4、4.5.1和4.5.2节。

FillOrder(266) = 1 , 2. SHORT RequiredByTIFFBaseline Profile F readers must be able to read data in both bit orders, but the vast majority of facsimile products store data LSB first, exactly as it appears on the telephone line. 1 = Most Significant Bit first. 2 = Least Significant Bit first

填充顺序(266)=1,2。SHORT RequiredByTIFFBaseline Profile F读卡器必须能够以两种位顺序读取数据,但绝大多数传真产品首先存储数据LSB,与电话线上显示的数据完全相同。1=第一个最高有效位。2=最低有效位优先

ImageWidth(256) SHORT or LONG RequiredByTIFFBaseline This mode supports the following fixed page widths: 1728, 2592, 3456 (corresponding to North American Letter and Legal, ISO A4 paper sizes), 2048, 3072, 4096 (corresponding to ISO B4 paper size), and 2432, 3648, 4864 (corresponding to ISO A3 paper size). No default; must be specified

此模式支持以下固定页面宽度:1728、2592、3456(对应于北美字母和法定ISO A4纸张尺寸)、2048、3072、4096(对应于ISO B4纸张尺寸)和2432、3648、4864(对应于ISO A3纸张尺寸)。没有违约;必须指定

NOTE: Historical TIFF-F did not include support for the following widths related to higher resolutions: 2592, 3072, 3648, 3456, 4096 and 4864. Historical TIFF-F documents also included the following values related to A5 and A6 widths: 816 and 1216. Per the most recent

注:历史TIFF-F不支持以下与更高分辨率相关的宽度:2592、3072、3648、3456、4096和4864。历史TIFF-F文件还包括以下与A5和A6宽度相关的值:816和1216。根据最近的

version of [T.4], A5 and A6 documents are no longer supported in Group 3 facsimile, so the related width values are now obsolete. See section 4.5.2 for more information on inch/metric equivalencies and other implementation details.

[T.4]版本、A5和A6文档在第3组传真中不再受支持,因此相关宽度值现在已过时。有关英寸/公制当量和其他实施细节的更多信息,请参见第4.5.2节。

NewSubFileType(254) = (Bit 1=1).                                    LONG
    RequiredByTIFFforFAX
    Bit 1 is 1 if the image is a single page of a multi-page document.
    Default = 0 (no subfile bits on, so may not be omitted for fax)
        
NewSubFileType(254) = (Bit 1=1).                                    LONG
    RequiredByTIFFforFAX
    Bit 1 is 1 if the image is a single page of a multi-page document.
    Default = 0 (no subfile bits on, so may not be omitted for fax)
        

NOTE: Bit 1 is always set to 1 for TIFF-F, indicating a single page of a multi-page image. The same bit settings are used when TIFF-F is used for a one page fax image. See Section 4.4.3 for details on multi-page files.

注意:对于TIFF-F,位1始终设置为1,表示多页图像的单页。当TIFF-F用于一页传真图像时,使用相同的位设置。有关多页文件的详细信息,请参见第4.4.3节。

PhotometricInterpretation(262) = 0, 1. SHORT RequiredByTIFFBaseline 0 = pixel value 1 means black, 1 = pixel value 1 means white. This field allows notation of an inverted or negative image. No default, must be specified

光度解释(262)=0,1。TiffBaseline 0=像素值1表示黑色,1=像素值1表示白色。此字段允许对反转图像或负片图像进行标记。没有默认值,必须指定

ResolutionUnit(296) = 2, 3. SHORT RequiredByTIFFBaseline The unit of measure for resolution. 2 = inch, 3 = centimeter; TIFF-F has traditionally used inch-based measures. Default = 2 (field may be omitted if this is the value)

分辨率单位(296)=2,3。分辨率的度量单位。2=英寸,3=厘米;TIFF-F传统上使用英寸测量。默认值=2(如果为该值,则可省略该字段)

SamplesPerPixel(277) = 1. SHORT RequiredByTIFFBaseline 1 = monochrome, bilevel in this case (see BitsPerSample) Default =1 (field may be omitted if this is the value)

采样每像素(277)=1。SHORT RequiredByTIFFBaseline 1=单色,在这种情况下为两层(请参见BitsPerSample)默认值=1(如果这是值,则可以省略该字段)

XResolution(282) = 200, 204, 300, 400, 408 RATIONAL RequiredByTIFFBaseline The horizontal resolution of the image is expressed in pixels per resolution unit. In pixels/inch, the allowed values are: 200, 204, 300, 400, and 408. See Section 2.2.2 for inch-metric equivalency. No default, must be specified

X分辨率(282)=200、204、300、400、408 TIFF基线所需的有理数图像的水平分辨率以每分辨率单位的像素表示。以像素/英寸为单位,允许的值为:200、204、300、400和408。英寸公制等效性见第2.2.2节。没有默认值,必须指定

NOTE: The values of 200 and 408 have been added to the historical TIFF-F values, for consistency with [T.30]. Some existing TIFF-F implementations may also support values of 80 pixels/cm, which is equivalent to 204 pixels per inch. See section 4.5.2 for information on implementation details.

注:200和408的值已添加到历史TIFF-F值中,以与[T.30]保持一致。一些现有的TIFF-F实现可能还支持80像素/厘米的值,相当于每英寸204像素。有关实施细节的信息,请参见第4.5.2节。

YResolution(283) = 98, 100, 196, 200, 300, 391, and 400 RATIONAL RequiredByTIFFBaseline The vertical resolution of the image is expressed in pixels per

YResolution(283)=TIFF基线所需的98、100、196、200、300、391和400 RATIONAL图像的垂直分辨率以每像素表示

resolution unit. In pixels/inch, the allowed values are: 98, 100, 196, 200, 300, 391, and 400 pixels/inch. See Section 2.2.2 for inch-metric equivalency. No default, must be specified

决议股。以像素/英寸为单位,允许的值为:98、100、196、200、300、391和400像素/英寸。英寸公制等效性见第2.2.2节。没有默认值,必须指定

NOTE: The values of 100, 200, and 391 have been added to the historical TIFF-F values, for consistency with [T.30]. Some existing TIFF-F implementations may also support values of 77 and 38.5 (cm), which are equivalent to 196 and 98 pixels per inch respectively. See section 4.5.2 for more information on implementation details.

注:100、200和391的值已添加到历史TIFF-F值中,以与[T.30]保持一致。一些现有的TIFF-F实现也可能支持77和38.5(cm)的值,这分别相当于每英寸196和98像素。有关实施细节的更多信息,请参见第4.5.2节。

NOTE: Not all combinations of XResolution, YResolution and ImageWidth are legal. The following table gives the legal combinations and corresponding paper size [T.30].

注:并非所有X分辨率、Y分辨率和ImageWidth的组合都是合法的。下表给出了合法组合和相应的纸张尺寸[T.30]。

    +--------------+-----------------+---------------------------+
    |   XResolution x YResolution    |         ImageWidth        |
    +--------------+-----------------+---------+--------+--------+
    |      200x100, 204x98           |         |        |        |
    |      200x200, 204x196          |  1728   |  2048  |  2432  |
    |           204x391              |         |        |        |
    +--------------+-----------------+---------+--------+--------+
    |          300 x 300             |  2592   |  3072  |  3648  |
    +--------------+-----------------+---------+--------+--------+
    |     408 x 391, 400 x 400       |  3456   |  4096  |  4864  |
    +--------------+-----------------+---------+--------+--------+
                                     |Letter,A4|   B4   |   A3   |
                                     |  Legal  |        |        |
                                     +---------+--------+--------+
                                     |         Paper Size        |
                                     +---------------------------+
        
    +--------------+-----------------+---------------------------+
    |   XResolution x YResolution    |         ImageWidth        |
    +--------------+-----------------+---------+--------+--------+
    |      200x100, 204x98           |         |        |        |
    |      200x200, 204x196          |  1728   |  2048  |  2432  |
    |           204x391              |         |        |        |
    +--------------+-----------------+---------+--------+--------+
    |          300 x 300             |  2592   |  3072  |  3648  |
    +--------------+-----------------+---------+--------+--------+
    |     408 x 391, 400 x 400       |  3456   |  4096  |  4864  |
    +--------------+-----------------+---------+--------+--------+
                                     |Letter,A4|   B4   |   A3   |
                                     |  Legal  |        |        |
                                     +---------+--------+--------+
                                     |         Paper Size        |
                                     +---------------------------+
        
4.2.2. Extension fields
4.2.2. 扩展字段
T4Options(292) = (Bit 0 = 0 or 1, Bit 1 = 0, Bit 2 = 0 or 1)        LONG
    RequiredTIFFExtension (when Compression = 3)
    T4Options was also known as Group3Options in a prior version of
    [TIFF].
    Bit 0 = 1 indicates MR encoding, = 0 indicates MH encoding.
    Bit 1 must be 0
    Bit 2 = 1 indicates that EOLs are byte aligned, = 0 EOLs not byte
    aligned
    Default is all bits are 0 (applies when MH encoding is used and EOLs
    are not byte aligned EOLs) (See Section 3.2.2.)
    The T4Options field is required when the Compression field has a
    value of 3. This field specifies the encoding used (MH or MR) and
    whether the EOL codes are byte-aligned or not. If they are byte
        
T4Options(292) = (Bit 0 = 0 or 1, Bit 1 = 0, Bit 2 = 0 or 1)        LONG
    RequiredTIFFExtension (when Compression = 3)
    T4Options was also known as Group3Options in a prior version of
    [TIFF].
    Bit 0 = 1 indicates MR encoding, = 0 indicates MH encoding.
    Bit 1 must be 0
    Bit 2 = 1 indicates that EOLs are byte aligned, = 0 EOLs not byte
    aligned
    Default is all bits are 0 (applies when MH encoding is used and EOLs
    are not byte aligned EOLs) (See Section 3.2.2.)
    The T4Options field is required when the Compression field has a
    value of 3. This field specifies the encoding used (MH or MR) and
    whether the EOL codes are byte-aligned or not. If they are byte
        

aligned, then fill bits have been added as necessary so that the End of Line (EOL) codes always end on byte boundaries See Sections 3.4, 4.5.3 and 4.5.4 for details.

已根据需要添加对齐、然后填充位,以使行尾(EOL)代码始终在字节边界上结束。有关详细信息,请参见第3.4节、第4.5.3节和第4.5.4节。

T6Options(293) = (Bit 0 = 0, Bit 1 = 0). LONG
    RequiredTIFFExtension (when Compression = 4)
    Used to indicate parameterization of 2D Modified Modified Read
    compression. T6Options was also known as Group4Options in a prior
    version of [TIFF].
    Bit 0 must be 0.
    Bit 1 = 0 indicates uncompressed data mode is not allowed; = 1
    indicates uncompressed data is allowed (see [TIFF]).
    Default is all bits 0. For FAX, the field must be present and have
    the value 0. The use of uncompressed data where compression would
    expand the data size is not allowed for FAX.
        
T6Options(293) = (Bit 0 = 0, Bit 1 = 0). LONG
    RequiredTIFFExtension (when Compression = 4)
    Used to indicate parameterization of 2D Modified Modified Read
    compression. T6Options was also known as Group4Options in a prior
    version of [TIFF].
    Bit 0 must be 0.
    Bit 1 = 0 indicates uncompressed data mode is not allowed; = 1
    indicates uncompressed data is allowed (see [TIFF]).
    Default is all bits 0. For FAX, the field must be present and have
    the value 0. The use of uncompressed data where compression would
    expand the data size is not allowed for FAX.
        

NOTE: MMR compressed data is two-dimensional and does not use EOLs. Each MMR encoded image MUST include an "end-of-facsimile-block" (EOFB) code at the end of each coded strip; see Section 4.5.6.

注:MMR压缩数据是二维的,不使用EOL。每个MMR编码图像必须在每个编码条的末端包含“传真块末端”(EOFB)代码;见第4.5.6节。

4.2.3. New fields
4.2.3. 新领域

None.

没有一个

4.3. Recommended TIFF fields
4.3. 推荐的TIFF字段
4.3.1. Baseline fields
4.3.1. 基线字段

See Section 2.2.3.

见第2.2.3节。

4.3.2. Extension fields
4.3.2. 扩展字段

See Section 2.2.3.

见第2.2.3节。

4.3.3. New fields
4.3.3. 新领域

Three new, optional fields, used in the original TIFF-F description to describe page quality, are defined in this specification. The information contained in these fields is usually obtained from receiving facsimile hardware (if applicable). They SHOULD NOT be used in writing TIFF-F files for facsimile image data that is error corrected or otherwise guaranteed not to have coding errors. Some applications need to understand exactly the error content of the data. For example, a CAD program might wish to verify that a file has a low error level before importing it into a high-accuracy document. Because Group 3 facsimile devices do not necessarily perform error correction on the image data, the quality of a received page must be inferred from the pixel count of decoded scan lines. A

本规范中定义了原始TIFF-F描述中用于描述页面质量的三个新的可选字段。这些字段中包含的信息通常从接收传真硬件(如适用)获得。对于已纠正错误或以其他方式保证没有编码错误的传真图像数据,不应在写入TIFF-F文件时使用它们。有些应用程序需要准确地理解数据的错误内容。例如,CAD程序可能希望在将文件导入高精度文档之前验证文件的错误级别是否较低。由于第3组传真设备不必对图像数据执行纠错,因此必须从解码扫描线的像素计数推断接收页面的质量。A.

"good" scan line is defined as a line that, when decoded, contains the correct number of pixels. Conversely, a "bad" scan line is defined as a line that, when decoded, comprises an incorrect number of pixels.

“良好”扫描线定义为解码时包含正确像素数的线。相反,“坏”扫描线被定义为解码时包含不正确数量像素的线。

BadFaxLines(326)                                           SHORT or LONG
    The number of "bad" scan lines encountered by the facsimile device
    during reception. A "bad" scanline is defined as a scanline that,
    when decoded, comprises an incorrect number of pixels. Note that
    PercentBad = (BadFaxLines/ImageLength) * 100
    No default.
        
BadFaxLines(326)                                           SHORT or LONG
    The number of "bad" scan lines encountered by the facsimile device
    during reception. A "bad" scanline is defined as a scanline that,
    when decoded, comprises an incorrect number of pixels. Note that
    PercentBad = (BadFaxLines/ImageLength) * 100
    No default.
        

CleanFaxData(327) = 0, 1, 2. SHORT Indicates if "bad" lines encountered during reception are stored in the data, or if "bad" lines have been replaced by the receiver. 0 = No "bad" lines 1 = "bad" lines exist, but were regenerated by the receiver, 2 = "bad" lines exist, but have not been regenerated. No default.

CleanFaxData(327)=0,1,2。SHORT表示在接收过程中遇到的“坏”行是否存储在数据中,或者“坏”行是否已被接收器替换。0=没有“坏”行1=“坏”行存在,但由接收方重新生成;2=“坏”行存在,但尚未重新生成。没有默认值。

NOTE: Many facsimile devices do not actually output bad lines. Instead, the previous good line is repeated in place of a bad line. Although this substitution, known as line regeneration, results in a visual improvement to the image, the data is nevertheless corrupted. The CleanFaxData field describes the error content of the data. That is, when the BadFaxLines and ImageLength fields indicate that the facsimile device encountered lines with an incorrect number of pixels during reception, the CleanFaxData field indicates whether these bad lines are actually still in the data or if the receiving facsimile device replaced them with regenerated lines.

注:许多传真设备实际上不会输出坏线路。相反,将重复上一个好的行而不是坏的行。尽管这种替换(称为线再生)可以改善图像的视觉效果,但数据仍然被破坏。CleanFaxData字段描述数据的错误内容。也就是说,当BadFaxLines和ImageLength字段指示传真设备在接收期间遇到像素数不正确的行时,CleanFaxData字段指示这些坏行实际上是否仍在数据中,或者接收传真设备是否用重新生成的行替换它们。

ConsecutiveBadFaxLines(328) LONG or SHORT Maximum number of consecutive "bad" scanlines received. The BadFaxLines field indicates only the quantity of bad lines. No Default.

连续BadFaxLines(328)长或短收到的连续“坏”扫描线的最大数量。BadFaxLines字段仅指示坏行的数量。没有默认值。

NOTE: The BadFaxLines and ImageLength data indicate only the quantity of bad lines. The ConsecutiveBadFaxLines field is an indicator of the distribution of bad lines and may therefore be a better general indicator of perceived image quality. See Section 4.4.5 for examples of the use of these fields.

注意:BadFaxLines和ImageLength数据仅表示坏行的数量。ConcertiveBadFaxlines字段是坏线分布的指示器,因此可能是感知图像质量的更好的通用指示器。有关这些字段的使用示例,请参见第4.4.5节。

4.4. Technical Implementation Issues
4.4. 技术执行问题
4.4.1 Strips
4.4.1 条状物

In general, TIFF files divide an image into "strips," also known as "bands." Each strip contains a few scanlines of the image. By using

通常,TIFF文件将图像分成“条带”,也称为“条带”。每条条带包含图像的几条扫描线。利用

strips, a TIFF reader need not load the entire image into memory, thus enabling it to fetch and decompress small random portions of the image as necessary.

因此,TIFF阅读器不需要将整个图像加载到内存中,从而使其能够根据需要提取和解压缩图像的随机小部分。

The number of scanlines in a strip is described by the RowsPerStrip value and the number of bytes in the strip after compression by the StripByteCount value. The location in the TIFF file of each strip is given by the StripOffsets values.

条带中的扫描线数由RowsPerStrip值描述,压缩后的条带字节数由StripByteCount值描述。每个条带在TIFF文件中的位置由StripOffset值给出。

Strip size is application dependent. The recommended approach for multi- page TIFF-F images is to represent each page as a single strip. Existing TIFF-F usage is typically one strip per page in multi-page TIFF-F files. See Sections 2.1.2 and 2.1.3.

带钢尺寸取决于应用。多页TIFF-F图像的推荐方法是将每个页面表示为单个条带。在多页TIFF-F文件中,现有的TIFF-F使用通常是每页一条。见第2.1.2节和第2.1.3节。

4.4.2 Bit Order
4.4.2 位序

The current TIFF specification [TIFF] does not require a Baseline TIFF reader to support FillOrder=2, i.e. lowest numbered 1-bit pixel in the least significant bit of a byte. It further recommends that FillOrder=2 be used only in special purpose applications.

当前TIFF规范[TIFF]不要求基线TIFF读取器支持FillOrder=2,即字节最低有效位中编号最低的1位像素。它还建议FillOrder=2仅用于特殊用途。

Facsimile data appears on the phone line in bit-reversed order relative to its description in ITU-T Recommendation T.4. Therefore, a wide majority of facsimile applications choose this natural order for data in a file. Nevertheless, TIFF-F readers must be able to read data in both bit orders and support FillOrder values of 1 and 2.

传真数据在电话线上的显示顺序与ITU-T建议T.4中的描述相反。因此,大多数传真应用程序都选择这种文件中数据的自然顺序。尽管如此,TIFF-F读卡器必须能够以位顺序读取数据,并支持FillOrder值1和2。

4.4.3. Multi-Page
4.4.3. 多页

Many existing applications already read TIFF-F-like files, but do not support the multi-page field. Since a multi-page format greatly simplifies file management in fax application software, TIFF-F specifies multi-page documents (NewSubfileType = 2) as the standard case.

许多现有应用程序已经读取了类似TIFF-F的文件,但不支持多页字段。由于多页格式大大简化了传真应用软件中的文件管理,TIFF-F将多页文档(NewSubfileType=2)指定为标准案例。

It is recommended that applications export multiple page TIFF-F files without manipulating fields and values. Historically, some TIFF-F writers have attempted to produce individual single-page TIFF-F files with modified NewSubFileType and PageNumber (page one-of-one) values for export purposes. However, there is no easy way to link such multiple single page files together into a logical multiple page document, so that this practice is not recommended.

建议应用程序在不操纵字段和值的情况下导出多页TIFF-F文件。从历史上看,一些TIFF-F编写器曾尝试使用修改过的NewSubFileType和PageNumber(第一页,共一页)值生成单个单页TIFF-F文件,以用于导出目的。但是,没有简单的方法将多个单页文件链接到一个逻辑多页文档中,因此不建议采用这种做法。

4.4.4. Compression
4.4.4. 压缩

In Group 3 facsimile, there are three compression methods which had been standardized as of 1994 and are in common use. The ITU-T T.4 Recommendation [T.4] defines a one-dimensional compression method

在第3组传真中,有三种压缩方法,自1994年起已被标准化,并普遍使用。ITU-T.4建议[T.4]定义了一维压缩方法

known as Modified Huffman (MH) and a two-dimensional method known as Modified READ (MR) (READ is short for Relative Element Address Designate). In 1984, a somewhat more efficient compression method known as Modified Modified READ (MMR) was defined in the ITU-T T.6 Recommendation [T.6]. MMR was originally defined for use with Group 4 facsimile, so that this compression method has been commonly called Group 4 compression. In 1991, the MMR method was approved for use in Group 3 facsimile and has since been widely utilized.

称为修改的哈夫曼(MH)和二维方法称为修改读取(MR)(读取是相对元素地址的缩写)。1984年,ITU-T T.6建议[T.6]中定义了一种更有效的压缩方法,称为修改读取(MMR)。MMR最初定义用于第4组传真,因此这种压缩方法通常被称为第4组压缩。1991年,MMR方法被批准用于第3组传真,并已被广泛使用。

TIFF-F supports these three compression methods. The most common practice is the one-dimensional Modified Huffman (MH) compression method. This is specified by setting the Compression field value to 3 and then setting bit 0 of the T4Options field to 0. Alternatively, the two dimensional Modified READ (MR) method, which is much less frequently used in historical TIFF-F implementations, may be selected by setting bit 0 of the T4Options field to 1. The value of Bit 2 in this field is determined by the use of fill bits.

TIFF-F支持这三种压缩方法。最常见的做法是一维修正哈夫曼(MH)压缩方法。这是通过将压缩字段值设置为3,然后将T4Options字段的位0设置为0来指定的。或者,可以通过将T4Options字段的位0设置为1来选择二维修改读取(MR)方法,该方法在历史TIFF-F实现中使用的频率要低得多。该字段中位2的值由填充位的使用确定。

Depending upon the application, the more efficient two-dimensional Modified Modified Read (MMR)compression method from T.6 may be selected by setting the Compression field value to 4 and then setting the first two bits (and all unused bits) of the T6Options field to 0. More information to aid the implementor in making a compression selection is contained in Section 4.5.2.

根据应用,可通过将压缩字段值设置为4,然后将T6Options字段的前两位(以及所有未使用的位)设置为0来选择T.6中更有效的二维修改读取(MMR)压缩方法。第4.5.2节包含了帮助实施者进行压缩选择的更多信息。

Baseline TIFF also permits use of Compression=2 to specify Modified Huffman compression, but the data does not use EOLs. As a result, TIFF-F uses Compression=3 instead of Compression=2 to specify Modified Huffman compression.

基线TIFF还允许使用Compression=2指定修改后的哈夫曼压缩,但数据不使用EOL。因此,TIFF-F使用Compression=3而不是Compression=2来指定修改后的哈夫曼压缩。

4.4.5. Example Use of Page-quality Fields
4.4.5. 页面质量字段的示例使用

Here are examples for writing the CleanFaxData, BadFaxLines, and ConsecutiveBadFaxLines fields:

以下是写入CleanFaxData、BadFaxLines和ConcertiveBadFaxLines字段的示例:

1. Facsimile hardware does not provide page quality information: MUST NOT write page-quality fields. 2. Facsimile hardware provides page quality information, but reports no bad lines. Write only BadFaxLines = 0. 3. Facsimile hardware provides page quality information, and reports bad lines. Write both BadFaxLines and ConsecutiveBadFaxLines. Also write CleanFaxData = 1 or 2 if the hardware's regeneration capability is known. 4. Source image data stream is error-corrected or otherwise guaranteed to be error-free such as for a computer generated file: SHOULD NOT write page-quality fields.

1. 传真硬件不提供页面质量信息:不得写入页面质量字段。2.传真硬件提供页面质量信息,但不报告坏行。只写BadFaxLines=0。3.传真硬件提供页面质量信息,并报告错误行。写入错误传真行和连续错误传真行。如果已知硬件的再生能力,还可以写入CleanFaxData=1或2。4.源图像数据流已更正错误或以其他方式保证无错误,例如计算机生成的文件:不应写入页面质量字段。

TIFF Writers SHOULD only generate these fields when the image has been generated from a fax image data stream where error correction, e.g. Group 3 Error Correction Mode, was not used.

TIFF写入程序仅当图像是从未使用纠错(例如第3组纠错模式)的传真图像数据流生成时,才应生成这些字段。

4.4.6. Practical Guidelines for Writing and Reading Multi-Page TIFF-F Files

4.4.6. 编写和读取多页TIFF-F文件的实用指南

Traditionally, historical TIFF-F has required readers and writers to be able to handle multi-page TIFF-F files. Based on the experience of various TIFF-F implementors, it has been seen that the implementation of TIFF-F can be greatly simplified if certain practical guidelines are followed when writing multi-page TIFF-F files.

传统上,历史TIFF-F要求读写器能够处理多页TIFF-F文件。根据各种TIFF-F实现者的经验,可以看出,如果在编写多页TIFF-F文件时遵循某些实用指南,TIFF-F的实现可以大大简化。

The structure for a multi-page TIFF-F file will include one IFD per page of the document. In this case, this IFD will define the attributes for a single page. A second simplifying guideline is that the writer of TIFF-F files SHOULD present IFDs in the same order as the actual sequence of pages. (The pages are numbered within TIFF-F beginning with page 0 as the first page and then ascending (i.e. 0, 1, 2,...). However, any field values over 4 bytes will be stored separately from the IFD. TIFF-F readers SHOULD expect IFDs to be presented in page order, but be able to handle exceptions.

多页TIFF-F文件的结构将包括每页文档的一个IFD。在这种情况下,此IFD将定义单个页面的属性。第二个简化准则是,TIFF-F文件的编写者应该按照与实际页面顺序相同的顺序呈现IFD。(页面在TIFF-F中编号,从第0页开始作为第一页,然后升序(即0、1、2等)。但是,任何超过4字节的字段值都将与IFD分开存储。TIFF-F阅读器应期望IFD按页面顺序显示,但能够处理异常。

Per [TIFF], the exact placement of image data is not specified. However, the strip offsets for each strip of image are defined from within each IFD. Where possible, another simplifying guideline for the writing of TIFF-F files is to specify that the image data for each page of a multi-page document SHOULD be contained within a single strip (i.e. one image strip per fax page). The use of a single image strip per page is very useful for applications such as store and forward messaging, where the file is usually prepared in advance of the transmission, but other assumptions may apply for the size of the image strip for applications which require the use of "streaming" techniques (see section 4.4.7). In the event a different image strip size guideline has been used (e.g. constant size for image strips that may be less than the page size), this will immediately be evident from the values/offsets of the fields that are related to strips.

根据[TIFF],未指定图像数据的确切位置。但是,每个图像条带的条带偏移是从每个IFD中定义的。在可能的情况下,编写TIFF-F文件的另一个简化指南是指定多页文档每页的图像数据应包含在单个条带中(即,每个传真页一个图像条带)。每页使用一个图像条对于存储和转发消息等应用非常有用,其中文件通常在传输之前准备好,但对于需要使用“流”技术的应用,其他假设可能适用于图像条的大小(见第4.4.7节)。如果使用了不同的图像条尺寸指南(例如,图像条的恒定尺寸可能小于页面尺寸),这将立即从与条带相关的字段的值/偏移量中表现出来。

A third simplifying guideline is that each IFD SHOULD be placed in the TIFF-F file structure at a point which precedes the image which the IFD describes.

第三个简化准则是,每个IFD都应放置在TIFF-F文件结构中,位于IFD描述的图像之前的某个点。

In addition, a fourth simplifying guideline for TIFF-F writers and readers is to place the actual image data in a physical order within the TIFF file structure which is consistent with the logical page order. In practice, TIFF-F readers will need to use the strip

此外,TIFF-F编写器和读取器的第四个简化准则是将实际图像数据按物理顺序放置在TIFF文件结构中,该文件结构与逻辑页面顺序一致。实际上,TIFF-F阅读器需要使用该条带

offsets to find the exact physical location of the image data, whether or not it is presented in logical page order.

偏移量,以查找图像数据的确切物理位置,无论它是否以逻辑页面顺序显示。

If the image data is stored in multiple strips, then the strips SHOULD occur in the file in the same order that the data they contain occurs in the facsimile transmission, starting at the top of the page.

如果图像数据存储在多个条带中,则条带在文件中的出现顺序应与其包含的数据在传真传输中出现的顺序相同,从页面顶部开始。

TIFF-F writers MAY make a fifth simplifying guideline, in which the IFD, the value data and the image data to which the IFD has offsets precede the next image IFD. However, this guideline has been relaxed (writers MAY rather than SHOULD use it) compared to the other guidelines given here to reflect past practices for TIFF-F.

TIFF-F编写器可以制定第五个简化准则,其中IFD、值数据和IFD偏移的图像数据优先于下一个图像IFD。然而,与此处给出的反映TIFF-F过去实践的其他指南相比,本指南已经放宽(作者可能不应该使用它)。

In the case of the minimal mode, which is also the minimal subset of Profile S, the SHOULD's and MAY's of these guidelines become SHALL's (see Section 3.5).

在最小模式的情况下,也是剖面S的最小子集,这些指南中的“应该”和“可能”变成“应该”(见第3.5节)。

So, a TIFF-F file which is structured using the guidelines of this section will essentially be composed of a linked list of IFDs, presented in ascending page order, which in turn each point to a single page of image data (one strip per page), where the pages of image data are also placed in a logical page order within the TIFF- F file structure. (The pages of image data may themselves be stored in a contiguous manner, at the option of the implementor).

因此,使用本节指南构建的TIFF-F文件基本上由IFD链表组成,按升序排列,依次指向一页图像数据(每页一条),其中图像数据页也按逻辑页面顺序排列在TIFF-F文件结构中。(根据实施者的选择,图像数据的页面本身可以以连续的方式存储)。

4.4.7. Use of TIFF-F for Streaming Applications
4.4.7. 在流媒体应用程序中使用TIFF-F

TIFF-F has historically been used for handling fax image files in applications such as store and forward messaging where the entire size of the file is known in advance. While TIFF-F may also possibly be used as a file format for cases such as streaming applications, assumptions may be required that differ from those provided in this section (e.g., the entire size and number of pages within the image are not known in advance). As a result, a definition for the streaming application of TIFF-F is beyond the scope of this document.

TIFF-F历来用于处理传真图像文件,如存储和转发消息等应用程序,其中文件的整个大小是事先已知的。虽然TIFF-F也可能用作流媒体应用程序等情况下的文件格式,但可能需要与本节中提供的假设不同的假设(例如,图像中的整个大小和页数事先未知)。因此,TIFF-F流媒体应用的定义超出了本文档的范围。

4.5. Implementation Warnings
4.5. 实施警告
4.5.1 Uncompressed data
4.5.1 未压缩数据

TIFF-F requires the ability to read and write at least one-dimensional T.4 Huffman ("compressed") data. Uncompressed data is not allowed. This means that the "Uncompressed" bit in T4Options or T6Options must be set to 0.

TIFF-F要求能够读取和写入至少一维T.4 Huffman(“压缩”)数据。不允许使用未压缩的数据。这意味着T4Options或T6Options中的“未压缩”位必须设置为0。

4.5.2. Encoding and Resolution
4.5.2. 编码和解析

Since two-dimensional encoding is not required for Group 3 compatibility, some historic TIFF-F readers have not been able to read such files. The minimum subset of TIFF-F REQUIRES support for one dimensional (Modified Huffman) files, so this choice maximizes portability. However, implementors seeking greater efficiency SHOULD use T.6 MMR compression when writing TIFF-F files. Some TIFF-F readers will also support two-dimensional Modified READ files. Implementors that wish to have the maximum flexibility in reading TIFF-F files should support all three of these compression methods (MH, MR and MMR).

由于第3组兼容性不需要二维编码,因此一些历史上的TIFF-F阅读器无法读取此类文件。TIFF-F的最小子集要求支持一维(修改过的Huffman)文件,因此这种选择最大限度地提高了可移植性。但是,寻求更高效率的实现者在编写TIFF-F文件时应使用T.6 MMR压缩。一些TIFF-F阅读器还支持二维修改读取文件。希望在读取TIFF-F文件时具有最大灵活性的实现者应该支持这三种压缩方法(MH、MR和MMR)。

For the case of resolution, almost all facsimile products support both standard (98 dpi) vertical resolution and "fine" (196 dpi) resolution. Therefore, fine-resolution files are quite portable in the real world.

就分辨率而言,几乎所有传真产品都支持标准(98 dpi)垂直分辨率和“精细”(196 dpi)分辨率。因此,高分辨率文件在现实世界中是非常可移植的。

In 1993, the ITU-T added support for higher resolutions in the T.30 recommendation including 200 x 200, 300 x 300, 400 x 400 in dots per inch based units. At the same time, support was added for metric dimensions which are equivalent to the following inch based resolutions: 391v x 204h and 391v x 408h. Therefore, the full set of inch-based equivalents of the new resolutions are supported in the TIFF-F writer, since they may appear in some image data streams received from Group 3 facsimile devices. However, many facsimile terminals and older versions of TIFF-F readers are likely to not support the use of these higher resolutions.

In 1993, the ITU-T added support for higher resolutions in the T.30 recommendation including 200 x 200, 300 x 300, 400 x 400 in dots per inch based units. At the same time, support was added for metric dimensions which are equivalent to the following inch based resolutions: 391v x 204h and 391v x 408h. Therefore, the full set of inch-based equivalents of the new resolutions are supported in the TIFF-F writer, since they may appear in some image data streams received from Group 3 facsimile devices. However, many facsimile terminals and older versions of TIFF-F readers are likely to not support the use of these higher resolutions.translate error, please retry

Per [T.4], it is permissible for applications to treat the following XResolution values as being equivalent: <204,200> and <400,408>. In a similar respect, the following YResolution values may also be treated as being equivalent: <98, 100>, <196, 200>, and <391, 400>. These equivalencies were allowed by [T.4] to permit conversions between inch and metric based facsimile terminals.

根据[T.4],允许应用程序将以下X分辨率值视为等效值:<204200>和<400408>。在类似方面,以下Y分辨率值也可被视为等效:<98100>、<196200>和<391400>。[T.4]允许这些等效性,以允许在基于英寸和公制的传真终端之间进行转换。

In a similar respect, the optional support of metric based resolutions in the TIFF-F reader (i.e. 77 x 38.5 cm) is included for completeness, since they are used in some legacy TIFF-F applications, but this use is not recommended for the creation of TIFF-F files by a writer.

在类似方面,TIFF-F阅读器(即77 x 38.5 cm)中可选支持基于公制的分辨率是为了完整性,因为它们在一些传统TIFF-F应用程序中使用,但不建议写入者在创建TIFF-F文件时使用。

4.5.3. EOL byte-aligned
4.5.3. 下线字节对齐

The historical convention for TIFF-F has been that all EOLs in Modified Huffman or Modified READ data must be byte-aligned. However, Baseline TIFF has permitted use of non-byte-aligned EOLs by default, so that a large percentage of TIFF-F reader implementations support

TIFF-F的历史惯例是,修改后的Huffman或修改后的读取数据中的所有EOL必须是字节对齐的。但是,基线TIFF默认情况下允许使用非字节对齐的EOL,因此大部分TIFF-F读卡器实现支持

both conventions. Therefore, the minimum subset of TIFF-F, or Profile S, as defined in Section 3 includes support for both byte-aligned and non- byte-aligned EOLs; see Section 3.2.2.

这两个公约。因此,第3节中定义的TIFF-F或配置文件S的最小子集包括对字节对齐和非字节对齐EOL的支持;见第3.2.2节。

An EOL is said to be byte-aligned when Fill bits have been added as necessary before EOL codes such that EOL always ends on a byte boundary, thus ensuring an EOL-sequence of a one byte preceded by a zero nibble: xxxx0000 00000001.

当在下线代码之前根据需要添加填充位时,下线被称为字节对齐,这样下线总是在字节边界上结束,从而确保下线序列的前半字节为一个字节:xxxx0000 0000000 1。

Modified Huffman encoding encodes bits, not bytes. This means that the end-of-line token may end in the middle of a byte. In byte alignment, extra zero bits (Fill) are added so that the first bit of data following an EOL begins on a byte boundary. In effect, byte alignment relieves application software of the burden of bit-shifting every byte while parsing scan lines for line-oriented image manipulation (such as writing a TIFF file).

修改的哈夫曼编码编码位,而不是字节。这意味着行尾令牌可以在字节中间结束。在字节对齐中,添加额外的零位(填充),以便下线后的第一位数据从字节边界开始。实际上,字节对齐减轻了应用软件在解析扫描行以进行面向行的图像处理(如编写TIFF文件)时对每个字节进行位移位的负担。

For Modified READ encoding, each line is terminated by an EOL and a one bit tag bit. Per [T.4], the value of the tag bit is 0 if the next line contains two dimensional data and 1 if the next line is a reference line. To maintain byte alignment, fill bits are added before the EOL/tag bit sequence, so that the first bit of data following an MR tag bit begins on a byte boundary.

对于修改的读取编码,每行由一个EOL和一位标记位终止。根据[T.4],如果下一行包含二维数据,则标记位的值为0,如果下一行是参考线,则标记位的值为1。为了保持字节对齐,在下线/标记位序列之前添加填充位,以便MR标记位之后的第一位数据从字节边界开始。

4.5.4. EOL
4.5.4. 下线

As illustrated in FIGURE 1/T.4 in [T.4], facsimile documents encoded with Modified Huffman begin with an EOL, which in TIFF-F may be byte-aligned. The last line of the image is not terminated by an EOL. In a similar respect, images encoded with Modified READ two-dimensional encoding begin with an EOL, followed by a tag bit.

如[T.4]中图1/T.4所示,使用修改后的哈夫曼编码的传真文件以EOL开头,在TIFF-F中,EOL可以是字节对齐的。图像的最后一行不是由下线终止的。在类似方面,使用修改的读取二维编码编码的图像以EOL开始,然后是标记位。

4.5.5. RTC Exclusion
4.5.5. RTC排除

Aside from EOLs, TIFF-F files have historically only contained image data. This means that applications which wish to maintain strict conformance with the rules in [TIFF] and compatibility with historical TIFF-F, SHOULD NOT include the Return To Control sequence (RTC) (consisting of 6 consecutive EOLs) when writing TIFF-F files. However, applications which need to support "transparency" of [T.4] image data MAY include RTCs if the flag settings of the T4Options field are set for non-byte aligned MH or MR image data. Implementors of TIFF readers should also be aware that there are some existing TIFF-F implementations which include the RTC sequence in MH/MR image data. Therefore, TIFF-F readers MUST be able to process files which do not include RTCs and SHOULD be able to process files which do include RTCs.

除了EOL,TIFF-F文件历史上只包含图像数据。这意味着,希望严格遵守[TIFF]中的规则并与历史TIFF-F兼容的应用程序在写入TIFF-F文件时不应包括返回控制序列(RTC)(由6个连续EOL组成)。但是,如果T4Options字段的标志设置是针对非字节对齐的MH或MR图像数据设置的,则需要支持[T.4]图像数据的“透明度”的应用程序可能包括RTC。TIFF阅读器的实现者还应该知道,一些现有的TIFF-F实现包括MH/MR图像数据中的RTC序列。因此,TIFF-F阅读器必须能够处理不包含RTC的文件,并且应该能够处理包含RTC的文件。

4.5.6 Use of EOFB for T.6 Compressed Images
4.5.6 对T.6压缩图像使用EOFB

TIFF-F pages which are encoded with the T.6 Modified Modified READ compression method MUST include an "end-of-facsimile-block" (EOFB) code at the end of each coded strip. Per [TIFF], the EOFB code is followed by pad bits as needed to align on a byte boundary. TIFF readers SHOULD ignore any bits other than pad bits beyond the EOFB.

使用T.6修改读取压缩方法编码的TIFF-F页面必须在每个编码条的末端包含“传真块结束”(EOFB)代码。根据[TIFF],EOFB代码后面跟着根据需要在字节边界上对齐的焊盘位。TIFF读取器应忽略除EOFB之外的pad位以外的任何位。

4.6. Example Use of TIFF-F
4.6. TIFF-F的示例使用

The Profile F of TIFF (i.e. TIFF-F content) is a secondary component of the VPIM Message, as defined in [VPIM2]. Voice messaging systems can often handle fax store-and-forward capabilities in addition to tradi- tional voice message store-and-forward functions. As a result, TIFF-F fax messages can optionally be sent between compliant VPIM systems, and may be rejected if the recipient system cannot deal with fax.

TIFF的配置文件F(即TIFF-F内容)是VPIM消息的次要组件,如[VPIM2]中所定义。除了传统的语音信息存储和转发功能外,语音信息系统通常还可以处理传真存储和转发功能。因此,TIFF-F传真消息可以选择在兼容的VPIM系统之间发送,如果收件人系统无法处理传真,则可能会被拒绝。

Refer to the VPIM Specification for proper usage of this content.

有关此内容的正确用法,请参阅VPIM规范。

4.7. Extended Black-and-white Fax Mode Summary
4.7. 扩展黑白传真模式摘要

Recommended fields are shown with an asterisk *.

推荐字段以星号*显示。

Required fields or values are shown with a double asterisk **. If the double asterisk is on the field name, then all the listed values are required of implementations; if the double asterisks are in the Values column, then only the values suffixed with a double asterisk are required of implementations.

必填字段或值以双星号**显示。如果字段名上有双星号,则所有列出的值都是实现所必需的;如果“值”列中有双星号,则实现只需要带有双星号后缀的值。

       +---------------------------+--------------------------------+
       | Baseline Fields           |  Values                        |
       +---------------------------+--------------------------------+
       | BitsPerSample             | 1**                            |
       +---------------------------+--------------------------------+
       | Compression               | 3**: 1D Modified Huffman and   |
       |                           |      2D Modified Read coding   |
       |                           | 4: 2D Modified Modified Read   |
       |                           |    coding                      |
       +---------------------------+--------------------------------+
       | DateTime*                 | {ASCII}: date/time in 24-hour  |
       |                           | format "YYYY:MM:DD HH:MM:SS"   |
       +---------------------------+--------------------------------+
       | FillOrder**               | 1: most significant bit first  |
       |                           | 2: least significant bit first |
       +------------------------------------------------------------+
        
       +---------------------------+--------------------------------+
       | Baseline Fields           |  Values                        |
       +---------------------------+--------------------------------+
       | BitsPerSample             | 1**                            |
       +---------------------------+--------------------------------+
       | Compression               | 3**: 1D Modified Huffman and   |
       |                           |      2D Modified Read coding   |
       |                           | 4: 2D Modified Modified Read   |
       |                           |    coding                      |
       +---------------------------+--------------------------------+
       | DateTime*                 | {ASCII}: date/time in 24-hour  |
       |                           | format "YYYY:MM:DD HH:MM:SS"   |
       +---------------------------+--------------------------------+
       | FillOrder**               | 1: most significant bit first  |
       |                           | 2: least significant bit first |
       +------------------------------------------------------------+
        
       +------------------------------------------------------------+
       | ImageDescription*         | {ASCII}: A string describing   |
       |                           | the contents of the image.     |
       +---------------------------+--------------------------------+
       | ImageWidth                | 1728**, 2048, 2432, 2592,      |
       |                           | 3072, 3456, 3648, 4096, 4864   |
       +---------------------------+--------------------------------+
       | ImageLength**             | n: total number of scanlines   |
       |                           | in image                       |
       +---------------------------+--------------------------------+
       | NewSubFileType            | 2**: Bit 1 identifies single   |
       |                           | page of a multi-page document  |
       +---------------------------+--------------------------------+
       | Orientation               | 1**-8, Default 1               |
       +---------------------------+--------------------------------+
       | PhotometricInterpretation | 0: pixel value 1 means black   |
       |  **                       | 1: pixel value 1 means white   |
       +---------------------------+--------------------------------+
       | ResolutionUnit**          | 2: inch                        |
       |                           | 3: centimeter                  |
       +---------------------------+--------------------------------+
       | RowsPerStrip**            | n: number of scanlines per     |
       |                           | TIFF strip                     |
       +---------------------------+--------------------------------+
       | SamplesPerPixel           | 1**                            |
       +---------------------------+--------------------------------+
       | Software*                 | {ASCII}: name & release        |
       |                           | number of creator software     |
       +---------------------------+--------------------------------+
       | StripByteCounts**         | <n>: number or bytes in TIFF   |
       |                           | strip                          |
       +---------------------------+--------------------------------+
       | StripOffsets**            | <n>: offset from beginning of  |
       |                           | file to each TIFF strip        |
       +---------------------------+--------------------------------+
       | XResolution               | 200, 204**, 300, 400, 408      |
       |                           | (written in pixels/inch)       |
       +---------------------------+--------------------------------+
       | YResolution               | 98**, 196**, 100,              |
       |                           | 200, 300, 391, 400             |
       |                           | (written in pixels/inch)       |
       +---------------------------+--------------------------------+
       | Extension Fields                                           |
       +---------------------------+--------------------------------+
        
       +------------------------------------------------------------+
       | ImageDescription*         | {ASCII}: A string describing   |
       |                           | the contents of the image.     |
       +---------------------------+--------------------------------+
       | ImageWidth                | 1728**, 2048, 2432, 2592,      |
       |                           | 3072, 3456, 3648, 4096, 4864   |
       +---------------------------+--------------------------------+
       | ImageLength**             | n: total number of scanlines   |
       |                           | in image                       |
       +---------------------------+--------------------------------+
       | NewSubFileType            | 2**: Bit 1 identifies single   |
       |                           | page of a multi-page document  |
       +---------------------------+--------------------------------+
       | Orientation               | 1**-8, Default 1               |
       +---------------------------+--------------------------------+
       | PhotometricInterpretation | 0: pixel value 1 means black   |
       |  **                       | 1: pixel value 1 means white   |
       +---------------------------+--------------------------------+
       | ResolutionUnit**          | 2: inch                        |
       |                           | 3: centimeter                  |
       +---------------------------+--------------------------------+
       | RowsPerStrip**            | n: number of scanlines per     |
       |                           | TIFF strip                     |
       +---------------------------+--------------------------------+
       | SamplesPerPixel           | 1**                            |
       +---------------------------+--------------------------------+
       | Software*                 | {ASCII}: name & release        |
       |                           | number of creator software     |
       +---------------------------+--------------------------------+
       | StripByteCounts**         | <n>: number or bytes in TIFF   |
       |                           | strip                          |
       +---------------------------+--------------------------------+
       | StripOffsets**            | <n>: offset from beginning of  |
       |                           | file to each TIFF strip        |
       +---------------------------+--------------------------------+
       | XResolution               | 200, 204**, 300, 400, 408      |
       |                           | (written in pixels/inch)       |
       +---------------------------+--------------------------------+
       | YResolution               | 98**, 196**, 100,              |
       |                           | 200, 300, 391, 400             |
       |                           | (written in pixels/inch)       |
       +---------------------------+--------------------------------+
       | Extension Fields                                           |
       +---------------------------+--------------------------------+
        
       +---------------------------+--------------------------------+
       | T4Options                 | 0**: required if Compression   |
       |                           | is Modified Huffman, EOLs are  |
       |                           | not byte aligned               |
       |                           | 1: required if Compression is  |
       |                           | 2D Modified Read, EOLs are     |
       |                           | not byte aligned               |
       |                           | 4**: required if Compression   |
       |                           | is Modified Huffman, EOLs are  |
       |                           | byte aligned                   |
       +---------------------------+--------------------------------+
       | T4Options (continued)     | 5: required if Compression     |
       |                           | is 2D Modified Read, EOLs are  |
       |                           | byte aligned                   |
       +---------------------------+--------------------------------+
       | T6Options                 | 0: required if Compression is  |
       |                           | 2D Modified Modified Read      |
       +---------------------------+--------------------------------+
       | DocumentName*             | {ASCII}: name of scanned       |
       |                           | document                       |
       +---------------------------+--------------------------------+
       | PageNumber**              | n,m: page number followed by   |
       |                           | total page count               |
       +---------------------------+--------------------------------+
       | New Fields                                                 |
       +---------------------------+--------------------------------+
       | BadFaxLines*              | number of "bad" scanlines      |
       |                           | encountered during reception   |
       +---------------------------+--------------------------------+
       | CleanFaxData*             | 0: no "bad" lines              |
       |                           | 1: "bad" lines exist, but were |
       |                           | regenerated by receiver        |
       |                           | 2: "bad" lines exist, but have |
       |                           | not been regenerated           |
       +---------------------------+--------------------------------+
       | ConsecutiveBadFaxLines*   | Max number of consecutive      |
       |                           | "bad" lines received           |
       +---------------------------+--------------------------------+
        
       +---------------------------+--------------------------------+
       | T4Options                 | 0**: required if Compression   |
       |                           | is Modified Huffman, EOLs are  |
       |                           | not byte aligned               |
       |                           | 1: required if Compression is  |
       |                           | 2D Modified Read, EOLs are     |
       |                           | not byte aligned               |
       |                           | 4**: required if Compression   |
       |                           | is Modified Huffman, EOLs are  |
       |                           | byte aligned                   |
       +---------------------------+--------------------------------+
       | T4Options (continued)     | 5: required if Compression     |
       |                           | is 2D Modified Read, EOLs are  |
       |                           | byte aligned                   |
       +---------------------------+--------------------------------+
       | T6Options                 | 0: required if Compression is  |
       |                           | 2D Modified Modified Read      |
       +---------------------------+--------------------------------+
       | DocumentName*             | {ASCII}: name of scanned       |
       |                           | document                       |
       +---------------------------+--------------------------------+
       | PageNumber**              | n,m: page number followed by   |
       |                           | total page count               |
       +---------------------------+--------------------------------+
       | New Fields                                                 |
       +---------------------------+--------------------------------+
       | BadFaxLines*              | number of "bad" scanlines      |
       |                           | encountered during reception   |
       +---------------------------+--------------------------------+
       | CleanFaxData*             | 0: no "bad" lines              |
       |                           | 1: "bad" lines exist, but were |
       |                           | regenerated by receiver        |
       |                           | 2: "bad" lines exist, but have |
       |                           | not been regenerated           |
       +---------------------------+--------------------------------+
       | ConsecutiveBadFaxLines*   | Max number of consecutive      |
       |                           | "bad" lines received           |
       +---------------------------+--------------------------------+
        
5. Lossless JBIG Black-and-White Fax Mode
5. 无损JBIG黑白传真模式

This section defines the lossless JBIG black-and-white mode or Profile J of TIFF for facsimile. Implementations of this profile are required to also implement Profile S.

本节定义了用于传真的TIFF无损JBIG黑白模式或配置文件J。此概要文件的实现也需要实现概要文件。

The previous section described the extended interchange set of TIFF fields for black-and-white fax, which provided support for the MH, MR and MMR compression of black-and-white images. This section adds a mode with JBIG compression capability.

上一节描述了用于黑白传真的TIFF字段的扩展交换集,它为黑白图像的MH、MR和MMR压缩提供了支持。本节添加了具有JBIG压缩功能的模式。

5.1. Overview
5.1. 概述

This section describes a black-and-white mode that uses JBIG compression. The ITU-T has approved the single-progression sequential mode of JBIG [T.82] for Group 3 facsimile. JBIG coding offers improved compression for halftoned originals. JBIG compression is used in accordance with the application rules given in ITU-T Rec. T.85 [T.85].

本节介绍使用JBIG压缩的黑白模式。ITU-T已批准JBIG[T.82]的单进程顺序模式用于第3组传真。JBIG编码为半色调原稿提供了改进的压缩。JBIG压缩是根据ITU-T Rec.T.85[T.85]中给出的应用规则使用的。

This mode is essentially the extended black-and-white mode with JBIG compression used instead of MH, MR or MMR.

该模式本质上是扩展的黑白模式,使用JBIG压缩代替MH、MR或MMR。

5.2. Required TIFF Fields
5.2. 必需的TIFF字段

This section lists the required fields and the values they must have to be ITU-compatible. Besides the fields listed in Section 2.2.1, the extended black-and-white fax mode requires the following fields.

本节列出了所需字段及其必须与ITU兼容的值。除了第2.2.1节中列出的字段外,扩展黑白传真模式还需要以下字段。

5.2.1. Baseline fields
5.2.1. 基线字段

The TIFF fields that SHALL be used in this mode are the same as those described in Section 4.2.1 for the extended black-and-white mode, with two exceptions: the following text replaces the text in Section 4.2.1 for the Compression and FillOrder fields.

此模式中应使用的TIFF字段与第4.2.1节中描述的扩展黑白模式相同,但有两个例外:以下文本替换第4.2.1节中压缩和填充顺序字段的文本。

Compression(259) = 9. SHORT RequiredByTIFFBaseline 9 = ITU-T Rec. T.82 coding, applying ITU-T Rec. T.85 (JBIG). This is a TIFF extension value. Default = 1 (and is not applicable; field must be specified).

压缩(259)=9。TIFF基线9要求的短代码=ITU-T Rec.T.82编码,应用ITU-T Rec.T.85(JBIG)。这是一个TIFF扩展值。默认值=1(不适用;必须指定字段)。

FillOrder(266) = 2. SHORT RequiredByTIFFBaseline 2 = Pixels are arranged within a byte such that pixels with lower column values are stored in the lower-order bits of the bytes, i.e., least significant bit first (LSB).

填充顺序(266)=2。SHORT RequiredByTIFFBaseline 2=像素排列在字节内,使得具有较低列值的像素存储在字节的较低顺序位中,即最低有效位优先(LSB)。

NOTE: The JBIG coding of black-and-white image data in Profile J follows ITU-T Rec. T.85 [T.85], which specifies LSB first ordering within a byte. Note that Baseline TIFF readers are only required to support MSB first ordering or FillOrder = 1.

注:配置文件J中黑白图像数据的JBIG编码遵循ITU-T Rec.T.85[T.85],它指定了一个字节内的LSB优先顺序。请注意,基线TIFF读取器仅需要支持MSB first ordering或FillOrder=1。

5.2.2. Extension fields
5.2.2. 扩展字段

Same fields as those in Section 2.2.1.

与第2.2.1节中的字段相同。

5.2.3. New fields
5.2.3. 新领域

None.

没有一个

5.3. Recommended TIFF Fields
5.3. 推荐的TIFF字段

See Section 2.2.3 and 2.2.4.

见第2.2.3节和第2.2.4节。

5.4. Lossless JBIG Black-and-white Fax Mode Summary
5.4. 无损JBIG黑白传真模式摘要

Recommended fields are shown with an asterisk *.

推荐字段以星号*显示。

Required fields or values are shown with a double asterisk **. If the double asterisk is on the field name, then all the listed values are required of implementations; if the double asterisks are in the Values column, then only the values suffixed with a double asterisk are required of implementations.

必填字段或值以双星号**显示。如果字段名上有双星号,则所有列出的值都是实现所必需的;如果“值”列中有双星号,则实现只需要带有双星号后缀的值。

       +---------------------------+--------------------------------+
       | Baseline Fields           |  Values                        |
       +---------------------------+--------------------------------+
       | BitsPerSample             | 1**                            |
       +---------------------------+--------------------------------+
       | Compression               | 9**: JBIG coding               |
       +---------------------------+--------------------------------+
       | DateTime*                 | {ASCII}: date/time in 24-hour  |
       |                           | format "YYYY:MM:DD HH:MM:SS"   |
       +---------------------------+--------------------------------+
       | FillOrder**               | 1: most significant bit first  |
       |                           | 2: least significant bit first |
       +---------------------------+--------------------------------+
       | ImageDescription*         | {ASCII}: A string describing   |
       |                           | the contents of the image.     |
       +---------------------------+--------------------------------+
       | ImageWidth                | 1728**, 2048, 2432, 2592,      |
       |                           | 3072, 3456, 3648, 4096, 4864   |
       +---------------------------+--------------------------------+
       | ImageLength**             | n: total number of scanlines   |
       |                           | in image                       |
       +---------------------------+--------------------------------+
       | NewSubFileType**          | 2: Bit 1 identifies single     |
       |                           | page of a multi-page document  |
       +---------------------------+--------------------------------+
       | Orientation               | 1**-8, Default 1               |
       +------------------------------------------------------------+
        
       +---------------------------+--------------------------------+
       | Baseline Fields           |  Values                        |
       +---------------------------+--------------------------------+
       | BitsPerSample             | 1**                            |
       +---------------------------+--------------------------------+
       | Compression               | 9**: JBIG coding               |
       +---------------------------+--------------------------------+
       | DateTime*                 | {ASCII}: date/time in 24-hour  |
       |                           | format "YYYY:MM:DD HH:MM:SS"   |
       +---------------------------+--------------------------------+
       | FillOrder**               | 1: most significant bit first  |
       |                           | 2: least significant bit first |
       +---------------------------+--------------------------------+
       | ImageDescription*         | {ASCII}: A string describing   |
       |                           | the contents of the image.     |
       +---------------------------+--------------------------------+
       | ImageWidth                | 1728**, 2048, 2432, 2592,      |
       |                           | 3072, 3456, 3648, 4096, 4864   |
       +---------------------------+--------------------------------+
       | ImageLength**             | n: total number of scanlines   |
       |                           | in image                       |
       +---------------------------+--------------------------------+
       | NewSubFileType**          | 2: Bit 1 identifies single     |
       |                           | page of a multi-page document  |
       +---------------------------+--------------------------------+
       | Orientation               | 1**-8, Default 1               |
       +------------------------------------------------------------+
        
       +---------------------------+--------------------------------+
       | PhotometricInterpretation | 0: pixel value 1 means black   |
       |  **                       | 1: pixel value 1 means white   |
       +---------------------------+--------------------------------+
       | ResolutionUnit**          | 2: inch                        |
       |                           | 3: centimeter                  |
       +---------------------------+--------------------------------+
       | RowsPerStrip**            | n: number of scanlines per     |
       |                           | TIFF strip                     |
       +---------------------------+--------------------------------+
       | SamplesPerPixel**         | 1                              |
       +---------------------------+--------------------------------+
       | Software*                 | {ASCII}: name & release        |
       |                           | number of creator software     |
       +---------------------------+--------------------------------+
       | StripByteCounts**         | <n>: number of bytes in TIFF   |
       |                           | strip                          |
       +---------------------------+--------------------------------+
       | StripOffsets**            | <n>: offset from beginning of  |
       |                           | file to each TIFF strip        |
       +---------------------------+--------------------------------+
       | XResolution               | 200, 204**, 300, 400, 408      |
       |                           | (written in pixels/inch)       |
       +---------------------------+--------------------------------+
       | YResolution               | 98**, 196**, 100,              |
       |                           | 200, 300, 391, 400             |
       |                           | (written in pixels/inch)       |
       +---------------------------+--------------------------------+
       | Extension Fields                                           |
       +---------------------------+--------------------------------+
       | DocumentName*             | {ASCII}: name of document      |
       |                           |  scanned                       |
       +---------------------------+--------------------------------+
       | PageNumber**              | n,m: page number followed by   |
       |                           | total page count               |
       +---------------------------+--------------------------------+
       | New Fields                                                 |
       +---------------------------+--------------------------------+
       | GlobalParametersIFD*      | IFD: global parameters IFD     |
       +---------------------------+--------------------------------+
       | ProfileType*              | n: type of data stored in file |
       +---------------------------+--------------------------------+
       | FaxProfile*               | n: ITU-compatible fax mode     |
       +---------------------------+--------------------------------+
       | CodingMethods*            | n: compression algorithms used |
       |                           | in file                        |
       +---------------------------+--------------------------------+
        
       +---------------------------+--------------------------------+
       | PhotometricInterpretation | 0: pixel value 1 means black   |
       |  **                       | 1: pixel value 1 means white   |
       +---------------------------+--------------------------------+
       | ResolutionUnit**          | 2: inch                        |
       |                           | 3: centimeter                  |
       +---------------------------+--------------------------------+
       | RowsPerStrip**            | n: number of scanlines per     |
       |                           | TIFF strip                     |
       +---------------------------+--------------------------------+
       | SamplesPerPixel**         | 1                              |
       +---------------------------+--------------------------------+
       | Software*                 | {ASCII}: name & release        |
       |                           | number of creator software     |
       +---------------------------+--------------------------------+
       | StripByteCounts**         | <n>: number of bytes in TIFF   |
       |                           | strip                          |
       +---------------------------+--------------------------------+
       | StripOffsets**            | <n>: offset from beginning of  |
       |                           | file to each TIFF strip        |
       +---------------------------+--------------------------------+
       | XResolution               | 200, 204**, 300, 400, 408      |
       |                           | (written in pixels/inch)       |
       +---------------------------+--------------------------------+
       | YResolution               | 98**, 196**, 100,              |
       |                           | 200, 300, 391, 400             |
       |                           | (written in pixels/inch)       |
       +---------------------------+--------------------------------+
       | Extension Fields                                           |
       +---------------------------+--------------------------------+
       | DocumentName*             | {ASCII}: name of document      |
       |                           |  scanned                       |
       +---------------------------+--------------------------------+
       | PageNumber**              | n,m: page number followed by   |
       |                           | total page count               |
       +---------------------------+--------------------------------+
       | New Fields                                                 |
       +---------------------------+--------------------------------+
       | GlobalParametersIFD*      | IFD: global parameters IFD     |
       +---------------------------+--------------------------------+
       | ProfileType*              | n: type of data stored in file |
       +---------------------------+--------------------------------+
       | FaxProfile*               | n: ITU-compatible fax mode     |
       +---------------------------+--------------------------------+
       | CodingMethods*            | n: compression algorithms used |
       |                           | in file                        |
       +---------------------------+--------------------------------+
        
6. Base Color Fax Mode
6. 基色传真模式
6.1. Overview
6.1. 概述

This section defines the lossy color mode or Profile C of TIFF for facsimile. Implementations of this profile are required to also implement Profile S.

本节定义了传真TIFF的有损颜色模式或配置文件C。此概要文件的实现也需要实现概要文件。

This is the base mode for color and grayscale facsimile, which means that all applications that support color fax must support this mode. The basic approach is the lossy JPEG compression [T.4, Annex E; T.81] of L*a*b* color data [T.42]. Grayscale applications use the L* lightness component; color applications use the L*, a* and b* components.

这是彩色和灰度传真的基本模式,这意味着所有支持彩色传真的应用程序都必须支持此模式。基本方法是对L*a*b*颜色数据[T.42]进行有损JPEG压缩[T.4,附录E;T.81]。灰度应用程序使用L*亮度分量;颜色应用程序使用L*、a*和b*组件。

This mode uses a new PhotometricInterpretation field value to describe the L*a*b* encoding specified in [T.42]. This encoding differs in two ways from the other L*a*b* encodings used in TIFF [TIFF, TTN1]: it specifies a different default range for the a* and b* components, based on a comprehensive evaluation of existing hardcopy output, and it optionally allows selectable range for the L*, a* and b* components.

此模式使用新的光度测量解释字段值来描述[T.42]中指定的L*a*b*编码。此编码在两个方面不同于TIFF中使用的其他L*a*b*编码[TIFF,TTN1]:它基于对现有硬拷贝输出的综合评估,为a*和b*组件指定不同的默认范围,并且可选地允许L*、a*和b*组件的可选范围。

6.2. Required TIFF Fields
6.2. 必需的TIFF字段

This section lists the required fields, in addition to those given in Section 2.2.1, and the values they must support to be compatible with ITU-T Rec. T.42 and Annex E in ITU-T Rec. T.4.

除第2.2.1节中给出的字段外,本节还列出了所需字段,以及它们必须支持的值,以便与ITU-T Rec.T.42和ITU-T Rec.T.4中的附录E兼容。

6.2.1. Baseline Fields
6.2.1. 基线字段

ImageWidth(256). SHORT or LONG This mode supports the following fixed page widths: 864, 1024, 1216, 1728, 2048, 2432, 2592, 3072, 3456, 3648, 4096, 4864.

图像宽度(256)。短或长此模式支持以下固定页面宽度:864、1024、1216、1728、2048、2432、2592、3072、3456、3648、4096、4864。

NewSubFileType(254) = (Bit 1=1).                                    LONG
    RequiredByTIFFforFAX
    Bit 1 is 1 if the image is a single page of a multi-page document.
    Default = 0 (no subfile bits on, so may not be omitted for fax)
        
NewSubFileType(254) = (Bit 1=1).                                    LONG
    RequiredByTIFFforFAX
    Bit 1 is 1 if the image is a single page of a multi-page document.
    Default = 0 (no subfile bits on, so may not be omitted for fax)
        

BitsPerSample(258) = 8, 12. SHORT Count = SamplesPerPixel The base color fax mode requires 8 bits per sample, with 12 as an option. 12 bits per sample is not baseline TIFF.

比特采样(258)=8,12。SHORT Count=每像素采样数基色传真模式要求每个采样8位,可选12位。每个样本12位不是基线TIFF。

Compression(259) = 7. SHORT Base color fax mode uses Baseline JPEG compression. Value 7 represents JPEG compression as specified in [TTN2].

压缩(259)=7。短基色传真模式使用基线JPEG压缩。值7表示[TTN2]中指定的JPEG压缩。

FillOrder(266) = 1 , 2. SHORT RequiredByTIFFBaseline Profile C readers must be able to read data in both bit orders, but the vast majority of facsimile products store data LSB first, exactly as it appears on the telephone line. 1 = Most Significant Bit first. 2 = Least Significant Bit first

填充顺序(266)=1,2。SHORT RequiredByTIFFBaseline Profile C读卡器必须能够以两种位顺序读取数据,但绝大多数传真产品首先存储数据LSB,与电话线上显示的数据完全相同。1=第一个最高有效位。2=最低有效位优先

PhotometricInterpretation(262) = 10.                               SHORT
    Base color fax mode requires pixel values to be stored using the CIE
    L*a*b* encoding defined in ITU-T Rec. T.42. This encoding is
    indicated by the PhotometricInterpretation value 10, referred to as
    ITULAB. With this encoding, the minimum sample value is  mapped to 0
    and the maximum sample value is mapped to (2^n - 1), i.e. the
    maximum value, where n is the BitsPerSample value. The conversion
    from unsigned ITULAB-encoded samples values to signed CIE L*a*b*
    values is determined by the Decode field; see Sec. 6.2.3
        
PhotometricInterpretation(262) = 10.                               SHORT
    Base color fax mode requires pixel values to be stored using the CIE
    L*a*b* encoding defined in ITU-T Rec. T.42. This encoding is
    indicated by the PhotometricInterpretation value 10, referred to as
    ITULAB. With this encoding, the minimum sample value is  mapped to 0
    and the maximum sample value is mapped to (2^n - 1), i.e. the
    maximum value, where n is the BitsPerSample value. The conversion
    from unsigned ITULAB-encoded samples values to signed CIE L*a*b*
    values is determined by the Decode field; see Sec. 6.2.3
        

NOTE: PhotometricInterpretation values 8 and 9 specify encodings for use with 8-bit-per-sample CIE L*a*b* [TIFF] and ICC L*a*b* [TTN1] data, but they are fixed encodings, which use different minimum and maximum samples than the T.42 default encoding. As currently defined, they are not able to represent fax-encoded L*a*b* data.

注:测光解释值8和9指定用于8位/样本CIE L*a*b*[TIFF]和ICC L*a*b*[TTN1]数据的编码,但它们是固定编码,使用的最小和最大采样数与T.42默认编码不同。按照目前的定义,它们不能表示传真编码的L*a*b*数据。

ResolutionUnit(296) = 2, 3.                                        SHORT
    The unit of measure for resolution. 2 = inch, 3 = centimeter;
    Default = 2 (field may be omitted if this is the value)
        
ResolutionUnit(296) = 2, 3.                                        SHORT
    The unit of measure for resolution. 2 = inch, 3 = centimeter;
    Default = 2 (field may be omitted if this is the value)
        
SamplesPerPixel(277) = 1, 3.                                       SHORT
    1: L* component only, required in base color mode
    3: L*, a*, b* components
    Encoded according to PhotometricInterpretation field
        
SamplesPerPixel(277) = 1, 3.                                       SHORT
    1: L* component only, required in base color mode
    3: L*, a*, b* components
    Encoded according to PhotometricInterpretation field
        

XResolution(282) = 100, 200, 300, 400. RATIONAL YResolution(283) = 100, 200, 300, 400. RATIONAL The resolution of the image is expressed in pixels per resolution unit. In pixels per inch, allowed XResolution values are: 100, 200, 300, and 400. The base color fax mode requires the pixels to be square, hence YResolution must equal XResolution. Base resolution is 200 pixels per inch and SHALL be supported by all implementations of this mode. See Section 2.2.2 for inch-metric equivalency.

分辨率(282)=100200300400。合理的YResolution(283)=100200300400。RATIONAL图像的分辨率以每分辨率单位的像素表示。以每英寸像素为单位,允许的X分辨率值为:100、200、300和400。基色传真模式要求像素为正方形,因此Y分辨率必须等于X分辨率。基本分辨率为每英寸200像素,该模式的所有实现均应支持该分辨率。英寸公制等效性见第2.2.2节。

NOTE: Not all combinations of XResolution, YResolution and ImageWidth are legal. The following table gives the legal combinations for inch-based resolutions and the corresponding paper sizes [T.30].

注:并非所有X分辨率、Y分辨率和ImageWidth的组合都是合法的。下表给出了基于英寸的分辨率和相应纸张尺寸的合法组合[T.30]。

    +--------------------------------+---------------------------+
    |   XResolution x YResolution    |         ImageWidth        |
    +--------------------------------+---------------------------+
    |           100 x 100            |   864   |  1024  |  1216  |
    +--------------------------------+---------------------------+
    |           200 x 200            |  1728   |  2048  |  2432  |
    +--------------------------------+---------------------------+
    |           300 x 300            |  2592   |  3072  |  3648  |
    +--------------------------------+---------------------------+
    |           400 x 400            |  3456   |  4096  |  4864  |
    +--------------------------------+---------------------------+
                                     |Letter,A4|   B4   |   A3   |
                                     |  Legal  |        |        |
                                     +---------------------------+
                                     |         Paper Size        |
                                     +---------------------------+
        
    +--------------------------------+---------------------------+
    |   XResolution x YResolution    |         ImageWidth        |
    +--------------------------------+---------------------------+
    |           100 x 100            |   864   |  1024  |  1216  |
    +--------------------------------+---------------------------+
    |           200 x 200            |  1728   |  2048  |  2432  |
    +--------------------------------+---------------------------+
    |           300 x 300            |  2592   |  3072  |  3648  |
    +--------------------------------+---------------------------+
    |           400 x 400            |  3456   |  4096  |  4864  |
    +--------------------------------+---------------------------+
                                     |Letter,A4|   B4   |   A3   |
                                     |  Legal  |        |        |
                                     +---------------------------+
                                     |         Paper Size        |
                                     +---------------------------+
        
6.2.2 Extension Fields
6.2.2 扩展字段

The JPEG compression standard allows for the a*b* chroma components of an image to be subsampled relative to the L* lightness component. The extension fields ChromaSubSampling and ChromaPositioning define the subsampling. They are the same as YCbCrSubSampling and YCbCrPositioning in [TIFF], but have been renamed to reflect their applicability to other color spaces.

JPEG压缩标准允许相对于L*亮度分量对图像的a*b*色度分量进行二次采样。扩展字段ChromaSubSampling和ChromaPositioning定义子采样。它们与[TIFF]中的YCbCrSubSampling和YCbCrPositioning相同,但已重命名以反映其对其他颜色空间的适用性。

ChromaSubSampling(530). SHORT Count = 2 Specifies the subsampling factors for the chroma components of a L*a*b* image. The two subfields of this field, ChromaSubsampleHoriz and ChromaSubsampleVert, specify the horizontal and vertical subsampling factors respectively.

色度采样(530)。SHORT Count=2指定L*a*b*图像的色度分量的子采样因子。该字段的两个子字段ChromaSubsampleHoriz和ChromaSubsampleVert分别指定水平和垂直子采样因子。

SHORT 0: ChromaSubsampleHoriz = 1, 2. 1: equal numbers of lightness and chroma samples horizontally, 2: twice as many lightness samples as chroma samples horizontally,

短0:ChromaSubsampleHoriz=1,2。1:水平方向上亮度和色度样本数量相等,2:水平方向上亮度样本数量是色度样本数量的两倍,

SHORT 1: ChromaSubsampleVert = 1, 2. 1: equal numbers of lightness and chroma samples vertically, 2: twice as many lightness samples as chroma samples vertically,

SHORT 1:ChromaSubsampleVert=1,2。1:垂直方向上亮度和色度样本数量相等,2:垂直方向上亮度样本数量是色度样本数量的两倍,

    The default value for ChromaSubSampling is (2,2), which is the
    default for chroma subsampling in color fax [T.4, Annex E]. No
    chroma subsampling, i.e. ChromaSubSampling = (1,1), is an option
    for color fax
        
    The default value for ChromaSubSampling is (2,2), which is the
    default for chroma subsampling in color fax [T.4, Annex E]. No
    chroma subsampling, i.e. ChromaSubSampling = (1,1), is an option
    for color fax
        

ChromaPositioning(531) = 1. SHORT Specifies the spatial positioning of chroma components relative to

色度定位(531)=1。SHORT指定色度分量相对于颜色的空间位置

the lightness component. 1: centered, A value of 1 means chrominance samples are spatially offset and centered with respect to luminance samples. See the current TIFF specification under YcbCr positioning for further information. Default = 1, which is what ITU-T T.4, Annex E specifies.

亮度分量。1:居中,值1表示色度样本在空间上偏移,并相对于亮度样本居中。有关更多信息,请参阅YcbCr定位下的当前TIFF规范。默认值=1,这是ITU-T T.4附录E中规定的。

6.2.3. New Fields
6.2.3. 新领域

Decode(433). SRATIONAL Count = 2 * SamplesPerPixel Describes how to map image sample values into the range of values appropriate for the current color space. In general, the values are taken in pairs and specify the minimum and maximum output value for each color component. For the base color fax mode, Decode has a count of 6 values and maps the unsigned ITULAB-encoded sample values (Lsample, asample, bsample) to signed L*a*b* values, as follows:.

解码(433)。SRATIONAL Count=2*SamplesPerPixel描述了如何将图像采样值映射到适合当前颜色空间的值范围。通常,这些值成对获取,并指定每个颜色组件的最小和最大输出值。对于基色传真模式,“解码”的计数为6个值,并将未签名的ITULAB编码样本值(Lsample、asample、bsample)映射为签名的L*a*b*值,如下所示:。

        L* = Decode[0] + Lsample x (Decode[1]-Decode[0])/(2^n -1)
        a* = Decode[2] + asample x (Decode[3]-Decode[2])/(2^n -1)
        b* = Decode[4] + bsample x (Decode[5]-Decode[4])/(2^n -1)
        
        L* = Decode[0] + Lsample x (Decode[1]-Decode[0])/(2^n -1)
        a* = Decode[2] + asample x (Decode[3]-Decode[2])/(2^n -1)
        b* = Decode[4] + bsample x (Decode[5]-Decode[4])/(2^n -1)
        

where Decode[0], Decode[2] and Decode[4] are the minimum values for L*, a* and b*; Decode[1], Decode[3] and Decode[5] are the maximum values for L*, a* and b*; and n is the BitsPerSample, either 8 or 12. For example, when n=8, L*=Decode[0] when Lsample=0 and L*=Decode[1] when Lsample=255.

其中Decode[0]、Decode[2]和Decode[4]是L*、a*和b*的最小值;Decode[1]、Decode[3]和Decode[5]是L*、a*和b*的最大值;n是位样本,8或12。例如,当n=8时,当Lsample=0时L*=Decode[0],当Lsample=255时L*=Decode[1]。

ITU-T Rec. T.42 specifies the ITULAB encoding in terms of a range and offset for each component, which are related to the minimum and maximum values as follows:

ITU-T Rec.T.42根据每个组件的范围和偏移量规定了ITULAB编码,其与最小值和最大值相关,如下所示:

        minimum = - (range x offset) / 2^n - 1
        maximum = minimum + range
        
        minimum = - (range x offset) / 2^n - 1
        maximum = minimum + range
        

The Decode field default values depend on the color space. For the ITULAB color space encoding, the default values correspond to the base range and offset, as specified in ITU-T Rec. T.42 [T.42]. The following table gives the base range and offset values for BitsPerSample=8 and 12, and the corresponding default minimum and maximum default values for the Decode field, calculated using the equations above when PhotometricInterpetation=10.

解码字段默认值取决于颜色空间。对于ITULAB颜色空间编码,默认值对应于ITU-T Rec.T.42[T.42]中规定的基本范围和偏移量。下表给出了BitsPerSample=8和12的基本范围和偏移值,以及解码字段的相应默认最小值和最大值,当PhotometricInterpetation=10时,使用上述公式计算。

                       +-----------------------------------------------+
                       | ITU-T Rec. T.42  |           Decode           |
 +---------+-----------|   base values    |       default values       |
 | BitsPer + Component +------------------+----------------------------+
 | -Sample |           |  Range | Offset  |      Min     |     Max     |
 +---------+-----------+--------+---------+--------------+-------------+
 |    8    |    L*     |   100  |    0    |       0      |     100     |
 |         +-----------+--------+---------+--------------+-------------+
 |         |    a*     |   170  |   128   |  -21760/255  |  21590/255  |
 |         +-----------+--------+---------+--------------+-------------+
 |         |    b*     |   200  |    96   |  -19200/255  |  31800/255  |
 +---------+-----------+--------+---------+--------------+-------------+
 |   12    |    L*     |   100  |    0    |       0      |     100     |
 |         +-----------+--------+---------+--------------+-------------+
 |         |    a*     |   170  |  2048   | -348160/4095 | 347990/4095 |
 |         +-----------+--------+---------+--------------+-------------+
 |         |    b*     |   200  |  1536   | -307200/4095 | 511800/4095 |
 +---------+-----------+--------+---------+--------------+-------------+
        
                       +-----------------------------------------------+
                       | ITU-T Rec. T.42  |           Decode           |
 +---------+-----------|   base values    |       default values       |
 | BitsPer + Component +------------------+----------------------------+
 | -Sample |           |  Range | Offset  |      Min     |     Max     |
 +---------+-----------+--------+---------+--------------+-------------+
 |    8    |    L*     |   100  |    0    |       0      |     100     |
 |         +-----------+--------+---------+--------------+-------------+
 |         |    a*     |   170  |   128   |  -21760/255  |  21590/255  |
 |         +-----------+--------+---------+--------------+-------------+
 |         |    b*     |   200  |    96   |  -19200/255  |  31800/255  |
 +---------+-----------+--------+---------+--------------+-------------+
 |   12    |    L*     |   100  |    0    |       0      |     100     |
 |         +-----------+--------+---------+--------------+-------------+
 |         |    a*     |   170  |  2048   | -348160/4095 | 347990/4095 |
 |         +-----------+--------+---------+--------------+-------------+
 |         |    b*     |   200  |  1536   | -307200/4095 | 511800/4095 |
 +---------+-----------+--------+---------+--------------+-------------+
        

For example, when PhotometricInterpretation=10 and BitsPerSample=8, the default value for Decode is (0, 100, -21760/255, 21590/255, -19200/255, 31800/255).

例如,当PhotometricInterpretation=10且BitsPerSample=8时,解码的默认值为(01100,-21760/255、21590/255,-19200/255、31800/255)。

6.3. Recommended TIFF Fields
6.3. 推荐的TIFF字段

See Sections 2.2.3. and 2.2.4.

见第2.2.3节。和2.2.4。

6.4 Base Color Fax Mode Summary
6.4 基色传真模式摘要

Recommended fields are shown with an asterisk *

推荐字段以星号显示*

Required fields or values are shown with a double asterisk **. If the double asterisk is on the field name, then all the listed values are required of implementations; if the double asterisks are in the Values column, then only the values suffixed with a double asterisk are required of implementations.

必填字段或值以双星号**显示。如果字段名上有双星号,则所有列出的值都是实现所必需的;如果“值”列中有双星号,则实现只需要带有双星号后缀的值。

       +---------------------------+--------------------------------+
       | Baseline Fields           | Values                         |
       +---------------------------+--------------------------------+
       | BitsPerSample             | 8**: 8 bits per color sample   |
       |                           | 12: optional 12 bits/sample    |
       +---------------------------+--------------------------------+
       | Compression**             | 7: JPEG                        |
       +---------------------------+--------------------------------+
       | DateTime*                 | {ASCII}: date/time in 24-hour  |
       |                           | format "YYYY:MM:DD HH:MM:SS"   |
       +---------------------------+--------------------------------+
        
       +---------------------------+--------------------------------+
       | Baseline Fields           | Values                         |
       +---------------------------+--------------------------------+
       | BitsPerSample             | 8**: 8 bits per color sample   |
       |                           | 12: optional 12 bits/sample    |
       +---------------------------+--------------------------------+
       | Compression**             | 7: JPEG                        |
       +---------------------------+--------------------------------+
       | DateTime*                 | {ASCII}: date/time in 24-hour  |
       |                           | format "YYYY:MM:DD HH:MM:SS"   |
       +---------------------------+--------------------------------+
        
       +------------------------------------------------------------+
       | FillOrder**               | 1: most significant bit first  |
       |                           | 2: least significant bit first |
       +---------------------------+--------------------------------+
       | ImageDescription*         | {ASCII}: A string describing   |
       |                           | the contents of the image.     |
       +---------------------------+--------------------------------+
       | ImageWidth                | 864, 1024, 1216, 1728**, 2048  |
       |                           | 2432, 2592, 3072, 3456, 3648   |
       |                           | 4096, 4864                     |
       +---------------------------+--------------------------------+
       | ImageLength**             | n: total number of scanlines   |
       |                           | in image                       |
       +---------------------------+--------------------------------+
       | NewSubFileType**          | 2: Bit 1 identifies single page|
       |                           | of a multi-page document       |
       +---------------------------+--------------------------------+
       | Orientation               | 1**-8, Default 1               |
       +---------------------------+--------------------------------+
       | PhotometricInterpretation | 10**: ITULAB                   |
       +---------------------------+--------------------------------+
       | ResolutionUnit**          | 2: inch                        |
       |                           | 3: centimeter                  |
       +---------------------------+--------------------------------+
       | RowsPerStrip**            | n: number of scanlines per     |
       |                           | TIFF strip                     |
       +---------------------------+--------------------------------+
       | SamplesPerPixel           | 1**: L* (lightness)            |
       |                           | 3: LAB                         |
       +---------------------------+--------------------------------+
       | Software*                 | {ASCII}: name & release number |
       |                           | of creator software            |
       +---------------------------+--------------------------------+
       | StripByteCounts**         | <n>: number or bytes in        |
       |                           | TIFF strip                     |
       +---------------------------+--------------------------------+
       | StripOffsets**            | <n>: offset from beginning     |
       |                           | of file to each TIFF strip     |
       +---------------------------+--------------------------------+
       | XResolution               | 100, 200**, 300, 400 (written  |
       |                           | in pixels/inch)                |
       +---------------------------+--------------------------------+
       | YResolution               | 100, 200**, 300, 400           |
       |                           | (must equal XResolution)       |
       +---------------------------+--------------------------------+
        
       +------------------------------------------------------------+
       | FillOrder**               | 1: most significant bit first  |
       |                           | 2: least significant bit first |
       +---------------------------+--------------------------------+
       | ImageDescription*         | {ASCII}: A string describing   |
       |                           | the contents of the image.     |
       +---------------------------+--------------------------------+
       | ImageWidth                | 864, 1024, 1216, 1728**, 2048  |
       |                           | 2432, 2592, 3072, 3456, 3648   |
       |                           | 4096, 4864                     |
       +---------------------------+--------------------------------+
       | ImageLength**             | n: total number of scanlines   |
       |                           | in image                       |
       +---------------------------+--------------------------------+
       | NewSubFileType**          | 2: Bit 1 identifies single page|
       |                           | of a multi-page document       |
       +---------------------------+--------------------------------+
       | Orientation               | 1**-8, Default 1               |
       +---------------------------+--------------------------------+
       | PhotometricInterpretation | 10**: ITULAB                   |
       +---------------------------+--------------------------------+
       | ResolutionUnit**          | 2: inch                        |
       |                           | 3: centimeter                  |
       +---------------------------+--------------------------------+
       | RowsPerStrip**            | n: number of scanlines per     |
       |                           | TIFF strip                     |
       +---------------------------+--------------------------------+
       | SamplesPerPixel           | 1**: L* (lightness)            |
       |                           | 3: LAB                         |
       +---------------------------+--------------------------------+
       | Software*                 | {ASCII}: name & release number |
       |                           | of creator software            |
       +---------------------------+--------------------------------+
       | StripByteCounts**         | <n>: number or bytes in        |
       |                           | TIFF strip                     |
       +---------------------------+--------------------------------+
       | StripOffsets**            | <n>: offset from beginning     |
       |                           | of file to each TIFF strip     |
       +---------------------------+--------------------------------+
       | XResolution               | 100, 200**, 300, 400 (written  |
       |                           | in pixels/inch)                |
       +---------------------------+--------------------------------+
       | YResolution               | 100, 200**, 300, 400           |
       |                           | (must equal XResolution)       |
       +---------------------------+--------------------------------+
        
       +---------------------------+--------------------------------+
       | Extension Fields                                           |
       +---------------------------+--------------------------------+
       | DocumentName*             | {ASCII}: name of scanned       |
       |                           | document                       |
       +---------------------------+--------------------------------+
       | PageNumber**              | n,m: page number followed by   |
       |                           | total page count               |
       +---------------------------+--------------------------------+
       | ChromaSubSampling         | (1,1), (2, 2)**                |
       |                           | (1, 1): equal numbers of       |
       |                           | lightness and chroma samples   |
       |                           | horizontally and vertically    |
       |                           | (2, 2): twice as many lightness|
       |                           | samples as chroma samples      |
       |                           | horizontally and vertically    |
       +---------------------------+--------------------------------+
       | ChromaPositioning         | 1**: centered                  |
       +---------------------------+--------------------------------+
       | New Fields                                                 |
       +---------------------------+--------------------------------+
       | Decode**                  | minL, maxL, mina, maxa, minb,  |
       |                           | maxb: minimum and maximum      |
       |                           | values for L*a*b*              |
       +---------------------------+--------------------------------+
       | GlobalParametersIFD*      | IFD: IFD containing            |
       |                           | global parameters              |
       +---------------------------+--------------------------------+
       | ProfileType*              | n: type of data stored in      |
       |                           | TIFF file                      |
       +---------------------------+--------------------------------+
       | FaxProfile*               | n: ITU-compatible fax mode     |
       +---------------------------+--------------------------------+
       | CodingMethods*            | n: compression algorithms      |
       |                           | used in file                   |
       +---------------------------+--------------------------------+
       | VersionYear*              | byte sequence: year of ITU std |
       +---------------------------+--------------------------------+
        
       +---------------------------+--------------------------------+
       | Extension Fields                                           |
       +---------------------------+--------------------------------+
       | DocumentName*             | {ASCII}: name of scanned       |
       |                           | document                       |
       +---------------------------+--------------------------------+
       | PageNumber**              | n,m: page number followed by   |
       |                           | total page count               |
       +---------------------------+--------------------------------+
       | ChromaSubSampling         | (1,1), (2, 2)**                |
       |                           | (1, 1): equal numbers of       |
       |                           | lightness and chroma samples   |
       |                           | horizontally and vertically    |
       |                           | (2, 2): twice as many lightness|
       |                           | samples as chroma samples      |
       |                           | horizontally and vertically    |
       +---------------------------+--------------------------------+
       | ChromaPositioning         | 1**: centered                  |
       +---------------------------+--------------------------------+
       | New Fields                                                 |
       +---------------------------+--------------------------------+
       | Decode**                  | minL, maxL, mina, maxa, minb,  |
       |                           | maxb: minimum and maximum      |
       |                           | values for L*a*b*              |
       +---------------------------+--------------------------------+
       | GlobalParametersIFD*      | IFD: IFD containing            |
       |                           | global parameters              |
       +---------------------------+--------------------------------+
       | ProfileType*              | n: type of data stored in      |
       |                           | TIFF file                      |
       +---------------------------+--------------------------------+
       | FaxProfile*               | n: ITU-compatible fax mode     |
       +---------------------------+--------------------------------+
       | CodingMethods*            | n: compression algorithms      |
       |                           | used in file                   |
       +---------------------------+--------------------------------+
       | VersionYear*              | byte sequence: year of ITU std |
       +---------------------------+--------------------------------+
        
7. Lossless Color Mode
7. 无损彩色模式

This section defines the lossless color mode or Profile L of TIFF for facsimile. Implementations of this profile are required to also implement Profiles S and C.

本节定义了传真用TIFF的无损颜色模式或配置文件L。此概要文件的实现也需要实现概要文件S和C。

7.1. Overview
7.1. 概述

This mode, defined in [T.43], uses JBIG to losslessly code three types of color and grayscale images: one bit per color CMY, CMYK and RGB images; a palettized (i.e. mapped) color image; and continuous tone color and grayscale images. The last two are multi-level and use the L*a*b* encoding specified in [T.42].

该模式在[T.43]中定义,使用JBIG对三种类型的彩色和灰度图像进行无损编码:每彩色CMY、CMYK和RGB图像一位;调色板化(即映射)彩色图像;以及连续色调和灰度图像。最后两个是多级的,使用[T.42]中指定的L*a*b*编码。

7.1.1. Color Encoding
7.1.1. 颜色编码

While under development, this mode was called T.Palette, as one of its major additions was palette or mapped color images. Baseline TIFF only allows RGB color maps, but ITU-T Rec. T.43 requires L*a*b* color maps, using the encoding specified in ITU-T Rec. T.42. Palette color images are expressed with indices (bits per sample) of 12 bits or less, or optionally 13 to 16 bits, per [T.43].

在开发过程中,这种模式被称为T.Palette,因为它的主要补充之一是调色板或映射的彩色图像。基线TIFF仅允许RGB颜色映射,但ITU-T Rec.T.43要求使用ITU-T Rec.T.42中指定的编码进行L*a*b*颜色映射。调色板颜色图像用12位或更少的索引(每个样本的位)表示,或根据[T.43]选择13到16位。

Enabling T.43 color maps in TIFF requires the extension field Indexed, defined in [TTN1], and the PhotometricInterpretation field value 10, defined in Section 6.2.1. The following table shows the corresponding PhotometricInterpretation, SamplesPerPixel, BitsPerSample and Indexed field values for the different T.43 image types.

在TIFF中启用T.43颜色贴图需要[TTN1]中定义的扩展字段索引,以及第6.2.1节中定义的光度测量解释字段值10。下表显示了不同T.43图像类型的相应光度测量解释、每像素采样、位采样和索引字段值。

       +----------------------------------------------------------+
       | Image Type |PhotometricIn| Samples  | Bits Per | Indexed |
       |            |-terpretation| PerPixel |  Sample  |         |
       |------------+-------------+----------+----------+---------|
       |     RGB    |    2=RGB    |     3    |    1     |    0    |
       +----------------------------------------------------------+
       |     CMY    |    5=CMYK   |     3    |    1     |    0    |
       +------------+-------------+----------+----------+---------+
       |     CMYK   |    5=CMYK   |     4    |    1     |    0    |
       +------------+-------------+----------+----------+---------+
       |   Palette  |  10=ITULAB  |     1    |    n     |    1    |
       +------------+-------------+----------+----------+---------+
       |  Grayscale |  10=ITULAB  |     1    |   8, 12  |    0    |
       +------------+-------------+----------+----------+---------+
       |    Color   |  10=ITULAB  |     3    |   8, 12  |    0    |
       +------------+-------------+----------+----------+---------+
        
       +----------------------------------------------------------+
       | Image Type |PhotometricIn| Samples  | Bits Per | Indexed |
       |            |-terpretation| PerPixel |  Sample  |         |
       |------------+-------------+----------+----------+---------|
       |     RGB    |    2=RGB    |     3    |    1     |    0    |
       +----------------------------------------------------------+
       |     CMY    |    5=CMYK   |     3    |    1     |    0    |
       +------------+-------------+----------+----------+---------+
       |     CMYK   |    5=CMYK   |     4    |    1     |    0    |
       +------------+-------------+----------+----------+---------+
       |   Palette  |  10=ITULAB  |     1    |    n     |    1    |
       +------------+-------------+----------+----------+---------+
       |  Grayscale |  10=ITULAB  |     1    |   8, 12  |    0    |
       +------------+-------------+----------+----------+---------+
       |    Color   |  10=ITULAB  |     3    |   8, 12  |    0    |
       +------------+-------------+----------+----------+---------+
        
7.1.2. JBIG Encoding
7.1.2. JBIG编码

T.43 uses the single-progression sequential mode of JBIG, defined in ITU-T Rec. T.82. To code multi-level images using JBIG, which is a bi-level compression method, an image is resolved into a set of bit-planes, and each bit-plane is then JBIG compressed. For continuous tone color and grayscale images, Gray code conversion is used. The

T.43使用JBIG的单级渐进顺序模式,定义见ITU-T Rec.T.82。为了使用JBIG(一种双层压缩方法)对多级图像进行编码,将图像分解为一组位平面,然后对每个位平面进行JBIG压缩。对于连续色调的彩色和灰度图像,使用格雷码转换。这个

Gray code conversion is part of the data stream encoding, and is therefore invisible to TIFF.

格雷码转换是数据流编码的一部分,因此TIFF不可见。

7.2. Required TIFF Fields
7.2. 必需的TIFF字段

This section lists the required fields, in addition to those in Section 2.2.1, and the values they must have to be compatible with ITU-T Rec. T.43.

除第2.2.1节中的字段外,本节还列出了所需字段以及这些字段必须与ITU-T Rec.T.43兼容的值。

7.2.1. Baseline Fields
7.2.1. 基线字段

ImageWidth(256). SHORT or LONG Same page widths as the base color mode; see Section 6.2.1.

图像宽度(256)。与基色模式相同的短或长页面宽度;见第6.2.1节。

NewSubFileType(254) = (Bit 1=1).                                    LONG
    RequiredByTIFFforFAX
    Bit 1 is 1 if the image is a single page of a multi-page document.
    Default = 0 (no subfile bits on, so may not be omitted for fax)
        
NewSubFileType(254) = (Bit 1=1).                                    LONG
    RequiredByTIFFforFAX
    Bit 1 is 1 if the image is a single page of a multi-page document.
    Default = 0 (no subfile bits on, so may not be omitted for fax)
        

BitsPerSample(258) = 1, 2-8, 9-16. SHORT Count = SamplesPerPixel RGB, CMY, CMYK: 1 bit per sample Continuous tone (L*a*b*): 2-8 bits per sample, 9-12 bits optional Palette color: 12 or fewer bits per sample, 13-16 bits optional Note: More than 8 bits per sample is not baseline TIFF.

位样本(258)=1,2-8,9-16。短计数=采样每像素RGB、CMY、CMYK:每采样1位连续色调(L*a*b*):每采样2-8位,9-12位可选调色板颜色:每采样12位或更少,13-16位可选注:每采样超过8位不是基线TIFF。

ColorMap(320). SHORT Count = 3 * number of sample values Lossless color fax mode supports palette-color (indexed) images where the single component value is used as an index into a full color lookup table stored in the ColorMap field. The sample value is encoded using the number of bits given by the BitsPerSample field value. However, per [T.43],the number of sample values may be less than 2**BitsPerSample. The color lookup table is only required to have as many entries as there are number of sample values. For palette-color images in lossless color fax mode, the ITULAB encoding with 8 or optionally 12 bits per color map value is supported. To utilize a color map, the TIFF Indexed field must be present. TIFF orders the color map values so that all the L* values come first, followed by all the a* values and then all the b* values. Because ITU-T Rec. T.43 specifies a "chunky" ordering with the L*a*b* components of the first value, followed by those of the second value, and so on, reproducing color map values from a fax data stream in a TIFF file requires reordering values.

彩色地图(320)。SHORT Count=3*采样值数量无损彩色传真模式支持调色板颜色(索引)图像,其中单个组件值用作存储在ColorMap字段中的全色查找表的索引。使用BitsPerSample字段值给出的位数对样本值进行编码。然而,根据[T.43],样本值的数量可能小于2**BitsPerSample。颜色查找表只需要具有与样本值数量相同的条目。对于处于无损彩色传真模式的调色板彩色图像,支持每个颜色映射值8位或可选12位的ITULAB编码。要使用颜色映射,必须存在TIFF索引字段。TIFF对颜色贴图值进行排序,使所有L*值排在第一位,然后是所有a*值,然后是所有b*值。由于ITU-T Rec.T.43规定了一种“粗块”排序,第一个值的L*a*b*分量紧跟第二个值的分量,依此类推,因此从TIFF文件中的传真数据流中再现彩色地图值需要对值进行重新排序。

Compression(259) = 10. SHORT 10: ITU-T Rec. T.43 representation, using ITU-T Rec. T.82 (JBIG) coding

压缩(259)=10。简短10:ITU-T Rec.T.43表示,使用ITU-T Rec.T.82(JBIG)编码

FillOrder(266) = 1 , 2. SHORT RequiredByTIFFBaseline Profile F readers must be able to read data in both bit orders, but the vast majority of facsimile products store data LSB first, exactly as it appears on the telephone line. 1 = Most Significant Bit first. 2 = Least Significant Bit first

填充顺序(266)=1,2。SHORT RequiredByTIFFBaseline Profile F读卡器必须能够以两种位顺序读取数据,但绝大多数传真产品首先存储数据LSB,与电话线上显示的数据完全相同。1=第一个最高有效位。2=最低有效位优先

PhotometricInterpretation(262) = 2, 5, 10. SHORT 2: RGB 5: CMYK, including CMY 10: ITULAB Image data may also be stored as palette color images, where pixel values are represented by a single component that is an index into a color map using the ITULAB encoding. This color map is specified by the ColorMap field. To use palette color images, set the PhotometricInterpretation to 10,SamplesPerPixel to 1, and Indexed to 1. The color map is stored in the ColorMap field. See Section 7.1.1 for further discussion on the color encoding.

测光解释(262)=2,5,10。SHORT 2:RGB 5:CMYK,包括CMY 10:ITULAB图像数据也可以存储为调色板颜色图像,其中像素值由单个组件表示,该组件是使用ITULAB编码的颜色映射的索引。此颜色映射由ColorMap字段指定。要使用调色板颜色图像,请将“光度测量解释”设置为10,将“SamplesPerPixel”设置为1,并将“索引”设置为1。颜色贴图存储在ColorMap字段中。有关颜色编码的进一步讨论,请参见第7.1.1节。

ResolutionUnit(296) = 2, 3.                                        SHORT
    The unit of measure for resolution. 2 = inch, 3 = centimeter;
    Default = 2 (field may be omitted if this is the value)
        
ResolutionUnit(296) = 2, 3.                                        SHORT
    The unit of measure for resolution. 2 = inch, 3 = centimeter;
    Default = 2 (field may be omitted if this is the value)
        

SamplesPerPixel(277) = 1, 3, 4. SHORT 1: Palette color image, or L*-only if Indexed = 0 and PhotometricInterpretation is 10 (ITULAB). 3: RGB, or L*a*b*, or CMY if PhotometricInterpretation is 5 (CMYK). 4: CMYK.

每像素采样数(277)=1,3,4。短1:调色板颜色图像,或L*-仅当索引=0且光度测量解释为10时(ITULAB)。3:RGB,或L*a*b*,或CMY,如果光度测量解释为5(CMYK)。4:CMYK。

XResolution(282) = 100, 200, 300, 400. RATIONAL YResolution(283) = 100, 200, 300, 400. RATIONAL The resolution of the image is expressed in pixels per resolution unit. In pixels per inch, allowed XResolution values are: 100, 200, 300, and 400. The lossless color fax mode requires the pixels to be square, hence YResolution must equal XResolution. Base resolution is 200 pixels per inch. See Section 2.2.2 for inch-metric equivalency.

分辨率(282)=100200300400。合理的YResolution(283)=100200300400。RATIONAL图像的分辨率以每分辨率单位的像素表示。以每英寸像素为单位,允许的X分辨率值为:100、200、300和400。无损彩色传真模式要求像素为正方形,因此Y分辨率必须等于X分辨率。基本分辨率为每英寸200像素。英寸公制等效性见第2.2.2节。

7.2.2. Extension Fields
7.2.2. 扩展字段

Indexed(364) = 0, 1. SHORT 0: not a palette-color image 1: palette-color image This field is used to indicate that each sample value is an index into an array of color values specified in the ColorMap field. Lossless color fax mode supports palette-color images with the ITULAB encoding. The SamplesPerPixel value must be 1.

索引(364)=0,1。短0:不是调色板颜色图像1:调色板颜色图像此字段用于指示每个采样值都是ColorMap字段中指定的颜色值数组的索引。无损彩色传真模式支持使用ITULAB编码的调色板彩色图像。SamplesPerPixel值必须为1。

7.2.3. New Fields
7.2.3. 新领域

Decode(433) SRATIONAL Decode is used in connection with the ITULAB encoding of image data and color map values; see Section 6.2.3.

解码(433)SRATIONAL Decode与图像数据和彩色地图值的ITULAB编码结合使用;见第6.2.3节。

7.3. Recommended TIFF Fields
7.3. 推荐的TIFF字段

See Sections 2.2.3. and 2.2.4.

见第2.2.3节。和2.2.4。

7.4. Lossless Color Fax Mode Summary
7.4. 无损彩色传真模式概述

Recommended fields are shown with an asterisk *.

推荐字段以星号*显示。

        +--------------------+--------------------------------------+
        |   Baseline Fields  |             Values                   |
        +--------------------+--------------------------------------+
        | BitsPerSample      | 1: Binary RGB, CMY(K)                |
        |                    | 8: 8 bits per color sample           |
        |                    | 9-16: optional                       |
        +--------------------+--------------------------------------+
        | ColorMap           | n: LAB color map                     |
        +--------------------+--------------------------------------+
        | Compression        | 10: JBIG, per T.43                   |
        +--------------------+--------------------------------------+
        | DateTime*          | {ASCII}:  date/time in the 24-hour   |
        |                    | format "YYYY:MM:DD HH:MM:SS"         |
        +--------------------+--------------------------------------+
        | FillOrder**        | 1: Most significant bit first        |
        |                    | 2: Least significant bit first       |
        +--------------------+--------------------------------------+
        | ImageDescription*  | {ASCII}: A string describing the     |
        |                    | contents of the image.               |
        +--------------------+--------------------------------------+
        | ImageWidth         | 864, 1024, 1216, 1728**, 2048, 2432, |
        |                    | 2592, 3072, 3456, 3648, 4096, 4864   |
        +--------------------+--------------------------------------+
        | ImageLength**      | n: total number of scanlines in image|
        +--------------------+--------------------------------------+
        | NewSubFileType     | 2: Bit 1 identifies single page of a |
        |                    | multi-page document                  |
        +--------------------+--------------------------------------+
        | Orientation        | 1**-8, Default 1                     |
        +--------------------+--------------------------------------+
        | PhotometricInter-  | 2: RGB                               |
        | pretation          | 5: CMYK                              |
        |                    | 10: ITULAB                           |
        +--------------------+--------------------------------------+
        
        +--------------------+--------------------------------------+
        |   Baseline Fields  |             Values                   |
        +--------------------+--------------------------------------+
        | BitsPerSample      | 1: Binary RGB, CMY(K)                |
        |                    | 8: 8 bits per color sample           |
        |                    | 9-16: optional                       |
        +--------------------+--------------------------------------+
        | ColorMap           | n: LAB color map                     |
        +--------------------+--------------------------------------+
        | Compression        | 10: JBIG, per T.43                   |
        +--------------------+--------------------------------------+
        | DateTime*          | {ASCII}:  date/time in the 24-hour   |
        |                    | format "YYYY:MM:DD HH:MM:SS"         |
        +--------------------+--------------------------------------+
        | FillOrder**        | 1: Most significant bit first        |
        |                    | 2: Least significant bit first       |
        +--------------------+--------------------------------------+
        | ImageDescription*  | {ASCII}: A string describing the     |
        |                    | contents of the image.               |
        +--------------------+--------------------------------------+
        | ImageWidth         | 864, 1024, 1216, 1728**, 2048, 2432, |
        |                    | 2592, 3072, 3456, 3648, 4096, 4864   |
        +--------------------+--------------------------------------+
        | ImageLength**      | n: total number of scanlines in image|
        +--------------------+--------------------------------------+
        | NewSubFileType     | 2: Bit 1 identifies single page of a |
        |                    | multi-page document                  |
        +--------------------+--------------------------------------+
        | Orientation        | 1**-8, Default 1                     |
        +--------------------+--------------------------------------+
        | PhotometricInter-  | 2: RGB                               |
        | pretation          | 5: CMYK                              |
        |                    | 10: ITULAB                           |
        +--------------------+--------------------------------------+
        
        +--------------------+--------------------------------------+
        | ResolutionUnit     | 2: inch                              |
        |                    | 3: centimeter                        |
        +--------------------+--------------------------------------+
        | RowsPerStrip       | n: number of scanlines per TIFF strip|
        +--------------------+--------------------------------------+
        | SamplesPerPixel    | 1: L* (lightness)                    |
        |                    | 3: LAB, RGB, CMY                     |
        |                    | 4: CMYK                              |
        +--------------------+--------------------------------------+
        | Software*          | {ASCII}: name & release number of    |
        |                    | creator software                     |
        +--------------------+--------------------------------------+
        | StripByteCounts    | <n>: number or bytes in TIFF strip   |
        +--------------------+--------------------------------------+
        | StripOffsets       | <n>: offset from beginning of file to|
        |                    | each TIFF strip                      |
        +--------------------+--------------------------------------+
        | XResolution        | 100, 200, 300, 400 (written in       |
        |                    | pixels/inch)                         |
        +--------------------+--------------------------------------+
        | YResolution        | equal to XResolution (pixels must be |
        |                    | square)                              |
        +--------------------+--------------------------------------+
        | Extension Fields                                          |
        +--------------------+--------------------------------------+
        | DocumentName*      | {ASCII}: name of scanned document    |
        +--------------------+--------------------------------------+
        | PageNumber         | n,m: page number followed by total   |
        |                    | page count                           |
        +--------------------+--------------------------------------+
        | Indexed            | 0: not a palette-color image         |
        |                    | 1: palette-color image               |
        +--------------------+--------------------------------------+
        | New Fields                                                |
        +--------------------+--------------------------------------|
        | Decode             | minL, maxL, mina, maxa, minb, maxb:  |
        |                    |minimum and maximum values for L*a*b* |
        +--------------------+--------------------------------------+
        | GlobalParameters   | IFD: global parameters IFD           |
        | IFD*               |                                      |
        +-----------------------------------------------------------+
        
        +--------------------+--------------------------------------+
        | ResolutionUnit     | 2: inch                              |
        |                    | 3: centimeter                        |
        +--------------------+--------------------------------------+
        | RowsPerStrip       | n: number of scanlines per TIFF strip|
        +--------------------+--------------------------------------+
        | SamplesPerPixel    | 1: L* (lightness)                    |
        |                    | 3: LAB, RGB, CMY                     |
        |                    | 4: CMYK                              |
        +--------------------+--------------------------------------+
        | Software*          | {ASCII}: name & release number of    |
        |                    | creator software                     |
        +--------------------+--------------------------------------+
        | StripByteCounts    | <n>: number or bytes in TIFF strip   |
        +--------------------+--------------------------------------+
        | StripOffsets       | <n>: offset from beginning of file to|
        |                    | each TIFF strip                      |
        +--------------------+--------------------------------------+
        | XResolution        | 100, 200, 300, 400 (written in       |
        |                    | pixels/inch)                         |
        +--------------------+--------------------------------------+
        | YResolution        | equal to XResolution (pixels must be |
        |                    | square)                              |
        +--------------------+--------------------------------------+
        | Extension Fields                                          |
        +--------------------+--------------------------------------+
        | DocumentName*      | {ASCII}: name of scanned document    |
        +--------------------+--------------------------------------+
        | PageNumber         | n,m: page number followed by total   |
        |                    | page count                           |
        +--------------------+--------------------------------------+
        | Indexed            | 0: not a palette-color image         |
        |                    | 1: palette-color image               |
        +--------------------+--------------------------------------+
        | New Fields                                                |
        +--------------------+--------------------------------------|
        | Decode             | minL, maxL, mina, maxa, minb, maxb:  |
        |                    |minimum and maximum values for L*a*b* |
        +--------------------+--------------------------------------+
        | GlobalParameters   | IFD: global parameters IFD           |
        | IFD*               |                                      |
        +-----------------------------------------------------------+
        
        +--------------------+--------------------------------------+
        | ProfileType*       | n: type of data stored in TIFF file  |
        +--------------------+--------------------------------------+
        | FaxProfile*        | n: ITU-compatible fax mode           |
        +--------------------+--------------------------------------+
        | CodingMethods*     | n:compression algorithms used in     |
        |                    | file                                 |
        +--------------------+--------------------------------------+
        | VersionYear*       | byte sequence: year of ITU fax std   |
        +--------------------+--------------------------------------+
        
        +--------------------+--------------------------------------+
        | ProfileType*       | n: type of data stored in TIFF file  |
        +--------------------+--------------------------------------+
        | FaxProfile*        | n: ITU-compatible fax mode           |
        +--------------------+--------------------------------------+
        | CodingMethods*     | n:compression algorithms used in     |
        |                    | file                                 |
        +--------------------+--------------------------------------+
        | VersionYear*       | byte sequence: year of ITU fax std   |
        +--------------------+--------------------------------------+
        
8. Mixed Raster Content Mode
8. 混合光栅内容模式

This section defines the Mixed Raster Content mode or Profile M of TIFF for facsimile. Implementations of this profile are required to implement Profiles S and C, and may optionally implement Profiles F, J and L.

本节定义了传真TIFF的混合光栅内容模式或配置文件M。实现概要文件S和C需要此概要文件的实现,并且可以选择实现概要文件F、J和L。

8.1. Overview
8.1. 概述

Unlike previous fax modes, which use a single coding method and spatial resolution for an entire fax page, the Mixed Raster Content mode [T.44] enables different coding methods and resolutions within a single page. For example, consider a page that contains black-and-white text, which is best coded with MMR or JBIG, a color bar chart, best coded with JBIG, and a scanned color image, best coded with JPEG. Similarly, while spatial resolution of 400 pixels per inch may be best for the black-and- white text, 200 pixel per inch is usually sufficient for a color image.

与以前的传真模式不同,以前的传真模式对整个传真页面使用单一编码方法和空间分辨率,混合光栅内容模式[T.44]在单个页面中启用不同的编码方法和分辨率。例如,考虑一个包含黑白文本的页面,该页面最好用MMR或JBIG编码,一个彩色条形图,最好用JBIG编码,一个扫描的彩色图像,最好用JPEG编码。类似地,虽然对于黑白文本而言,每英寸400像素的空间分辨率可能是最好的,但对于彩色图像而言,每英寸200像素通常就足够了。

Rather than applying one coding method and resolution to all elements, MRC allows multiple coders and resolutions within a page. By itself, MRC does not define any new coding methods or resolutions. Instead it defines a 3-layer image model for structuring and combining the scanned image data. The MRC 3-layer model has been applied here using the TIFF format to yield a data structure which differs from [T.44] though it applies the same coding methods, uses the same compressed image data stream and is consistent with the TIFF principle of a single IFD per image.

MRC允许在一个页面中使用多个编码器和分辨率,而不是对所有元素应用一种编码方法和分辨率。MRC本身并不定义任何新的编码方法或分辨率。相反,它定义了一个用于构造和组合扫描图像数据的3层图像模型。MRC三层模型在这里使用TIFF格式,以产生不同于[T.44]的数据结构,尽管它采用相同的编码方法,使用相同的压缩图像数据流,并且符合TIFF原则,即每个图像使用一个IFD。

8.1.1. MRC 3-layer model
8.1.1. MRC三层模型

The 3 layers of the MRC model are Foreground and Background, which are both multi-level, and Mask, which is bi-level. Each layer may appear only once on a page and is coded independently of the other two. In our earlier example, the black-and-white text could be in the Mask layer, the color chart in the Foreground layer, and the color image in the Background layer.

MRC模型的三层是前景和背景,它们都是多级的,而遮罩是双层的。每一层在一页上只能出现一次,并且独立于其他两层进行编码。在我们前面的示例中,黑白文本可以在遮罩层中,彩色图表可以在前景层中,彩色图像可以在背景层中。

Each layer is an image and, when present, is represented by at least one IFD in a TIFF file. This is consistent with TIFF, which provides fields to define the attributes, such as resolution, image size, bits per sample, etc., of a single image or layer. The distribution of content among layers is determined by the writer, as is the choice of coding method, color encoding and spatial resolution for a layer.

每个层都是一个图像,当存在时,由TIFF文件中的至少一个IFD表示。这与TIFF一致,TIFF提供字段来定义单个图像或层的属性,例如分辨率、图像大小、每个采样位数等。层之间内容的分布由作者决定,层的编码方法、颜色编码和空间分辨率的选择也是如此。

The final image is obtained by using the Mask layer to select pixels from the other two layers. When the Mask layer pixel value is 1, the corresponding pixel from the Foreground layer is selected; when it is 0, the corresponding pixel from the Background layer is selected. Details are given in the Introduction of [T.44].

通过使用遮罩层从其他两层中选择像素来获得最终图像。当遮罩层像素值为1时,选择来自前景层的对应像素;当它为0时,将选择背景层中相应的像素。详情见[T.44]导言。

Not all pages, and not all parts of a page, require 3 layers. If there is only one layer present, then that layer is the primary image or IFD. If there is more than one layer, then the Mask must be one of the layers, in which case it is the primary image and it must be page size.

并非所有页面以及页面的所有部分都需要3层。如果只存在一个层,则该层是主图像或IFD。如果有多个图层,则遮罩必须是其中一个图层,在这种情况下,它是主图像,并且必须是页面大小。

MRC allows a page to be split into strips, with a variable number of scanlines in a strip. A strip can have 1, 2 or 3 layers. A single, stripped layer may be stored as a single, stripped image in an IFD, e.g., all strips associated with the Background layer may be treated as a single image. Alternatively, each strip associated with a layer may be stored as a separate image or IFD, e.g., the Background layer can be composed of several images that are offset vertically with respect to the page. In this case, there can be no overlap between images associated with a single layer. According to [T.4] Annex G, strips having more than 1 layer SHOULD NOT be more than 256 lines in length unless the capability to receive longer strips has been negotiated.

MRC允许将页面拆分为条带,条带中的扫描线数量可变。条带可以有1层、2层或3层。单个剥离层可作为单个剥离图像存储在IFD中,例如,与背景层相关联的所有剥离可被视为单个图像。或者,与层相关联的每个条带可以存储为单独的图像或IFD,例如,背景层可以由相对于页面垂直偏移的多个图像组成。在这种情况下,与单个层关联的图像之间不能有重叠。根据[T.4]附录G,超过1层的板条长度不应超过256行,除非已商定接收更长板条的能力。

Furthermore, color fax also requires the spatial resolutions of Background and Foreground images to be legal fax values that are also integer factors of the Mask image resolution. For example, if the Mask Layer resolution is 400 pixels per inch, then allowed resolutions for the Foreground and Background layers are 100, 200 or 400 pixels per inch; if the Mask is at 300 pixels per inch, then allowed values are 100 and 300. The Foreground and Background layer resolutions can be independently set.

此外,彩色传真还要求背景和前景图像的空间分辨率为合法传真值,该值也是掩模图像分辨率的整数因子。例如,如果遮罩层分辨率为每英寸400像素,则前景层和背景层的允许分辨率为每英寸100、200或400像素;如果遮罩为每英寸300像素,则允许的值为100和300。前景层和背景层分辨率可以独立设置。

8.1.2. A TIFF Representation for the MRC 3-layer model
8.1.2. MRC三层模型的TIFF表示法

In the TIFF representation of the 3-layer MRC model, each page is represented by a single IFD, called the Primary IFD, that represents the Mask layer (unless the Foreground or Background is the single layer present), and a set of child IFDs that are referenced through the SubIFDs extension field [TTN1]. To distinguish MRC-specific

在三层MRC模型的TIFF表示中,每个页面由一个称为主IFD的IFD表示,该IFD表示遮罩层(除非前景或背景是存在的单层),以及一组通过子IFD扩展字段[TTN1]引用的子IFD。区分MRC的特异性

SubIFDs from other SubIFDs, the NewSubFileType field MUST have Bit 4 ON, indicating an MRC-related IFD. A new ImageLayer field is also introduced that consists of two values that identify the layer (Foreground, Background, or Mask) and the order within the layer (first, second, ... image of the layer); see Section 8.2.3.

从其他子IFD中,NewSubFileType字段的第4位必须为ON,表示与MRC相关的IFD。还引入了一个新的ImageLayer字段,该字段由两个值组成,这两个值标识层(前景、背景或遮罩)和层内的顺序(层的第一、第二、…图像);见第8.2.3节。

Because MRC allows strips with variable numbers of scanlines, a reader MUST support StripRowCounts field because a writer may use it in place of the RowsPerStrip field in this mode. The StripRowCounts field allows each layer, with a variable number of scanlines in each strip, to be represented by a single IFD, when the coding parameters are the same for all strips in the layer. The MRC standard [T.44] allows the Foreground and Background layers to have strips with different coding parameters. In this case, a separate IFD is required to represent the strips which use different coding parameters; see text in next paragraph. In all cases, the Mask layer is required to be represented by a single IFD and a single set of coding parameters.

因为MRC允许扫描线数量可变的条带,所以读卡器必须支持StripRowCounts字段,因为写入器在此模式下可以使用它来代替RowsPerStrip字段。当层中所有条带的编码参数相同时,StripRowCounts字段允许每个条带中扫描线数量可变的层由单个IFD表示。MRC标准[T.44]允许前景层和背景层具有具有不同编码参数的条带。在这种情况下,需要一个单独的IFD来表示使用不同编码参数的条带;见下一段的案文。在所有情况下,掩模层都需要由一个IFD和一组编码参数表示。

The use of SubIFDs to store child IFDs is described in [TTN1]. An example is shown graphically below. The Primary IFD associated with page 1 (PrimaryIFD 0) points to page 2 (PrimaryIFD 1) with the nextIFD offset. The Primary IFD, corresponding to the Mask layer (ImageLayer=[2,1]), contains a SubIFDs field that points to a list of child IFDs. The first child IFD represents one image of the Background layer, i.e., ImageLayer=[1,1]. This child IFD points to the second child IFD via the nextIFD offset. This child represents the second Background layer image, ImageLayer=[1,2]. Finally, the second child points to the third child, which corresponds to the single Foreground layer image, ImageLayer=[3,1]. The next IFD offset associated with this Foreground image is 0, indicating no more child IFDs exist. Each primary IFD has the NewSubFileType set to 18, indicating the IFD is MRC-specific (bit 4) and that it is a single page of a multi-page document (bit 1). Each child IFD has the NewSubFileType set to 16, indicating the IFD is MRC-specific. The 'V' character should be read as a down-pointing arrow.

[TTN1]中描述了使用子IFD存储子IFD。下面以图形方式显示了一个示例。与第1页(PrimaryIFD 0)关联的主IFD指向第2页(PrimaryIFD 1),并带有nextIFD偏移量。与遮罩层(ImageLayer=[2,1])相对应的主IFD包含指向子IFD列表的子IFD字段。第一个子IFD表示背景层的一个图像,即ImageLayer=[1,1]。此子IFD通过nextIFD偏移量指向第二个子IFD。此子级表示第二个背景层图像,ImageLayer=[1,2]。最后,第二个子对象指向第三个子对象,它对应于单个前景层图像ImageLayer=[3,1]。与此前景图像关联的下一个IFD偏移量为0,表示不再存在子IFD。每个主IFD的NewSubFileType设置为18,表示IFD是MRC特定的(位4),并且是多页文档的单页(位1)。每个子IFD的NewSubFileType设置为16,表示IFD是MRC特定的。“V”字符应理解为向下箭头。

                       (nextIFD)
       PRIMARY IFD 0  ------------> PRIMARY IFD 1--> ...
           ImageLayer = [2,1]
           NewSubFileType = 18
           SubIFDs
                |
                V
             Child IFD
                ImageLayer = [1,1]
                NewSubFileType = 16
                |
                |(nextIFD)
        
                       (nextIFD)
       PRIMARY IFD 0  ------------> PRIMARY IFD 1--> ...
           ImageLayer = [2,1]
           NewSubFileType = 18
           SubIFDs
                |
                V
             Child IFD
                ImageLayer = [1,1]
                NewSubFileType = 16
                |
                |(nextIFD)
        
                |
                V
             Child IFD
                ImageLayer = [1,2]
                NewSubFileType = 16
                |
                |(nextIFD)
                |
                V
             Child IFD
                ImageLayer = [3,1]
                NewSubFileType = 16
                |
                |(nextIFD)
                V
                0
        
                |
                V
             Child IFD
                ImageLayer = [1,2]
                NewSubFileType = 16
                |
                |(nextIFD)
                |
                V
             Child IFD
                ImageLayer = [3,1]
                NewSubFileType = 16
                |
                |(nextIFD)
                V
                0
        

In the example above, the SubIFDs field of the Primary IFD points to the first IFD in a list of child IFDs. TIFF allows the SubIFDs field to point to an array of IFDs, each of which can be the first of a list of IFDs. An MRC-enabled TIFF reader must scan all available child IFDs to locate and identify IFDs associated with MRC layers.

在上面的示例中,主IFD的SubIFD字段指向子IFD列表中的第一个IFD。TIFF允许子IFD字段指向IFD数组,每个IFD都可以是IFD列表的第一个。启用MRC的TIFF阅读器必须扫描所有可用的子IFD,以定位和识别与MRC层相关的IFD。

In the case where the Background or Foreground layers are described with multiple IFDs, the XPosition and YPosition TIFF fields specify the offset to the upper-left corner of the IFD with respect to the Mask layer; see Section 8.2.2. When there is only a single layer (Mask, Foreground, or Background), it is stored as the Primary IFD.

在使用多个IFD描述背景或前景层的情况下,XPosition和YPosition TIFF字段指定相对于遮罩层到IFD左上角的偏移;见第8.2.2节。当只有一个图层(遮罩、前景或背景)时,它将作为主IFD存储。

8.2. Required TIFF Fields
8.2. 必需的TIFF字段

This section describes the TIFF fields required, in addition to those in Section 2.2.1, to represent MRC mode fax images. Since MRC mode stores fax data as a collection of images corresponding to layers or parts of layers, the coding methods, color encodings and spatial resolutions used by previous modes apply to MRC. Therefore, the descriptions here will typically reference the appropriate earlier section. Fields and values specific to MRC mode are pointed out.

除第2.2.1节中的字段外,本节还描述了表示MRC模式传真图像所需的TIFF字段。由于MRC模式将传真数据存储为对应于层或层的一部分的图像集合,因此先前模式使用的编码方法、颜色编码和空间分辨率适用于MRC。因此,这里的描述通常会参考前面的相应部分。指出了特定于MRC模式的字段和值。

8.2.1. Baseline Fields
8.2.1. 基线字段

ImageWidth(256). SHORT or LONG Same page widths as the base color mode; see Section 6.2.1. In the MRC mode, the width of a Foreground or Background image in the coded data stream may be less than the page width. In this case, the image width in the coded data steam is used to interpret the coded data, and the value of this field is used as the page width.

图像宽度(256)。与基色模式相同的短或长页面宽度;见第6.2.1节。在MRC模式中,编码数据流中的前景或背景图像的宽度可以小于页面宽度。在这种情况下,编码数据流中的图像宽度用于解释编码数据,并且该字段的值用作页面宽度。

NewSubFileType(254) = 16, 18. LONG For MRC fax mode, the NewSubFileType field has two bits that are required. Bit 1 indicates a single page of a multi-page document and must be set for the Primary IFD; Bit 4 indicates MRC imaging model as described in ITU-T Recommendation T.44 [T.44], and must be set for Primary IFDs and all MRC-specific child IFDs.

新闻子文件类型(254)=16,18。对于MRC传真模式,NewSubFileType字段有两个必需的位。位1表示多页文档的单页,必须为主IFD设置;位4表示ITU-T建议T.44[T.44]中所述的MRC成像模型,并且必须为主IFD和所有MRC特定子IFD设置。

BitsPerSample(258) = 1, 2-8, 9-16                                  SHORT
Compression(259) = 3, 4, 7, 9, 10.                                 SHORT
SamplesPerPixel(277) = 1, 3, 4.                                    SHORT
        
BitsPerSample(258) = 1, 2-8, 9-16                                  SHORT
Compression(259) = 3, 4, 7, 9, 10.                                 SHORT
SamplesPerPixel(277) = 1, 3, 4.                                    SHORT
        

FillOrder(266) = 1 , 2. SHORT RequiredByTIFFBaseline Profile F readers must be able to read data in both bit orders, but the vast majority of facsimile products store data LSB first, exactly as it appears on the telephone line. 1 = Most Significant Bit first. 2 = Least Significant Bit first

填充顺序(266)=1,2。SHORT RequiredByTIFFBaseline Profile F读卡器必须能够以两种位顺序读取数据,但绝大多数传真产品首先存储数据LSB,与电话线上显示的数据完全相同。1=第一个最高有效位。2=最低有效位优先

ResolutionUnit(296) = 2, 3. SHORT PhotometricInterpretation(262) = 0, 1, 2, 5, 10. SHORT For Mask layer, see Sections 4.2.1 and 5.2.1. For Foreground and Background layers, see Sections 6.2.1 and 7.2.1.

分辨率单位(296)=2,3。短光度解释(262)=0,1,2,5,10。屏蔽层的简称,见第4.2.1节和第5.2.1节。有关前景层和背景层,请参见第6.2.1节和第7.2.1节。

ColorMap(320). SHORT Count = 3 * (2**BitsPerSample) Used when Foreground or Background layer is a palette-color image; see Section 7.2.1.

彩色地图(320)。短计数=3*(2**BitsPerSample),当前景或背景层是调色板颜色图像时使用;见第7.2.1节。

XResolution(282) = 100, 200, 300, 400. RATIONAL YResolution(283) = 100, 200, 300, 400. RATIONAL The resolution of the image is expressed in pixels per resolution unit. In pixels per inch, allowed XResolution values for all layers are: 100, 200, 300, and 400. MRC color fax mode requires the pixels to be square, hence YResolution must equal XResolution for all layers. The resolution of Background and Foreground layers must each be an integer factor of the Primary image, which is the Mask layer, when it is present; see Section 8.4. See Section 2.2.2 for inch-metric equivalency.

分辨率(282)=100200300400。合理的YResolution(283)=100200300400。RATIONAL图像的分辨率以每分辨率单位的像素表示。以每英寸像素为单位,所有层允许的X分辨率值为:100、200、300和400。MRC彩色传真模式要求像素为正方形,因此Y分辨率必须等于所有层的X分辨率。背景层和前景层的分辨率都必须是主图像(即遮罩层)的整数因子;见第8.4节。英寸公制等效性见第2.2.2节。

8.2.2. Extension Fields
8.2.2. 扩展字段

ChromaSubSampling(530). SHORT ChromaPositioning(531). SHORT For Foreground and Background layers, see Section 6.2.2.

色度采样(530)。短色定位(531)。前景层和背景层的简称,见第6.2.2节。

Indexed(346) = 0, 1. SHORT For Foreground and Background layers: 1 indicates a palette-color image, see Section 7.2.2.

索引(346)=0,1。前景层和背景层的缩写:1表示调色板颜色图像,请参见第7.2.2节。

T4Options(292) = 0, 1, 4, 5. SHORT T6Options(293) = 0. SHORT For Mask layer, see Section 4.2.2.

T4选项(292)=0,1,4,5。短T6选项(293)=0。屏蔽层的简称,见第4.2.2节。

SubIFDs(330). IFD Count = number of child IFDs Each value is an offset from the beginning of the TIFF file to a child IFD [TTN1].

SubIFDs(330)。IFD Count=子IFD数每个值是从TIFF文件开始到子IFD的偏移量[TTN1]。

XPosition(286). RATIONAL YPosition(287). RATIONAL Specifies the horizontal and vertical offsets of the top-left of the IFD from the top-left of the Primary IFD in page resolution units. For example, if the Primary IFD is at 400 pixels per inch, and a foreground layer IFD is at 200 pixels per inch and located at pixel coordinate (345, 678) with respect to the Primary IFD, the XPosition value is 345/400 and the YPosition value is 678/400. Color fax does not currently allow overlap of any component images within a single layer. Default values for XPosition and YPosition are 0.

XPosition(286)。合理位置(287)。RATIONAL以页面分辨率单位指定IFD左上角与主IFD左上角的水平和垂直偏移。例如,如果主IFD为每英寸400像素,前景层IFD为每英寸200像素,并且位于相对于主IFD的像素坐标(345678),则XPosition值为345/400,YPosition值为678/400。彩色传真目前不允许在单个层中重叠任何组件图像。XPosition和YPosition的默认值为0。

8.2.3. New Fields
8.2.3. 新领域

Decode(433). SRATIONAL For Foreground and Background layers, see Section 6.2.3.

解码(433)。有关前景层和背景层,请参见第6.2.3节。

DefaultImageColor(434). SHORT Count = SamplesPerPixel In areas where no image data is available, a default color is needed to specify the color value. If the StripByteCounts value for a strip is 0, then the color for that strip must be defined by a default image color.

DefaultImageColor(434)。SHORT Count=samplesperpoixel在没有图像数据的区域,需要使用默认颜色来指定颜色值。如果条带的StripByteCounts值为0,则该条带的颜色必须由默认图像颜色定义。

The DefaultImageColor field uses the same encoding as the image data, and its value is therefore interpreted using the PhotometricInterpretation, SamplesPerPixel, BitsPerSample, and Indexed fields. If the fax data stream requires a different encoding, then transferring the default color value between a TIFF file and fax data stream requires a color conversion. For the Foreground layer image, the default value for the DefaultImageColor field is black. For other cases, including the Background layer image, the default value is white.

DefaultImageColor字段使用与图像数据相同的编码,因此它的值将使用PhotometricInterpretation、SamplesPerPixel、BitsPerSample和Indexed字段进行解释。如果传真数据流需要不同的编码,则在TIFF文件和传真数据流之间传输默认颜色值需要进行颜色转换。对于前景层图像,DefaultImageColor字段的默认值为黑色。对于其他情况,包括背景层图像,默认值为白色。

StripRowCounts(559). LONG Count = number of strips The number of scanlines stored in a strip. MRC allows each fax strip to store a different number of scanlines. For strips with more than one layer there is a maximum strip size of 256 scanlines or full page size. The 256 maximum SHOULD be used unless the capability to receive longer strips has been negotiated. This field replaces RowsPerStrip for IFDs with variable-sized strips. Only one of the two fields, StripRowCounts and RowsPerStrip, may be used in an IFD.

StripRowCounts(559)。LONG Count=条带数条带中存储的扫描线数。MRC允许每个传真条存储不同数量的扫描线。对于具有多个层的条带,最大条带大小为256条扫描线或整页大小。除非已商定接收更长条带的能力,否则应使用最大256条。此字段将IFD的RowsPerStrip替换为可变大小的条带。IFD中只能使用两个字段中的一个,即StripRowCounts和RowsPerStrip。

ImageLayer (34732). SHORT or LONG. Count = 2 Image layers are defined such that layer 1 is the Background layer, layer 3 is the Foreground layer, and layer 2 is the Mask layer, which selects pixels from the Background and Foreground layers. The ImageLayer tag contains two values, describing the layer to which the image belongs and the order in which it is imaged.

ImageLayer(34732)。短或长。Count=2定义图像层,使层1为背景层,层3为前景层,层2为遮罩层,从背景层和前景层中选择像素。ImageLayer标记包含两个值,描述图像所属的层及其成像顺序。

ImageLayer[0] = 1, 2, 3. 1: Image is a Background image, i.e., the image that will appear whenever the Mask contains a value of 0. Background images typically contain low-resolution, continuous-tone imagery. 2: Image is the Mask layer. In MRC, if the Mask layer is present, it must be the Primary IFD and be full page in extent (no gaps.) 3: Image is a Foreground image, i.e., the image that will appear whenever the Mask contains a value of 1. The Foreground image generally defines the color of text or lines, but may also contain high-resolution imagery.

ImageLayer[0]=1,2,3。1:图像是背景图像,即当遮罩包含值0时将出现的图像。背景图像通常包含低分辨率、连续色调图像。2:图像是遮罩层。在MRC中,如果存在遮罩层,则它必须是主IFD,并且在范围内为整页(无间隙)。3:图像是前景图像,即每当遮罩包含值1时将出现的图像。前景图像通常定义文本或线条的颜色,但也可能包含高分辨率图像。

ImageLayer[1]: 1: first image to be imaged in this layer, 2: second image to be imaged in this layer, 3: ...

ImageLayer[1]:1:此层中要成像的第一个图像,2:此层中要成像的第二个图像,3:。。。

Value describing the image order. In MRC, this may be considered the strip number. Since MRC mode currently does not allow overlap between images within a layer, the order value does not have any visual effect.

描述图像顺序的值。在MRC中,可将其视为带钢编号。由于MRC模式当前不允许层内图像之间的重叠,因此“顺序”值没有任何视觉效果。

In MRC fax mode, it is possible that only a single layer is transmitted. For example, if a page contains only a single continuous-tone photograph, then only the Background layer may be transmitted. In this case, the Background layer will be stored as the Primary IFD. ImageLayer[0] will be 1 indicating Background; ImageLayer[1] will be 1 since there can be no other IFDs associated with that layer. No Mask layer will exist.

在MRC传真模式下,可能仅传输一层。例如,如果页面仅包含单幅连续色调照片,则只能传输背景层。在这种情况下,背景层将作为主IFD存储。ImageLayer[0]将是1,表示背景;ImageLayer[1]将为1,因为不能有与该层关联的其他IFD。不存在遮罩层。

8.3. Recommended TIFF Fields
8.3. 推荐的TIFF字段

See Sections 2.2.3. and 2.2.4.

见第2.2.3节。和2.2.4。

8.4. Rules and Requirements for Images
8.4. 图像的规则和要求

The MRC mode defines a fundamental set of rules for images in the 3- layer representation.

MRC模式为3层表示中的图像定义了一组基本规则。

1. If more than one layer exists, then the binary Mask layer SHALL be present and be the primary image. The Mask layer SHALL support the encoding defined in Section 3 and MAY support the encodings defined in Sections 4 and 5. If only one layer exists, then the image corresponding to that layer is the primary image.

1. 如果存在多个层,则应存在二值遮罩层,并将其作为主图像。屏蔽层应支持第3节中定义的编码,并可支持第4节和第5节中定义的编码。如果仅存在一个层,则与该层对应的图像为主图像。

2. When the binary Mask layer is the Primary IFD, the Primary IFD defines and extends to the entire page boundary; all attached model images cannot extend beyond the Primary image. Resolution differences may cause some pixels to "hang over" the page boundary, but no new pixels should exist completely beyond the page extent. When the Foreground or Background layer is the Primary IFD, the Primary IFD may not be page width.

2. 当二进制掩码层是主IFD时,主IFD定义并扩展到整个页面边界;所有附着的模型图像都不能延伸到主图像之外。分辨率差异可能会导致某些像素“挂起”页面边界,但新像素不应完全存在于页面范围之外。当前景层或背景层是主IFD时,主IFD可能不是页面宽度。

3. The Background and Foreground images SHALL support the color encoding defined in Section 6 and MAY support the color encoding defined in Section 7. These images MAY optionally cover only a portion of the strip or page.

3. 背景和前景图像应支持第6节中定义的颜色编码,并可支持第7节中定义的颜色编码。这些图像可以选择性地仅覆盖条带或页面的一部分。

4. Each Primary IFD and each MRC-specific SubIFD must have an ImageLayer field to specify which layer the IFD belongs to, and the imaging order of that IFD within the layer.

4. 每个主IFD和每个MRC特定子IFD必须具有ImageLayer字段,以指定IFD所属的层以及该IFD在该层中的成像顺序。

5. Each Primary IFD must have a NewSubFileType field value set to 18, indicating a single page of a multi-page document (bit 1) and MRC mode (bit 4).

5. 每个主IFD必须将NewSubFileType字段值设置为18,表示多页文档的单页(位1)和MRC模式(位4)。

6. Each MRC-specific child IFD must have a NewSubFileType field value set to 16, indicating MRC mode (bit 4).

6. 每个MRC特定的子IFD必须将NewSubFileType字段值设置为16,表示MRC模式(第4位)。

7. In MRC mode, each layer is transmitted as a sequence of strips. It is possible that each strip of each layer can be stored as a separate IFD. In this case, the SubIFDs structure pointed to by the Primary IFD will contain several IFDs that have an ImageLayer field with the layer identified as either Background (layer 1) or Foreground (layer 3). There may be no overlap in the vertical direction between IFDs associated with a single layer, although

7. 在MRC模式下,每一层都以条带序列的形式传输。每个层的每个条带都可以作为单独的IFD存储。在这种情况下,主IFD指向的子IFD结构将包含多个IFD,这些IFD具有ImageLayer字段,该字段的层被标识为背景(层1)或前景(层3)。与单层相关的IFD之间在垂直方向上可能没有重叠,但

there may be a gap from one of these images to the next. The TIFF XPosition and YPosition fields are used to indicate the placement of these images with respect to the primary image.

从一个图像到下一个图像可能存在间隙。TIFF XPosition和YPosition字段用于指示这些图像相对于主图像的位置。

8. When the Mask image is present, the resolution of Background and Foreground images must each be an integer factor of the Mask image. For example, if the Mask image is 400 pixels/inch, then the Background or Foreground image may be at 400 pixels/inch (400/1), 200 pixels/inch (400/2) or 100 pixels/inch (400/4).

8. 当存在遮罩图像时,背景图像和前景图像的分辨率都必须是遮罩图像的整数因子。例如,如果遮罩图像是400像素/英寸,则背景或前景图像可以是400像素/英寸(400/1)、200像素/英寸(400/2)或100像素/英寸(400/4)。

8.5. MRC Fax Mode Summary
8.5. MRC传真模式摘要

Recommended fields are shown with an asterisk *

推荐字段以星号显示*

       +------------------+-----------------------------------------+
       | Baseline Fields  |               Values                    |
       |------------------|-----------------------------------------|
       | BitsPerSample    | 1: binary mask                          |
       |                  | 8: 8 bits per color sample              |
       |                  | 9-16: optional 12 bits/sample           |
       +------------------+-----------------------------------------+
       | ColorMap         | n: LAB color map                        |
       +------------------+-----------------------------------------+
       | Compression      | 3: Modified Huffman and Modified Read   |
       |                  | 4: Modified Modified Read               |
       |                  | 7: JPEG                                 |
       |                  | 9: JBIG, per T.85                       |
       |                  | 10: JBIG, per T.43                      |
       +------------------+-----------------------------------------+
       | DateTime*        | {ASCII): date/time in the 24-hour format|
       |                  | "YYYY:MM:DD HH:MM:SS"                   |
       +------------------+-----------------------------------------|
       | FillOrder**      | 1: Most significant bit first           |
       |                  | 2: Least significant bit first          |
       +------------------+-----------------------------------------|
       | ImageDescription*| {ASCII}: A string describing the        |
       |                  | contents of the image.                  |
       +------------------+-----------------------------------------+
       | ImageWidth       | 864, 1024, 1216, 1728**, 2048, 2432,    |
       |                  | 2592, 3072, 3456, 3648, 4096, 4864      |
       +------------------+-----------------------------------------+
       | ImageLength**    | n: total number of scanlines in image   |
       +------------------+-----------------------------------------+
       | NewSubFileType   | 16, 18:                                 |
       |                  | Bit 1 indicates single page of a multi- |
       |                  | page document on Primary IFD            |
       |                  | Bit 4 indicates MRC model               |
       +------------------+-----------------------------------------+
        
       +------------------+-----------------------------------------+
       | Baseline Fields  |               Values                    |
       |------------------|-----------------------------------------|
       | BitsPerSample    | 1: binary mask                          |
       |                  | 8: 8 bits per color sample              |
       |                  | 9-16: optional 12 bits/sample           |
       +------------------+-----------------------------------------+
       | ColorMap         | n: LAB color map                        |
       +------------------+-----------------------------------------+
       | Compression      | 3: Modified Huffman and Modified Read   |
       |                  | 4: Modified Modified Read               |
       |                  | 7: JPEG                                 |
       |                  | 9: JBIG, per T.85                       |
       |                  | 10: JBIG, per T.43                      |
       +------------------+-----------------------------------------+
       | DateTime*        | {ASCII): date/time in the 24-hour format|
       |                  | "YYYY:MM:DD HH:MM:SS"                   |
       +------------------+-----------------------------------------|
       | FillOrder**      | 1: Most significant bit first           |
       |                  | 2: Least significant bit first          |
       +------------------+-----------------------------------------|
       | ImageDescription*| {ASCII}: A string describing the        |
       |                  | contents of the image.                  |
       +------------------+-----------------------------------------+
       | ImageWidth       | 864, 1024, 1216, 1728**, 2048, 2432,    |
       |                  | 2592, 3072, 3456, 3648, 4096, 4864      |
       +------------------+-----------------------------------------+
       | ImageLength**    | n: total number of scanlines in image   |
       +------------------+-----------------------------------------+
       | NewSubFileType   | 16, 18:                                 |
       |                  | Bit 1 indicates single page of a multi- |
       |                  | page document on Primary IFD            |
       |                  | Bit 4 indicates MRC model               |
       +------------------+-----------------------------------------+
        
       +------------------+-----------------------------------------+
       | Orientation      | 1**-8, Default 1                        |
       +------------------+-----------------------------------------+
       | PhotometricInter | 0: WhiteIsZero                          |
       | pretation        | 1: BlackIsZero                          |
       |                  | 2: RGB                                  |
       |                  | 5: CMYK                                 |
       |                  | 10: ITULAB                              |
       +------------------+-----------------------------------------+
       | ResolutionUnit   | 2: inch                                 |
       |                  | 3: centimeter                           |
       +------------------+-----------------------------------------+
       | RowsPerStrip     | n: number or scanlines per strip        |
       +------------------+-----------------------------------------+
       | SamplesPerPixel  | 1: L* (lightness)                       |
       |                  | 3: RGB, LAB, CMY                        |
       |                  | 4: CMYK                                 |
       +------------------+-----------------------------------------+
       | Software*        | {ASCII}: name & release number of       |
       |                  | creator software                        |
       +------------------+-----------------------------------------+
       | StripByteCounts  | <n>: number or bytes in each strip      |
       +------------------+-----------------------------------------+
       | StripOffsets     | <n>: offset from beginning of file to   |
       |                  | each TIFF strip                         |
       +------------------+-----------------------------------------|
       | XResolution      | 100, 200, 300, 400 (written in          |
       |                  | pixels/inch)                            |
       +------------------+-----------------------------------------|
       | YResolution      | equal to XResolution (pixels must be    |
       |                  | square)                                 |
       +------------------+-----------------------------------------+
       | Extension Fields                                           |
       +------------------+-----------------------------------------+
       | T4Options        | 0: required if Compression is Modified  |
       |                  | Huffman, EOLs not byte aligned          |
       |                  | 1: required if Compression 2D Modified  |
       |                  | Read, EOLs are not byte aligned         |
       |                  | 4: required if Compression Modified     |
       |                  | Huffman, EOLs byte aligned              |
       |                  | 5: required if Compression 2D Modified  |
       |                  | Read, EOLs are byte aligned             |
       +------------------+-----------------------------------------+
       | T6Options        | 0: required if Compression is 2D        |
       |                  | Modified Modified Read                  |
       +------------------+-----------------------------------------+
        
       +------------------+-----------------------------------------+
       | Orientation      | 1**-8, Default 1                        |
       +------------------+-----------------------------------------+
       | PhotometricInter | 0: WhiteIsZero                          |
       | pretation        | 1: BlackIsZero                          |
       |                  | 2: RGB                                  |
       |                  | 5: CMYK                                 |
       |                  | 10: ITULAB                              |
       +------------------+-----------------------------------------+
       | ResolutionUnit   | 2: inch                                 |
       |                  | 3: centimeter                           |
       +------------------+-----------------------------------------+
       | RowsPerStrip     | n: number or scanlines per strip        |
       +------------------+-----------------------------------------+
       | SamplesPerPixel  | 1: L* (lightness)                       |
       |                  | 3: RGB, LAB, CMY                        |
       |                  | 4: CMYK                                 |
       +------------------+-----------------------------------------+
       | Software*        | {ASCII}: name & release number of       |
       |                  | creator software                        |
       +------------------+-----------------------------------------+
       | StripByteCounts  | <n>: number or bytes in each strip      |
       +------------------+-----------------------------------------+
       | StripOffsets     | <n>: offset from beginning of file to   |
       |                  | each TIFF strip                         |
       +------------------+-----------------------------------------|
       | XResolution      | 100, 200, 300, 400 (written in          |
       |                  | pixels/inch)                            |
       +------------------+-----------------------------------------|
       | YResolution      | equal to XResolution (pixels must be    |
       |                  | square)                                 |
       +------------------+-----------------------------------------+
       | Extension Fields                                           |
       +------------------+-----------------------------------------+
       | T4Options        | 0: required if Compression is Modified  |
       |                  | Huffman, EOLs not byte aligned          |
       |                  | 1: required if Compression 2D Modified  |
       |                  | Read, EOLs are not byte aligned         |
       |                  | 4: required if Compression Modified     |
       |                  | Huffman, EOLs byte aligned              |
       |                  | 5: required if Compression 2D Modified  |
       |                  | Read, EOLs are byte aligned             |
       +------------------+-----------------------------------------+
       | T6Options        | 0: required if Compression is 2D        |
       |                  | Modified Modified Read                  |
       +------------------+-----------------------------------------+
        
       +------------------+-----------------------------------------+
       | DocumentName*    | {ASCII}: name of scanned document       |
       +------------------+-----------------------------------------+
       | PageNumber       | n,m: page number followed by total page |
       |                  | count                                   |
       +------------------+-----------------------------------------+
       | ChromaSubSampling| (1,1), (2, 2)**                         |
       |                  | (1, 1): equal numbers of lightness and  |
       |                  | chroma samples horizontally & vertically|
       |                  | (2, 2): twice as many lightness samples |
       |                  | as chroma horizontally and vertically   |
       +------------------+-----------------------------------------+
       | ChromaPositioning| 1: centered                             |
       +------------------+-----------------------------------------+
       | Indexed          | 0: not a palette-color image            |
       |                  | 1: palette-color image                  |
       +------------------+-----------------------------------------+
       | SubIFDs          | <IFD>: byte offset to fg/bg IFDs        |
       +------------------+-----------------------------------------+
       | XPosition        | horizontal offset in primary IFD        |
       |                  | resolution units                        |
       +------------------+-----------------------------------------+
       | YPosition        | vertical offset in primary IFD          |
       |                  | resolution units                        |
       +------------------+-----------------------------------------+
       | New Fields                                                 |
       +------------------+-----------------------------------------+
       | Decode           | minL, maxL, mina, maxa, minb, maxb:     |
       |                  | minimum and maximum values for L*a*b*   |
       +------------------+-----------------------------------------+
       | DefaultImageColor| <n>: background color                   |
       +------------------+-----------------------------------------+
       | StripRowCounts   | <n>: number of scanlines in each strip  |
       +------------------+-----------------------------------------+
       | ImageLayer       | n, m: layer number, imaging sequence    |
       |                  | (e.g., strip number)                    |
       +------------------+-----------------------------------------+
       | GlobalParameters | IFD: global parameters IFD              |
       | IFD*             |                                         |
       +------------------+-----------------------------------------+
       | ProfileType*     | n: type of data stored in TIFF file     |
       +------------------+-----------------------------------------+
       | FaxProfile*      | n: ITU-compatible fax mode              |
       +------------------+-----------------------------------------+
       | CodingMethods*   | n: compression algorithms used in file  |
       +------------------+-----------------------------------------+
       | ModeNumber*      | n: version of ITU fax standard          |
       +------------------+-----------------------------------------+
        
       +------------------+-----------------------------------------+
       | DocumentName*    | {ASCII}: name of scanned document       |
       +------------------+-----------------------------------------+
       | PageNumber       | n,m: page number followed by total page |
       |                  | count                                   |
       +------------------+-----------------------------------------+
       | ChromaSubSampling| (1,1), (2, 2)**                         |
       |                  | (1, 1): equal numbers of lightness and  |
       |                  | chroma samples horizontally & vertically|
       |                  | (2, 2): twice as many lightness samples |
       |                  | as chroma horizontally and vertically   |
       +------------------+-----------------------------------------+
       | ChromaPositioning| 1: centered                             |
       +------------------+-----------------------------------------+
       | Indexed          | 0: not a palette-color image            |
       |                  | 1: palette-color image                  |
       +------------------+-----------------------------------------+
       | SubIFDs          | <IFD>: byte offset to fg/bg IFDs        |
       +------------------+-----------------------------------------+
       | XPosition        | horizontal offset in primary IFD        |
       |                  | resolution units                        |
       +------------------+-----------------------------------------+
       | YPosition        | vertical offset in primary IFD          |
       |                  | resolution units                        |
       +------------------+-----------------------------------------+
       | New Fields                                                 |
       +------------------+-----------------------------------------+
       | Decode           | minL, maxL, mina, maxa, minb, maxb:     |
       |                  | minimum and maximum values for L*a*b*   |
       +------------------+-----------------------------------------+
       | DefaultImageColor| <n>: background color                   |
       +------------------+-----------------------------------------+
       | StripRowCounts   | <n>: number of scanlines in each strip  |
       +------------------+-----------------------------------------+
       | ImageLayer       | n, m: layer number, imaging sequence    |
       |                  | (e.g., strip number)                    |
       +------------------+-----------------------------------------+
       | GlobalParameters | IFD: global parameters IFD              |
       | IFD*             |                                         |
       +------------------+-----------------------------------------+
       | ProfileType*     | n: type of data stored in TIFF file     |
       +------------------+-----------------------------------------+
       | FaxProfile*      | n: ITU-compatible fax mode              |
       +------------------+-----------------------------------------+
       | CodingMethods*   | n: compression algorithms used in file  |
       +------------------+-----------------------------------------+
       | ModeNumber*      | n: version of ITU fax standard          |
       +------------------+-----------------------------------------+
        
       +------------------------------------------------------------+
       | VersionYear*     | byte sequence: year of ITU fax standard |
       +------------------+-----------------------------------------+
        
       +------------------------------------------------------------+
       | VersionYear*     | byte sequence: year of ITU fax standard |
       +------------------+-----------------------------------------+
        
9. MIME content-type image/tiff
9. MIME内容类型图像/tiff

[TIFF-REG] describes the registration of the MIME content-type image/tiff to refer to TIFF encoded image data. When transported by MIME, the TIFF content defined by this document must be encoded within an image/tiff content type. In addition, an optional "application" parameter is defined for image/tiff to identify a particular application's subset of TIFF and TIFF extensions for the encoded image data, if it is known. Typically, this would be used to assist the recipient in dispatching a suitable rendering package to handle the display or processing of the image file.

[TIFF-REG]描述MIME内容类型图像/TIFF的注册,以引用TIFF编码的图像数据。通过MIME传输时,此文档定义的TIFF内容必须在图像/TIFF内容类型中进行编码。此外,还为image/tiff定义了可选的“application”参数,以识别编码图像数据的特定应用程序的tiff和tiff扩展子集(如果已知)。通常,这将用于帮助接收者分派适当的渲染包来处理图像文件的显示或处理。

9.1 Refinement of MIME content-type image/tiff for Facsimile Applications

9.1 用于传真应用的MIME内容类型图像/tiff的细化

Since this document defines facsimile specific profiles of TIFF, it is useful to note an appropriate application parameter for the image/tiff MIME content-type.

由于本文档定义了TIFF的传真特定配置文件,因此请注意图像/TIFF MIME内容类型的适当应用程序参数。

The two values of the image/tiff application parameter as defined for facsimile are shown below, separated by a comma:

为传真定义的图像/tiff应用程序参数的两个值如下所示,用逗号分隔:

faxbw, faxcolor

faxbw,faxcolor

The "faxbw" application parameter is suitable for use by applications that can process one or more TIFF for facsimile profiles or subsets used for the encoding of black and white facsimile data.

“faxbw”应用程序参数适用于可处理传真配置文件或用于黑白传真数据编码的子集的一个或多个TIFF的应用程序。

The "faxcolor" application parameter is suitable for use by applications that can process one or more TIFF for facsimile profiles or subsets that can be used for the encoding of black and white, AND color facsimile data.

“faxcolor”应用程序参数适用于处理传真配置文件或子集的一个或多个TIFF的应用程序,这些文件或子集可用于黑白和彩色传真数据的编码。

Since this document defines several profiles of TIFF for facsimile, the following rules should be followed when setting the application parameter value. For TIFF image data which is encoded for the profiles of TIFF for Facsimile that support black-and-white image data (Profiles S, F or J), applications which use one of these profiles or a subset should set the value of the application parameter to "faxbw". For TIFF image data which is encoded for the defined profiles of TIFF for Facsimile that support color image data (Profiles C, L or M), as well as black-and-white image data, applications which use one of these profiles or a subset should set the value of the application parameter to "faxcolor".

由于本文档定义了传真用TIFF的多个配置文件,因此在设置应用程序参数值时应遵循以下规则。对于为支持黑白图像数据的传真TIFF配置文件(配置文件S、F或J)编码的TIFF图像数据,使用其中一个配置文件或子集的应用程序应将应用程序参数的值设置为“faxbw”。对于为支持彩色图像数据(配置文件C、L或M)的传真TIFF定义配置文件编码的TIFF图像数据以及黑白图像数据,使用这些配置文件之一或子集的应用程序应将应用程序参数的值设置为“faxcolor”。

An example of the use of the image/tiff MIME Content-type with the application parameter set with the value 'faxbw' follows:

使用image/tiff MIME内容类型并将应用程序参数设置为值“faxbw”的示例如下:

       Content-type: image/tiff; application=faxbw
        
       Content-type: image/tiff; application=faxbw
        

In this example, use of this parameter value will enable applications to identify the content as being within a profile or subset of TIFF for Facsimile that is suitable for encoding black and white image data, Before attempting to process the image data.

在此示例中,使用此参数值将使应用程序能够在尝试处理图像数据之前,将内容识别为在适于编码黑白图像数据的传真用TIFF的简档或子集内。

In a similar respect, an example of the image/tiff MIME Content-type with the application parameter setting suitable for handling a color subset or profile of TIFF for facsimile is shown below:

在类似方面,具有应用参数设置的图像/tiff MIME内容类型的示例适合于处理用于传真的tiff的颜色子集或简档,如下所示:

       Content-type: image/tiff; application=faxcolor
        
       Content-type: image/tiff; application=faxcolor
        
10. Security Considerations
10. 安全考虑

This document describes a file format for Internet fax, which is a series of profiles of TIFF for facsimile. As such, it does not create any security issues not already identified in [TIFF-REG], in its use of fields as defined in [TIFF]. There are also new TIFF fields defined within this specification, but they are of a purely descriptive nature, so that no new security risks are incurred.

本文档描述了Internet传真的文件格式,这是一系列用于传真的TIFF配置文件。因此,在使用[TIFF]中定义的字段时,不会产生[TIFF-REG]中未发现的任何安全问题。本规范中还定义了新的TIFF字段,但它们是纯描述性的,因此不会产生新的安全风险。

Further, the encoding specified in this document does not in any way preclude the use of any Internet security protocol to encrypt, authenticate, or non-repudiate TIFF-encoded facsimile messages.

此外,本文件中规定的编码并不以任何方式排除使用任何互联网安全协议对TIFF编码的传真消息进行加密、认证或不可否认性。

11. References
11. 工具书类

[REQ] Bradner, S, "Key words for use in RFCs to Indicate Requirement Levels", RFC 2119, March 1997.

[REQ]Bradner,S,“RFC中用于表示需求水平的关键词”,RFC 211997年3月。

[T.4] ITU-T Recommendation T.4, Standardization of group 3 facsimile apparatus for document transmission, October 1997

[T.4]ITU-T建议T.4,用于文件传输的第3组传真设备的标准化,1997年10月

[T.6] ITU-T Recommendation T.6, Facsimile coding schemes and coding control functions for group 4 facsimile apparatus, November 1988

[T.6]ITU-T建议T.6,第4组传真机的传真编码方案和编码控制功能,1988年11月

[T.30] ITU-T Recommendation T.30 - Procedures for Document Facsimile Transmission in the General Switched Telephone Network, June 1996

[T.30]ITU-T建议T.30——通用交换电话网络中文件传真传输的程序,1996年6月

[T.42] ITU-T Recommendation T.42, Continuous-tone colour representation method for facsimile, February 1996

[T.42]ITU-T建议T.42,传真用连续色调颜色表示法,1996年2月

[T.43] ITU-T Recommendation T.43, Colour and gray-scale image representations using lossless coding scheme for facsimile, February 1997

[T.43]ITU-T建议T.43,使用传真无损编码方案的彩色和灰度图像表示,1997年2月

[T.44] ITU-T Recommendation T.44, Mixed Raster Content (MRC), October 1997.

[T.44]ITU-T建议T.44,混合光栅内容(MRC),1997年10月。

[T.81] ITU-T Recommendation T.81, Information technology - Digital compression and coding of continuous-tone still images - Requirements and guidelines, September 1992

[T.81]ITU-T建议T.81,信息技术-连续色调静态图像的数字压缩和编码-要求和指南,1992年9月

[T.82] ITU-T Recommendation T.82, Information technology - Coded representation of picture and audio information - Progressive bi-level image compression, March 1995

[T.82]ITU-T建议T.82,信息技术-图片和音频信息的编码表示-渐进式双层图像压缩,1995年3月

[T.85] ITU-T Recommendation T.85, Application profile for Recommendation T.82 - Progressive bi-level image compression (JBIG coding scheme) for facsimile apparatus, August 1995

[T.85]ITU-T建议T.85,建议T.82的应用概况-传真设备的渐进式双层图像压缩(JBIG编码方案),1995年8月

   [TIFF] Tag Image File Format, Revision 6.0, Adobe Developers
   Association, June 3, 1992,
   ftp://ftp.adobe.com/pub/adobe/devrelations/
   devtechnotes/pdffiles/tiff6.pdf
        
   [TIFF] Tag Image File Format, Revision 6.0, Adobe Developers
   Association, June 3, 1992,
   ftp://ftp.adobe.com/pub/adobe/devrelations/
   devtechnotes/pdffiles/tiff6.pdf
        

The TIFF 6.0 specification dated June 3, 1992 specification (c) 1986-1988, 1992 Adobe Systems Incorporated. All Rights Reserved.

日期为1992年6月3日的TIFF 6.0规范(c)1986-1988,1992年Adobe Systems Incorporated。版权所有。

[TIFF-FY] Parsons, G. and J. Rafferty, "Tag Image File Format (TIFF) - F Profile for Facsimile", RFC 2306, March 1998.

[TIFF-FY]Parsons,G.和J.Rafferty,“传真用标签图像文件格式(TIFF)-F配置文件”,RFC 2306,1998年3月。

   [TIFF-F0] TIFF Class F specification, Apr 28, 1990,
   ftp://ftp.faximum.com/pub/documents/tiff_f.txt
        
   [TIFF-F0] TIFF Class F specification, Apr 28, 1990,
   ftp://ftp.faximum.com/pub/documents/tiff_f.txt
        

[TIFF-REG] Parsons, G., Rafferty J. and S. Zilles, "Tag Image File Format (TIFF) - image/tiff MIME Sub-type Registration", RFC 2302, March 1998.

[TIFF-REG]Parsons,G.,Rafferty J.和S.Zilles,“标签图像文件格式(TIFF)-图像/TIFF MIME子类型注册”,RFC 2302,1998年3月。

   [TTN1] Adobe PageMaker 6.0 TIFF Technical Notes, Sept. 14, 1995,
   http://www.adobe.com/supportservice/devrelations/PDFS/TN/TIFFPM6.pdf
        
   [TTN1] Adobe PageMaker 6.0 TIFF Technical Notes, Sept. 14, 1995,
   http://www.adobe.com/supportservice/devrelations/PDFS/TN/TIFFPM6.pdf
        
   [TTN2] Draft TIFF Technical Note 2, Replacement TIFF/JPEG
   specification, March 17, 1995,
   ftp://ftp.sgi.com/graphics/tiff/TTN2.draft.txt
        
   [TTN2] Draft TIFF Technical Note 2, Replacement TIFF/JPEG
   specification, March 17, 1995,
   ftp://ftp.sgi.com/graphics/tiff/TTN2.draft.txt
        

[VPIM2] Vaudreui,l G. and G. Parsons, "Voice Profile for Internet Mail - version 2", work in progress, <draft-ema-vpim-06.txt>

[VPIM2]Vaudreui,l G.和G.Parsons,“互联网邮件语音配置文件-第2版”,正在进行的工作,<draft-ema-vpim-06.txt>

The ITU-T Recommendations are available at http://www.itu.ch.

ITU-T建议可在http://www.itu.ch.

12. Authors' Addresses
12. 作者地址
   Lloyd McIntyre                     Stephen Zilles
   Xerox Corporation                  Adobe Systems Inc.
   Mailstop PAHV-305                  Mailstop W14
   3400 Hillview Ave.                 345 Park Avenue
   Palo Alto, CA 94304 USA            San Jose, CA 95110-2704, USA
   Voice: +1-650-813-6762             Voice: +1-408-536-4766
   Fax: +1-650-845-2340               Fax: +1-408-536-4042
   Email: lmcintyre@adoc.xerox.com    Email: szilles@adobe.com
        
   Lloyd McIntyre                     Stephen Zilles
   Xerox Corporation                  Adobe Systems Inc.
   Mailstop PAHV-305                  Mailstop W14
   3400 Hillview Ave.                 345 Park Avenue
   Palo Alto, CA 94304 USA            San Jose, CA 95110-2704, USA
   Voice: +1-650-813-6762             Voice: +1-408-536-4766
   Fax: +1-650-845-2340               Fax: +1-408-536-4042
   Email: lmcintyre@adoc.xerox.com    Email: szilles@adobe.com
        
   Robert Buckley                     Dennis Venable
   Xerox Corporation                  Xerox Corporation
   Mailstop 0128-30E                  Mailstop 0128-27E
   800 Phillips Road                  800 Phillips Road
   Webster, NY 14580, USA             Webster, NY 14580, USA
   Voice: +1-716-422-1282             Voice: +1-716-422-8009
   Fax: +1-716-422-6117               Fax: +1-716-422-6117
   Email: Rob_Buckley@wb.xerox.com    Email: venable@wrc.xerox.com
        
   Robert Buckley                     Dennis Venable
   Xerox Corporation                  Xerox Corporation
   Mailstop 0128-30E                  Mailstop 0128-27E
   800 Phillips Road                  800 Phillips Road
   Webster, NY 14580, USA             Webster, NY 14580, USA
   Voice: +1-716-422-1282             Voice: +1-716-422-8009
   Fax: +1-716-422-6117               Fax: +1-716-422-6117
   Email: Rob_Buckley@wb.xerox.com    Email: venable@wrc.xerox.com
        
   Glenn S. Parsons                   James Rafferty
   Northern Telecom                   Human Communications
   P.O. Box 3511, Station C           12 Kevin Drive
   Ottawa, ON  K1Y 4H7, Canada        Danbury, CT 06811-2901, USA
   Phone: +1-613-763-7582             Phone: +1-203-746-4367
   Fax: +1-613-763-2697               Fax: +1-203-746-4367
   Email: Glenn.Parsons@Nortel.ca     Email: Jrafferty@worldnet.att.net
        
   Glenn S. Parsons                   James Rafferty
   Northern Telecom                   Human Communications
   P.O. Box 3511, Station C           12 Kevin Drive
   Ottawa, ON  K1Y 4H7, Canada        Danbury, CT 06811-2901, USA
   Phone: +1-613-763-7582             Phone: +1-203-746-4367
   Fax: +1-613-763-2697               Fax: +1-203-746-4367
   Email: Glenn.Parsons@Nortel.ca     Email: Jrafferty@worldnet.att.net
        

Annex A: Summary of TIFF Fields for Internet Fax

附件A:互联网传真的TIFF字段摘要

This annex includes tables which list by mode the TIFF fields used in the proposed fax file format. The fields are organized into 3 categories:

本附件包括按模式列出拟定传真文件格式中使用的TIFF字段的表格。这些字段分为3类:

1) TIFF Baseline Fields 2) TIFF Extension Fields 3) New Fields.

1) TIFF基线字段2)TIFF扩展字段3)新字段。

The tables include the allowed values for each fax mode. Entries other than explicit numbers are described by:

这些表包括每个传真模式的允许值。除显式数字外的条目描述如下:

      n        - single number
      n, m     - 2 numbers
      a, b, c  - 3 numbers
      r        - rational number
      <n>      - array of numbers
      <b>      - byte sequence
      {ASCII}  - string
      IFD      - IFD byte offset
      <IFD>    - array of IFD byte offsets
        
      n        - single number
      n, m     - 2 numbers
      a, b, c  - 3 numbers
      r        - rational number
      <n>      - array of numbers
      <b>      - byte sequence
      {ASCII}  - string
      IFD      - IFD byte offset
      <IFD>    - array of IFD byte offsets
        

A blank entry in the table indicates that the field is not used by that particular fax mode.

表中的空白项表示该字段未被该特定传真模式使用。

Table A.1 TIFF Baseline Fields

表A.1 TIFF基线字段

            +---------------------------------------------------------+
            |                    Fax Mode/Profile                     |
            +---------------------------------------------------------|
            | Minimal | Extended |  JBIG  |  Lossy  |Lossless| Mixed  |
 +----------|   B&W   |    B&W   |  B&W   |  Color  | Color  | Raster |
 |   TIFF   |         |          |        |         |        | Content|
 |  Field   |    S    |     F    |   J    |    C    |   L    |   M    |
 +----------+---------+----------+--------+---------+--------+--------+
 | BitsPer  | 1       | 1        | 1      | 8, 12   | 1, 2-8 | 1, 2-8 |
 | Sample   |         |          |        |         | 9-16   | 9-16   |
 +----------+---------+----------+--------+---------+--------+--------+
 | ColorMap |         |          |        |         | <n>    | <n>    |
 +----------+---------+----------+--------+---------+--------+--------+
 | Compres- | 3       | 3, 4     | 9      | 7       | 10     | 3, 4, 7|
 | sion     |         |          |        |         |        | 9,10   |
 +----------+---------+----------+--------+---------+--------+--------+
 | DateTime |         | {ASCII}  | {ASCII}| {ASCII} | {ASCII}| {ASCII}|
 +----------+---------+----------+--------+---------+--------+--------+
 | FillOrder| 2       | 1, 2     | 1, 2   | 1, 2    | 1, 2   | 1,2    |
 +----------+---------+----------+--------+---------+--------+--------+
        
            +---------------------------------------------------------+
            |                    Fax Mode/Profile                     |
            +---------------------------------------------------------|
            | Minimal | Extended |  JBIG  |  Lossy  |Lossless| Mixed  |
 +----------|   B&W   |    B&W   |  B&W   |  Color  | Color  | Raster |
 |   TIFF   |         |          |        |         |        | Content|
 |  Field   |    S    |     F    |   J    |    C    |   L    |   M    |
 +----------+---------+----------+--------+---------+--------+--------+
 | BitsPer  | 1       | 1        | 1      | 8, 12   | 1, 2-8 | 1, 2-8 |
 | Sample   |         |          |        |         | 9-16   | 9-16   |
 +----------+---------+----------+--------+---------+--------+--------+
 | ColorMap |         |          |        |         | <n>    | <n>    |
 +----------+---------+----------+--------+---------+--------+--------+
 | Compres- | 3       | 3, 4     | 9      | 7       | 10     | 3, 4, 7|
 | sion     |         |          |        |         |        | 9,10   |
 +----------+---------+----------+--------+---------+--------+--------+
 | DateTime |         | {ASCII}  | {ASCII}| {ASCII} | {ASCII}| {ASCII}|
 +----------+---------+----------+--------+---------+--------+--------+
 | FillOrder| 2       | 1, 2     | 1, 2   | 1, 2    | 1, 2   | 1,2    |
 +----------+---------+----------+--------+---------+--------+--------+
        
 +----------+---------+----------+--------+---------+--------+--------+
 | ImageDes-|         | {ASCII}  | {ASCII}| {ASCII} | {ASCII}| {ASCII}|
 | cription |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Image-   | n       | n        | n      | n       | n      | n      |
 | Length   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Image-   | 1728    | 1728, 2048, 2432  |   864, 1024, 1216, 1728,  |
 | Width    |         | 2592, 3072, 3456  |  2048, 2432, 2592, 3072,  |
 |          |         | 3648, 4096, 4864  |  3456, 3648, 4096, 4864   |
 +----------+---------+----------+--------+---------+--------+--------+
 | NewSub-  | 2       | 2        | 2      | 2       | 2      | 16, 18 |
 | FileType |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Orien-   | 1       | 1-8      | 1-8    | 1-8     | 1-8    | 1-8    |
 | tation   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Photo-   | 0       | 0, 1     | 0, 1   | 10      | 2, 5,  | 0, 1,  |
 | metric-  |         |          |        |         | 10     | 2, 5,  |
 | Interp-  |         |          |        |         |        | 10     |
 | retation |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Resolu-  | 2       | 2, 3     | 2, 3   | 2, 3    | 2, 3   | 2, 3   |
 | tionUnit |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | RowsPer- | n       | n        | n      | n       | n      | n      |
 | Strip    |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Samples- | 1       | 1        | 1      | 1, 3    | 1, 3, 4| 1, 3, 4|
 | PerPixel |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Software |         | {ASCII}  | {ASCII}| {ASCII} | {ASCII}| {ASCII}|
 +----------+---------+----------+--------+---------+--------+--------+
 | Strip-   | n       | <n>      | <n>    | <n>     | <n>    | <n>    |
 | Byte-    |         |          |        |         |        |        |
 | Counts   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Strip-   | n       | <n>      | <n>    | <n>     | <n>    | <n>    |
 | Offsets  |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | XResolu- | 204     | 200, 204, 300     |    100, 200, 300, 400     |
 | tion     | 200     | 400, 408          |                           |
 +----------+---------+----------+--------+---------+--------+--------+
 | YResolu- | 98, 196 | 98, 196, 100, 200 |    100, 200, 300, 400     |
 | tion     | 100,200 | 300, 391, 400     |                           |
 +----------+---------+----------+--------+---------+--------+--------+
        
 +----------+---------+----------+--------+---------+--------+--------+
 | ImageDes-|         | {ASCII}  | {ASCII}| {ASCII} | {ASCII}| {ASCII}|
 | cription |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Image-   | n       | n        | n      | n       | n      | n      |
 | Length   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Image-   | 1728    | 1728, 2048, 2432  |   864, 1024, 1216, 1728,  |
 | Width    |         | 2592, 3072, 3456  |  2048, 2432, 2592, 3072,  |
 |          |         | 3648, 4096, 4864  |  3456, 3648, 4096, 4864   |
 +----------+---------+----------+--------+---------+--------+--------+
 | NewSub-  | 2       | 2        | 2      | 2       | 2      | 16, 18 |
 | FileType |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Orien-   | 1       | 1-8      | 1-8    | 1-8     | 1-8    | 1-8    |
 | tation   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Photo-   | 0       | 0, 1     | 0, 1   | 10      | 2, 5,  | 0, 1,  |
 | metric-  |         |          |        |         | 10     | 2, 5,  |
 | Interp-  |         |          |        |         |        | 10     |
 | retation |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Resolu-  | 2       | 2, 3     | 2, 3   | 2, 3    | 2, 3   | 2, 3   |
 | tionUnit |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | RowsPer- | n       | n        | n      | n       | n      | n      |
 | Strip    |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Samples- | 1       | 1        | 1      | 1, 3    | 1, 3, 4| 1, 3, 4|
 | PerPixel |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Software |         | {ASCII}  | {ASCII}| {ASCII} | {ASCII}| {ASCII}|
 +----------+---------+----------+--------+---------+--------+--------+
 | Strip-   | n       | <n>      | <n>    | <n>     | <n>    | <n>    |
 | Byte-    |         |          |        |         |        |        |
 | Counts   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Strip-   | n       | <n>      | <n>    | <n>     | <n>    | <n>    |
 | Offsets  |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | XResolu- | 204     | 200, 204, 300     |    100, 200, 300, 400     |
 | tion     | 200     | 400, 408          |                           |
 +----------+---------+----------+--------+---------+--------+--------+
 | YResolu- | 98, 196 | 98, 196, 100, 200 |    100, 200, 300, 400     |
 | tion     | 100,200 | 300, 391, 400     |                           |
 +----------+---------+----------+--------+---------+--------+--------+
        

Table A.2 TIFF Extension Fields

表A.2 TIFF扩展字段

            +---------------------------------------------------------+
            |                    Fax Mode/Profile                     |
            +---------------------------------------------------------|
            | Minimal | Extended |  JBIG  |  Lossy  |Lossless| Mixed  |
 +----------|   B&W   |    B&W   |  B&W   |  Color  | Color  | Raster |
 |   TIFF   |         |          |        |         |        | Content|
 |  Field   |    S    |     F    |   J    |    C    |   L    |   M    |
 +----------+---------+----------+--------+---------+--------+--------+
 | Chroma-  |         |          |        | 1       |        | 1      |
 | Position-|         |          |        |         |        |        |
 | ing      |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Chroma-  |         |          |        | <1, 1>  |        | <1, 1> |
 | SubSampl-|         |          |        | <2, 2>  |        | <2, 2> |
 | ing      |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Document-|         | {ASCII}  | {ASCII}| {ASCII} | {ASCII}| {ASCII}|
 | Name     |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Indexed  |         |          |        |         | 0,1    | 0,1    |
 +----------+---------+----------+--------+---------+--------+--------+
 | Page-    | n, m    | n, m     | n, m   | n, m    | n, m   | n, m   |
 | Number   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | SubIFDs  |         |          |        |         |        | <IFD>  |
 +----------+---------+----------+--------+---------+--------+--------+
 | T4Options| 0, 4    | 0, 1,    |        |         |        | 0, 1,  |
 |          |         | 4, 5     |        |         |        | 4, 5   |
 +----------+---------+----------+--------+---------+--------+--------+
 | T6Options|         | 0        |        |         |        | 0      |
 +----------+---------+----------+--------+---------+--------+--------+
 | XPosition|         |          |        |         |        | r      |
 +----------+---------+----------+--------+---------+--------+--------+
 | YPosition|         |          |        |         |        | r      |
 +----------+---------+----------+--------+---------+--------+--------+
        
            +---------------------------------------------------------+
            |                    Fax Mode/Profile                     |
            +---------------------------------------------------------|
            | Minimal | Extended |  JBIG  |  Lossy  |Lossless| Mixed  |
 +----------|   B&W   |    B&W   |  B&W   |  Color  | Color  | Raster |
 |   TIFF   |         |          |        |         |        | Content|
 |  Field   |    S    |     F    |   J    |    C    |   L    |   M    |
 +----------+---------+----------+--------+---------+--------+--------+
 | Chroma-  |         |          |        | 1       |        | 1      |
 | Position-|         |          |        |         |        |        |
 | ing      |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Chroma-  |         |          |        | <1, 1>  |        | <1, 1> |
 | SubSampl-|         |          |        | <2, 2>  |        | <2, 2> |
 | ing      |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Document-|         | {ASCII}  | {ASCII}| {ASCII} | {ASCII}| {ASCII}|
 | Name     |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Indexed  |         |          |        |         | 0,1    | 0,1    |
 +----------+---------+----------+--------+---------+--------+--------+
 | Page-    | n, m    | n, m     | n, m   | n, m    | n, m   | n, m   |
 | Number   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | SubIFDs  |         |          |        |         |        | <IFD>  |
 +----------+---------+----------+--------+---------+--------+--------+
 | T4Options| 0, 4    | 0, 1,    |        |         |        | 0, 1,  |
 |          |         | 4, 5     |        |         |        | 4, 5   |
 +----------+---------+----------+--------+---------+--------+--------+
 | T6Options|         | 0        |        |         |        | 0      |
 +----------+---------+----------+--------+---------+--------+--------+
 | XPosition|         |          |        |         |        | r      |
 +----------+---------+----------+--------+---------+--------+--------+
 | YPosition|         |          |        |         |        | r      |
 +----------+---------+----------+--------+---------+--------+--------+
        

Table A.3 New Fields

表A.3新字段

            +---------------------------------------------------------+
            |                    Fax Mode/Profile                     |
            +---------------------------------------------------------|
            | Minimal | Extended |  JBIG  |  Lossy  |Lossless| Mixed  |
 +----------|   B&W   |    B&W   |  B&W   |  Color  | Color  | Raster |
 |   TIFF   |         |          |        |         |        | Content|
 |  Field   |    S    |     F    |   J    |    C    |   L    |   M    |
 +----------+---------+----------+--------+---------+--------+--------+
 | BadFax-  |         | n        |        |         |        |        |
 | Lines    |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | CleanFax-|         | 0, 1, 2  |        |         |        |        |
 | Data     |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Coding-  |         |          | n      | n       | n      | n      |
 | Method   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Consecu- |         | n        |        |         |        |        |
 | tiveBad- |         |          |        |         |        |        |
 | FaxLines |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Decode   |         |          |        | <r>     | <r>    | <r>    |
 +----------+---------+----------+--------+---------+--------+--------+
 | Default- |         |          |        |         |        | <n>    |
 |ImageColor|         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Fax-     |         |          | n      | n       | n      | n      |
 | Profile  |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Global-  |         | IFD      | IFD    | IFD     | IFD    | IFD    |
 | Parame-  |         |          |        |         |        |        |
 | tersIFD  |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Image-   |         |          |        |         |        | n, m   |
 | Layer    |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Mode-    |         |          |        |         |        | n      |
 | Number   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------|
 | Profile- |         |          | n      | n       | n      | n      |
 | Type     |         |          |        |         |        |        |
 +--------------------------------------------------------------------+
        
            +---------------------------------------------------------+
            |                    Fax Mode/Profile                     |
            +---------------------------------------------------------|
            | Minimal | Extended |  JBIG  |  Lossy  |Lossless| Mixed  |
 +----------|   B&W   |    B&W   |  B&W   |  Color  | Color  | Raster |
 |   TIFF   |         |          |        |         |        | Content|
 |  Field   |    S    |     F    |   J    |    C    |   L    |   M    |
 +----------+---------+----------+--------+---------+--------+--------+
 | BadFax-  |         | n        |        |         |        |        |
 | Lines    |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | CleanFax-|         | 0, 1, 2  |        |         |        |        |
 | Data     |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Coding-  |         |          | n      | n       | n      | n      |
 | Method   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Consecu- |         | n        |        |         |        |        |
 | tiveBad- |         |          |        |         |        |        |
 | FaxLines |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Decode   |         |          |        | <r>     | <r>    | <r>    |
 +----------+---------+----------+--------+---------+--------+--------+
 | Default- |         |          |        |         |        | <n>    |
 |ImageColor|         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Fax-     |         |          | n      | n       | n      | n      |
 | Profile  |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Global-  |         | IFD      | IFD    | IFD     | IFD    | IFD    |
 | Parame-  |         |          |        |         |        |        |
 | tersIFD  |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Image-   |         |          |        |         |        | n, m   |
 | Layer    |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Mode-    |         |          |        |         |        | n      |
 | Number   |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------|
 | Profile- |         |          | n      | n       | n      | n      |
 | Type     |         |          |        |         |        |        |
 +--------------------------------------------------------------------+
        
 +----------+---------+----------+--------+---------+--------+--------+
 | Strip-   |         |          |        |         |        | <n>    |
 | RowCounts|         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Version- |         |          |        | <b>     |<b>     |        |
 | Year     |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
        
 +----------+---------+----------+--------+---------+--------+--------+
 | Strip-   |         |          |        |         |        | <n>    |
 | RowCounts|         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
 | Version- |         |          |        | <b>     |<b>     |        |
 | Year     |         |          |        |         |        |        |
 +----------+---------+----------+--------+---------+--------+--------+
        

Annex B. IANA Registration for image/tiff Application Parameter Values used for facsimile

附件B.用于传真的图像/tiff应用程序参数值的IANA注册

To: IANA@isi.edu

致:IANA@isi.edu

Subject: Registration of new Application parameter values for image/tiff

主题:注册图像/tiff的新应用程序参数值

MIME media type name: image/tiff

MIME媒体类型名称:图像/tiff

Optional parameters: Application

可选参数:应用程序

New Value(s): faxbw, faxcolor

新值:faxbw、faxcolor

Description of Use:

使用说明:

faxbw - The "faxbw" application parameter is suitable for use by applications that can process one or more TIFF for facsimile profiles or subsets used for the encoding of black-and-white facsimile data. The definition of the use of this value is contained in Section 9 of this document (TIFFPLUS).

faxbw——“faxbw”应用程序参数适用于可处理传真配置文件或用于黑白传真数据编码的子集的一个或多个TIFF的应用程序。本文件第9节(TIFFPLUS)中包含了该值的使用定义。

Faxcolor - The "faxcolor" application parameter is suitable for use by applications that can process one or more TIFF for facsimile profiles or subsets that can be used for the encoding of black and white, AND color facsimile data. The definition of the use of this value is contained in Section 9 of this document (TIFFPLUS).

Faxcolor—“Faxcolor”应用程序参数适用于处理传真配置文件或子集的一个或多个TIFF的应用程序,这些文件或子集可用于黑白和彩色传真数据的编码。本文件第9节(TIFFPLUS)中包含了该值的使用定义。

Security Considerations:

安全考虑:

Security considerations related to use of the TIFF subsets described by the "faxbw" and "faxcolor" values of the Application parameter are identified in Section 10 of this document (TIFFPLUS).

本文件第10节(TIFFPLUS)确定了与应用程序参数的“faxbw”和“faxcolor”值所述TIFF子集使用相关的安全注意事项。

Persons & email addresses to contact for further information:

联系人和电子邮件地址,以获取更多信息:

Glenn W. Parsons (Glenn.Parsons@Nortel.ca) James Rafferty (Jrafferty@worldnet.att.net) Stephen Zilles (szilles@adobe.com)

格伦·W·帕森斯(格伦)。Parsons@Nortel.ca)詹姆斯·拉弗蒂(Jrafferty@worldnet.att.net)斯蒂芬·齐尔斯(szilles@adobe.com)

Change Controller: Stephen Zilles

变更控制员:斯蒂芬·齐尔斯

INFORMATION TO THE SUBMITTER:

提交人的信息:

The accepted registrations will be listed in the "Assigned Numbers" series of RFCs. The information in the registration form is freely distributable.

接受的注册将列在RFC的“分配编号”系列中。登记表中的信息可自由分发。

Full Copyright Statement

完整版权声明

Copyright (C) The Internet Society (1998). All Rights Reserved.

版权所有(C)互联网协会(1998年)。版权所有。

This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English.

本文件及其译本可复制并提供给他人,对其进行评论或解释或协助其实施的衍生作品可全部或部分编制、复制、出版和分发,不受任何限制,前提是上述版权声明和本段包含在所有此类副本和衍生作品中。但是,不得以任何方式修改本文件本身,例如删除版权通知或对互联网协会或其他互联网组织的引用,除非出于制定互联网标准的需要,在这种情况下,必须遵循互联网标准过程中定义的版权程序,或根据需要将其翻译成英语以外的其他语言。

The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assigns.

上述授予的有限许可是永久性的,互联网协会或其继承人或受让人不会撤销。

This document and the information contained herein is provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

本文件和其中包含的信息是按“原样”提供的,互联网协会和互联网工程任务组否认所有明示或暗示的保证,包括但不限于任何保证,即使用本文中的信息不会侵犯任何权利,或对适销性或特定用途适用性的任何默示保证。