cqtest.1m
上传用户:weiyuanprp
上传日期:2020-05-20
资源大小:1169k
文件大小:4k
源码类别:

传真(Fax)编程

开发平台:

C/C++

  1. ." $Id: cqtest.1m,v 1.1.1.1 2005/11/11 21:32:03 faxguy Exp $
  2. ."
  3. ." HylaFAX Facsimile Software
  4. ."
  5. ." Copyright (c) 1994-1996 Sam Leffler
  6. ." Copyright (c) 1994-1996 Silicon Graphics, Inc.
  7. ." HylaFAX is a trademark of Silicon Graphics
  8. ." 
  9. ." Permission to use, copy, modify, distribute, and sell this software and 
  10. ." its documentation for any purpose is hereby granted without fee, provided
  11. ." that (i) the above copyright notices and this permission notice appear in
  12. ." all copies of the software and related documentation, and (ii) the names of
  13. ." Sam Leffler and Silicon Graphics may not be used in any advertising or
  14. ." publicity relating to the software without the specific, prior written
  15. ." permission of Sam Leffler and Silicon Graphics.
  16. ." 
  17. ." THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  18. ." EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  19. ." WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  20. ." 
  21. ." IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  22. ." ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  23. ." OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. ." WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  25. ." LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  26. ." OF THIS SOFTWARE.
  27. ."
  28. .if n .po 0
  29. .ds Fx fIHylas-1FAXs+1fP
  30. .TH CQTEST ${MANNUM1_8} "October 3, 1995"
  31. .SH NAME
  32. cqtest - *(Fx copy quality checking test program
  33. .SH SYNOPSIS
  34. .B ${SBIN}/cqtest
  35. [
  36. .I options
  37. ] input.tif
  38. .SH DESCRIPTION
  39. .I cqtest
  40. is a program for testing the copy quality checking support in
  41. the *(Fx software (specifically, in the
  42. .IR faxgetty (${MANNUM1_8})
  43. program).
  44. .I cqtest
  45. takes a
  46. .SM TIFF/F
  47. (c
  48. .SM TIFF
  49. Class F) file and
  50. generates a new
  51. .SM TIFF/F
  52. file that is a copy of the input file, but with any erroneous scanlines
  53. replaced/regenerated.
  54. In addition,
  55. .I cqtest
  56. prints diagnostic messages describing its actions and indicates whether
  57. the input data has acceptable copy quality according to the copy
  58. quality checking threshold parameters.
  59. Options are provided for specifying 
  60. copy quality checking threshold parameters
  61. .SH OPTIONS
  62. .TP 14
  63. .BI -m " badlines"
  64. Set the maximum consecutive bad lines of data that may
  65. appear in each acceptable page of input data.
  66. This is equivalent to the
  67. .B MaxConsecutiveBadLines
  68. configuration parameter; c.f.
  69. .IR hylafax-config (${MANNUM4_5}).
  70. By default 
  71. .I cqtest
  72. accepts no more than 5 consecutive bad lines in a page.
  73. .TP
  74. .BI -o " file"
  75. Write output to
  76. .IR file .
  77. By default output is written to the file
  78. .BR cq.tif .
  79. .TP
  80. .BI -p " %goodlines"
  81. Set the minimum percentage of ``good lines'' of data that
  82. may appear in acceptable page of input data.
  83. A line is good if it decodes without error to a row of pixels
  84. that is the expected width.
  85. This is equivalent to the
  86. .B PercentGoodLines
  87. configuration parameter; c.f.
  88. .IR hylafax-config (${MANNUM4_5}).
  89. By default 
  90. .I cqtest
  91. requires that 95% of the rows of each page be good.
  92. .SH EXAMPLES
  93. The following shows a multi-page, high-resolution document with a
  94. single error on each page.  Each page has acceptable
  95. copy quality using the default threshold parameters.
  96. .PP
  97. .nf
  98. hyla% ${SBIN}/cqtest ~/tiff/pics/faxix.tif
  99. 1728 x 297, 7.7 line/mm, 1-D MH, lsb-to-msb
  100. RECV/CQ: Bad 1D pixel count, row 245, got 1616, expected 1728
  101. RECV: 2234 total lines, 1 bad lines, 1 consecutive bad lines
  102. 1728 x 297, 7.7 line/mm, 1-D MH, lsb-to-msb
  103. RECV/CQ: Bad 1D pixel count, row 148, got 3023, expected 1728
  104. RECV: 2234 total lines, 1 bad lines, 1 consecutive bad lines
  105. 1728 x 297, 7.7 line/mm, 1-D MH, lsb-to-msb
  106. RECV/CQ: Bad 1D pixel count, row 151, got 1722, expected 1728
  107. RECV: 2234 total lines, 1 bad lines, 1 consecutive bad lines
  108. 1728 x 297, 7.7 line/mm, 1-D MH, lsb-to-msb
  109. RECV/CQ: Bad 1D pixel count, row 148, got 1776, expected 1728
  110. RECV: 2234 total lines, 1 bad lines, 1 consecutive bad lines
  111. .fi
  112. .SH "SEE ALSO"
  113. .IR faxgetty (${MANNUM1_8}),
  114. .IR hylafax-config (${MANNUM4_5})