|
ESA JPIP server
0.1
|
Contains the coding parameters of a JPEG2000 image codestream. More...
#include <coding_parameters.h>
Public Types | |
| enum | { LRCP_PROGRESSION = 0, RLCP_PROGRESSION = 1, RPCL_PROGRESSION = 2, PCRL_PROGRESSION = 3, CPRL_PROGRESSION = 4 } |
| All the progression orders defined in the JPEG2000 standard (Part 1). More... | |
| typedef SHARED_PTR< CodingParameters > | Ptr |
| Pointer to an object of this class. More... | |
Public Member Functions | |
| CodingParameters () | |
| Initializes the object. More... | |
| CodingParameters (const CodingParameters &cod_params) | |
| Copy constructor. More... | |
| const CodingParameters & | operator= (const CodingParameters &cod_params) |
| Copy assignment. More... | |
| template<typename T > | |
| T & | SerializeWith (T &stream) |
| bool | IsResolutionProgression () const |
Returns true if the progression is RLCP or RPCL. More... | |
| Size | GetPrecincts (int r, const Size &point) |
| Returns a precinct coordinate adjusted to a given resolution level. More... | |
| int | GetProgressionIndex (const Packet &packet) |
| Returns the index of a packet according to the progression order. More... | |
| int | GetPrecinctDataBinId (const Packet &packet) |
| Returns the data-bin identifier associated to the given packet. More... | |
| int | GetClosestResolution (const Size &res_size, Size *res_image_size) |
| Returns the resolution level according to the given size and the closest round policy. More... | |
| int | GetRoundUpResolution (const Size &res_size, Size *res_image_size) |
| Returns the resolution level according to the given size and the round-up round policy. More... | |
| int | GetRoundDownResolution (const Size &res_size, Size *res_image_size) |
| Returns the resolution level according to the given size and the round-down round policy. More... | |
| virtual | ~CodingParameters () |
Public Attributes | |
| Size | size |
| Image size. More... | |
| int | num_levels |
| Number of resolution levels. More... | |
| int | num_layers |
| Number of quality layers. More... | |
| int | progression |
| Progression order. More... | |
| int | num_components |
| Number of components. More... | |
| vector< Size > | precinct_size |
| Precinct sizes of each resolution level. More... | |
Private Member Functions | |
| void | FillTotalPrecinctsVector () |
Fills the vector total_precincts. More... | |
| int | GetProgressionIndexRPCL (int l, int r, int c, int px, int py) |
| Returns the index of a packet according to the RPCL progression. More... | |
| int | GetProgressionIndexRLCP (int l, int r, int c, int px, int py) |
| Returns the index of a packet according to the RLCP progression. More... | |
| int | GetProgressionIndexLRCP (int l, int r, int c, int px, int py) |
| Returns the index of a packet according to the LRCP progression. More... | |
Private Attributes | |
| vector< int > | total_precincts |
| Contains the number of precincts of each resolution level. More... | |
Friends | |
| ostream & | operator<< (ostream &out, const CodingParameters ¶ms) |
Contains the coding parameters of a JPEG2000 image codestream.
This class can be serialized and printed.
Pointer to an object of this class.
| anonymous enum |
|
inline |
Initializes the object.
|
inline |
Copy constructor.
|
inlinevirtual |
|
private |
Fills the vector total_precincts.
| int jpeg2000::CodingParameters::GetClosestResolution | ( | const Size & | res_size, |
| Size * | res_image_size | ||
| ) |
Returns the resolution level according to the given size and the closest round policy.
| res_size | Resolution size. |
| res_image_size | Image size associated to the resolution level returned. |
|
inline |
Returns the data-bin identifier associated to the given packet.
| packet | Packet information. |
Returns a precinct coordinate adjusted to a given resolution level.
| r | Resolution level. |
| point | Precinct coordinate. |
|
inline |
Returns the index of a packet according to the progression order.
| packet | Packet information. |
|
inlineprivate |
Returns the index of a packet according to the LRCP progression.
| l | Quality layer. |
| r | Resolution level. |
| c | Component. |
| px | Precinct position X. |
| py | Precinct position Y. |
|
inlineprivate |
Returns the index of a packet according to the RLCP progression.
| l | Quality layer. |
| r | Resolution level. |
| c | Component. |
| px | Precinct position X. |
| py | Precinct position Y. |
|
inlineprivate |
Returns the index of a packet according to the RPCL progression.
| l | Quality layer. |
| r | Resolution level. |
| c | Component. |
| px | Precinct position X. |
| py | Precinct position Y. |
| int jpeg2000::CodingParameters::GetRoundDownResolution | ( | const Size & | res_size, |
| Size * | res_image_size | ||
| ) |
Returns the resolution level according to the given size and the round-down round policy.
| res_size | Resolution size. |
| res_image_size | Image size associated to the resolution level returned. |
| int jpeg2000::CodingParameters::GetRoundUpResolution | ( | const Size & | res_size, |
| Size * | res_image_size | ||
| ) |
Returns the resolution level according to the given size and the round-up round policy.
| res_size | Resolution size. |
| res_image_size | Image size associated to the resolution level returned. |
|
inline |
Returns true if the progression is RLCP or RPCL.
|
inline |
Copy assignment.
|
inline |
|
friend |
| int jpeg2000::CodingParameters::num_components |
Number of components.
| int jpeg2000::CodingParameters::num_layers |
Number of quality layers.
| int jpeg2000::CodingParameters::num_levels |
Number of resolution levels.
| vector<Size> jpeg2000::CodingParameters::precinct_size |
Precinct sizes of each resolution level.
| int jpeg2000::CodingParameters::progression |
Progression order.
| Size jpeg2000::CodingParameters::size |
Image size.
|
private |
Contains the number of precincts of each resolution level.