Previous: silx_initEncStateUp: Silx Encode API DocumentationNext: silx_setJpegOptions
silx_setGeneralEncOptions  (from silx_encode_api.c)

Summary

Parameters

cookie SilxEncCookie
*grayHalftone Flag to convert halftones to gray images. Default is DGP_FALSE.
*deskew Flag to attempt to do deskew when set to DGP_TRUE. (Default= DGP_FALSE).
*deskewAccuracy Deskew accuracy: 0 (fast) to 5 (accurate)(Default = 3)
*outputTokRes Default input file resolution. Only used if no resolution specified in file (Default = 300)
**baselineOrient Baseline deskewing orientation ("d[own]", "l[eft]", "r[ight]", or "u[p]")
*rotation Rotate clockwise by this multiple of pi/2 before encoding(Default = 0)
*jbig2Profile Jbig2 profile(Default = 2)
*g4Tokens Flag to encode singleton and outlier tokens as group 4 when set to DGP_TRUE. (Default = DGP_FALSE)
*tokenSize Flag disables standard limit of 10% of the page size for max size of tokens when set to DGP_TRUE. (Defalut = DGP_FALSE)
*verbose Flag to verbose output when set to DGP_TRUE. (Default = DGP_FALSE)
*membond Token dictionary memory upper limit [-1 / 1 / 2 / 3] to stand for [disable / 1 Meg / 2 Meg / 3 Meg]. Default is -1
*no_err_out Flag to disable error output, when set to DGP_TRUE. (Default = DGP_FALSE)
*lossless, Flag to encode in full lossless mode (electronic source) when set to DGP_TRUE. (Default = DGP_FALSE)
*incrementalDict Page interval for incremental dictionaries. Default is 50 pages.
*clearDict Page interval for clearing dictionaries. Default is 100 pages.
*redTokNoise Flag to reduce token noise for each page when set to DGP_TRUE. Color images only. (Default = DGP_FALSE)
*jb2Only Flag to output jb2 stream instead of TFX file when set to DGP_TRUE. (Default = DGP_FALSE)