#include <djv_jpxencoder.h>
Public Member Functions | |
| Params (const String &inJasPerConfigParams) | |
| Params (CodingMode _codingMode=cm_Int, Progression _progression=prg_LRCP, bool _noMCT=false, size_t _numLevels=5, float _rate=0, size_t _tileWidth=1024, size_t _tileHeight=1024, bool _grayOutput=false, bool _generateSOP=false, bool _generateEPH=false, bool _lazyCoding=false, bool _termAll=false, bool _segSymbols=false, bool _virtCasual=false, bool _predictableTerm=false, bool _resetProb=false, size_t _numGuardBits=0, u32 _flags=0) | |
| void | init (const String &inJasPerConfigParams) |
| String | getJasPerStyleParams () const |
| bool | operator== (const Params &r) const |
| bool | operator!= (const Params &r) const |
Public Attributes | |
| CodingMode | codingMode |
Set the coding mode. (mode) More... | |
| Progression | progression |
Set the progression order. (prg) More... | |
| bool | noMCT |
Disallow the use of any multicomponent transform. (nomct) More... | |
| size_t | numLevels |
| Set the number of resolution levels. More... | |
| float | rate |
| Specify the target rate. More... | |
| size_t | tileWidth |
Set the nominal tile width. (tilewidth) More... | |
| size_t | tileHeight |
Set the nominal tile height. (tileheight) More... | |
| size_t | precinctWidth |
Set the precinct width. (prcwidth) More... | |
| size_t | precinctHeight |
Set the precinct height. (prcheight) More... | |
| size_t | codeBlockWidth |
Set the nominal code block width. (cblkwidth) More... | |
| size_t | codeBlockHeight |
Set the nominal code block height. (cblkheight) More... | |
| bool | grayOutput |
Force grayscale output. (gray) More... | |
| bool | generateSOP |
Generate SOP marker segments. (sop) More... | |
| bool | generateEPH |
Generate EPH marker segments. (eph) More... | |
| bool | lazyCoding |
Enable lazy coding mode (a.k.a. arithmetic coding bypass). (lazy) More... | |
| bool | termAll |
Terminate all coding passes. (termall) More... | |
| bool | segSymbols |
Use segmentation symbols. (segsym) More... | |
| bool | virtCasual |
Use vertically stripe causal contexts. (vcausal) More... | |
| bool | predictableTerm |
Use predictable termination. (pterm) More... | |
| bool | resetProb |
Reset the probability models after each coding pass. (resetprob) More... | |
| size_t | numGuardBits |
Set the number of guard bits. (numgbits) More... | |
| u32 | flags |
| Flags. More... | |
| SimpleArray< float > | rates |
Specify the rates for any intermediate layers. (ilyrrates) More... | |
JPX encoder parameter.
|
inline |
Initialize the parameters with JasPer style parameter string.
| inJasPerConfigParams | JasPer configuration string. |
|
inline |
Initialize the parameters.
| _codingMode | Set the coding mode. The default is cm_Int. |
| _progression | Set the progression order. The default is prg_LRCP. |
| _noMCT | Disallow the use of any multicomponent transform. The default value is false (using MCT). |
| _numLevels | Set the number of resolution levels. It must be an integer that is greater than or equal to one. The default value is 5. |
| _rate | Specify the target rate. It is a positive real number. Since a rate of one corresponds to no compression, one should never need to explicitly specify a rate greater than one. By default, the target rate is considered to be infinite. |
| _tileWidth | Set the nominal tile width. The default is 1024 to keep compatibility with Adobe Reader JPXDecode. |
| _tileHeight | Set the nominal tile height. The default is 1024 to keep compatibility with Adobe Reader JPXDecode. |
| _grayOutput | Force grayscale output. |
| _generateSOP | Generate SOP marker segments. The default is false. |
| _generateEPH; | Generate EPH marker segments. The default is false. |
| _lazyCoding; | Enable lazy coding mode (a.k.a. arithmetic coding bypass). The default is false. |
| _termAll | Terminate all coding passes. The default is false. |
| _segSymbols | Use segmentation symbols. The default is false. |
| _virtCasual; | Use vertically stripe causal contexts. The default is false. |
| _predictableTerm; | Use predictable termination. The default is false. |
| _resetProb; | Reset the probability models after each coding pass. The default is false. |
| _numGuardBits; | Set the number of guard bits. |
| _flags; | Flags. |
| String Celartem::DjVu::JPXEncoder::Params::getJasPerStyleParams | ( | ) | const |
Gets JasPer style parameter string.
| void Celartem::DjVu::JPXEncoder::Params::init | ( | const String & | inJasPerConfigParams | ) |
Initialize the parameters with JasPer style parameter string.
| inJasPerConfigParams | JasPer configuration string. |
Referenced by Params().
|
inline |
For comparison.
| bool Celartem::DjVu::JPXEncoder::Params::operator== | ( | const Params & | r | ) | const |
For comparison.
| size_t Celartem::DjVu::JPXEncoder::Params::codeBlockHeight |
Set the nominal code block height. (cblkheight)
It must be an integer power of two. The default value is 64.
| size_t Celartem::DjVu::JPXEncoder::Params::codeBlockWidth |
Set the nominal code block width. (cblkwidth)
It must be an integer power of two. The default value is 64.
| CodingMode Celartem::DjVu::JPXEncoder::Params::codingMode |
Set the coding mode. (mode)
The default is cm_Int.
| u32 Celartem::DjVu::JPXEncoder::Params::flags |
Flags.
| bool Celartem::DjVu::JPXEncoder::Params::generateEPH |
Generate EPH marker segments. (eph)
The default is false.
| bool Celartem::DjVu::JPXEncoder::Params::generateSOP |
Generate SOP marker segments. (sop)
The default is false.
| bool Celartem::DjVu::JPXEncoder::Params::grayOutput |
Force grayscale output. (gray)
The default is false.
| bool Celartem::DjVu::JPXEncoder::Params::lazyCoding |
Enable lazy coding mode (a.k.a. arithmetic coding bypass). (lazy)
The default is false.
| bool Celartem::DjVu::JPXEncoder::Params::noMCT |
Disallow the use of any multicomponent transform. (nomct)
The default value is false (using MCT).
| size_t Celartem::DjVu::JPXEncoder::Params::numGuardBits |
Set the number of guard bits. (numgbits)
| size_t Celartem::DjVu::JPXEncoder::Params::numLevels |
Set the number of resolution levels.
It must be an integer that is greater than or equal to one. The default value is 5.
| size_t Celartem::DjVu::JPXEncoder::Params::precinctHeight |
Set the precinct height. (prcheight)
It must be an integer power of two. The default value is 32768.
| size_t Celartem::DjVu::JPXEncoder::Params::precinctWidth |
Set the precinct width. (prcwidth)
It must be an integer power of two. The default value is 32768.
| bool Celartem::DjVu::JPXEncoder::Params::predictableTerm |
Use predictable termination. (pterm)
The default is false.
| Progression Celartem::DjVu::JPXEncoder::Params::progression |
Set the progression order. (prg)
The default is prg_LRCP.
| float Celartem::DjVu::JPXEncoder::Params::rate |
Specify the target rate.
It is a positive real number. Since a rate of one corresponds to no compression, one should never need to explicitly specify a rate greater than one. By default, the target rate is considered to be infinite.
| SimpleArray<float> Celartem::DjVu::JPXEncoder::Params::rates |
Specify the rates for any intermediate layers. (ilyrrates)
This is list of N rates. Each rate is a positive real number. The rates must increase monotonically. The last rate in the list should be less than or equal to the overall rate (as specified with the rate option).
| bool Celartem::DjVu::JPXEncoder::Params::resetProb |
Reset the probability models after each coding pass. (resetprob)
The default is false.
| bool Celartem::DjVu::JPXEncoder::Params::segSymbols |
Use segmentation symbols. (segsym)
The default is false.
| bool Celartem::DjVu::JPXEncoder::Params::termAll |
Terminate all coding passes. (termall)
The default is false.
| size_t Celartem::DjVu::JPXEncoder::Params::tileHeight |
Set the nominal tile height. (tileheight)
To deal with Adobe Reader JPX decoder, the default tile width/height is 1024.
| size_t Celartem::DjVu::JPXEncoder::Params::tileWidth |
Set the nominal tile width. (tilewidth)
To deal with Adobe Reader JPX decoder, the default tile width/height is 1024.
| bool Celartem::DjVu::JPXEncoder::Params::virtCasual |
Use vertically stripe causal contexts. (vcausal)
The default is false.