"L. Spiro Engine"
Classes | Public Types | Static Public Member Functions

lsi::CTgt Class Reference

Implementation of a tag-tree coder (TGT). More...

#include <LSITgt.h>

List of all members.

Classes

struct  opj_tgt_node_t
struct  opj_tgt_tree_t

Public Types

typedef struct
lsi::CTgt::opj_tgt_node_t
LPopj_tgt_node_t
typedef struct
lsi::CTgt::opj_tgt_node_t 
LPCopj_tgt_node_t
typedef struct
lsi::CTgt::opj_tgt_tree_t
LPopj_tgt_tree_t
typedef struct
lsi::CTgt::opj_tgt_tree_t 
LPCopj_tgt_tree_t

Static Public Member Functions

static opj_tgt_tree_t *LSE_CALL tgt_create (LSINT32 _i32NumLeafSh, LSINT32 _i32NumLeafSv)
static LSVOID LSE_CALL tgt_destroy (opj_tgt_tree_t *_pttTree)
static LSVOID LSE_CALL tgt_reset (opj_tgt_tree_t *_pttTree)
static LSVOID LSE_CALL tgt_setvalue (opj_tgt_tree_t *_pttTree, LSINT32 _i32LeafNo, LSINT32 _i32Value)
static LSVOID LSE_CALL tgt_encode (CBio::opj_bio_t *_pbBio, opj_tgt_tree_t *_pttTree, LSINT32 _i32LeafNo, LSINT32 _i32Threshold)
static LSINT32 LSE_CALL tgt_decode (CBio::opj_bio_t *_pbBio, opj_tgt_tree_t *_pttTree, LSINT32 _i32LeafNo, LSINT32 _i32Threshold)

Detailed Description

Implementation of a tag-tree coder (TGT).

Class CTgt Description: Implementation of a tag-tree coder (TGT).


Member Typedef Documentation

Tag node

Tag tree


Member Function Documentation

static opj_tgt_tree_t* LSE_CALL lsi::CTgt::tgt_create ( LSINT32  _i32NumLeafSh,
LSINT32  _i32NumLeafSv 
) [static]

Create a tag-tree.

Parameters:
_i32NumLeafShWidth of the array of leafs of the tree.
_i32NumLeafSvHeight of the array of leafs of the tree.
Returns:
Returns a new tag-tree if successful, returns NULL otherwise.
static LSINT32 LSE_CALL lsi::CTgt::tgt_decode ( CBio::opj_bio_t _pbBio,
opj_tgt_tree_t _pttTree,
LSINT32  _i32LeafNo,
LSINT32  _i32Threshold 
) [static]

Decode the value of a leaf of the tag-tree up to a given _i32Threshold.

Parameters:
_pbBioPointer to a BIO handle.
_pttTreeTag-tree to decode.
_i32LeafNoNumber that identifies the leaf to decode.
_i32ThresholdThreshold to use when decoding value of the leaf.
Returns:
Returns 1 if the node's value < threshold, returns 0 otherwise.
static LSVOID LSE_CALL lsi::CTgt::tgt_destroy ( opj_tgt_tree_t _pttTree) [static]

Destroy a tag-tree, liberating memory.

Parameters:
_pttTreeTag-tree to destroy.
static LSVOID LSE_CALL lsi::CTgt::tgt_encode ( CBio::opj_bio_t _pbBio,
opj_tgt_tree_t _pttTree,
LSINT32  _i32LeafNo,
LSINT32  _i32Threshold 
) [static]

Encode the value of a leaf of the tag-tree up to a given threshold.

Parameters:
_pbBioPointer to a BIO handle.
_pttTreeTag-tree to modify.
_i32LeafNoNumber that identifies the leaf to encode.
_i32ThresholdThreshold to use when encoding value of the leaf.
static LSVOID LSE_CALL lsi::CTgt::tgt_reset ( opj_tgt_tree_t _pttTree) [static]

Reset a tag-tree (set all leaves to 0).

Parameters:
_pttTreeTag-tree to reset.
static LSVOID LSE_CALL lsi::CTgt::tgt_setvalue ( opj_tgt_tree_t _pttTree,
LSINT32  _i32LeafNo,
LSINT32  _i32Value 
) [static]

Set the value of a leaf of a tag-tree.

Parameters:
_pttTreeTag-tree to modify.
_i32LeafNoNumber that identifies the leaf to modify.
_i32ValueNew value of the leaf.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator