ESA JPIP server
0.1
|
Sub-class of the cache model class used to identify a codestream. More...
#include <cache_model.h>
Public Member Functions | |
Codestream () | |
Initializes all the members to zero. More... | |
Codestream (const Codestream &model) | |
Copy constructor. More... | |
Codestream & | operator= (const Codestream &model) |
Copy assignment. More... | |
Codestream & | operator+= (const Codestream &model) |
Add the content of the given codestream cache model. More... | |
template<typename T > | |
T & | SerializeWith (T &stream) |
int | GetMainHeader () const |
Returns the amount of the main header. More... | |
int | GetTileHeader () const |
Returns the amount of the tile header. More... | |
int | AddToMainHeader (int amount, bool complete=false) |
Increases the amount of the main header. More... | |
int | AddToTileHeader (int amount, bool complete=false) |
Increases the amount of the tile header. More... | |
int | GetPrecinct (int num_precinct) |
Returns the amount of a precinct. More... | |
int | AddToPrecinct (int num_precinct, int amount, bool complete=false) |
Increases the amount of a precinct. More... | |
void | Pack (int min_sum=1) |
Packs the information stored regarding the precincts, removing those initial elements that are consecutive and completes. More... | |
Private Attributes | |
int | header |
Amount for the header. More... | |
int | tile_header |
Amount for the tile-header. More... | |
vector< int > | precincts |
Amount for the precincts. More... | |
int | min_precinct |
Minimum identifier of the non-consecutive precinct completely sent. More... | |
Sub-class of the cache model class used to identify a codestream.
This class is serializable.
|
inline |
Initializes all the members to zero.
|
inline |
Copy constructor.
|
inline |
Increases the amount of the main header.
amount | Amount increment. |
complete | true if the main header is complete after the increment. |
|
inline |
Increases the amount of a precinct.
num_precinct | Index number of the precinct. |
amount | Amount increment. |
complete | true if the precinct is complete after the increment. |
|
inline |
Increases the amount of the tile header.
amount | Amount increment. |
complete | true if the tile header is complete after the increment. |
|
inline |
Returns the amount of the main header.
|
inline |
Returns the amount of a precinct.
num_precinct | Index number of the precinct. |
|
inline |
Returns the amount of the tile header.
|
inline |
Add the content of the given codestream cache model.
|
inline |
Copy assignment.
|
inline |
Packs the information stored regarding the precincts, removing those initial elements that are consecutive and completes.
min_sum | Only the packing is performed if there are a number of items equal or greater than this value (1 by default). |
|
inline |
|
private |
Amount for the header.
|
private |
Minimum identifier of the non-consecutive precinct completely sent.
All the initial precincts already sent completely to the client are removed, so this value contains the next precinct. The vector precincts
is related to the precincts starting from this index.
|
private |
Amount for the precincts.
|
private |
Amount for the tile-header.