Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

DCFmpacket< Rtrsmra< float, scalar > > Class Template Reference

#include <DCFmpacket_Rtrsmra_float_scalar.h>

Inheritance diagram for DCFmpacket< Rtrsmra< float, scalar > >:

Inheritance graph
[legend]
Collaboration diagram for DCFmpacket< Rtrsmra< float, scalar > >:

Collaboration graph
[legend]

Public Member Functions

 DCFmpacket (const int, const int, const int, DCFencode< Rtrsmra< float, scalar > > &)
void encode (Rtrsmra< float, scalar > &, const char)
DCFmpacket< Rtrsmra< float,
scalar > > & 
operator() (Rtrsmra< float, scalar > &, const char)
void replace (Rtrsmra< float, scalar > &)
void setencode (const int, const int, const int, DCFencode< Rtrsmra< float, scalar > > &)
void setencode (const int sizebmax, const int bplen_sizeb, const int bplen_n)

Protected Attributes

DCFencode< Rtrsmra< float,
scalar > > 
_enc

template<>
class DCFmpacket< Rtrsmra< float, scalar > >


Member Function Documentation

DCFmpacket< Rtrsmra< float, scalar > >::DCFmpacket const  int,
const  int,
const  int,
DCFencode< Rtrsmra< float, scalar > > & 
 

Definition at line 12 of file DCFmpacket_Rtrsmra_float_scalar.cpp.

00016     : DCFmpacketBase(sizebmax, bplen_sizeb, bplen_n) {
00017 
00018    _enc=enc;
00019 
00020 };

void DCFmpacket< Rtrsmra< float, scalar > >::encode Rtrsmra< float, scalar > &  ,
const  char
 

Definition at line 42 of file DCFmpacket_Rtrsmra_float_scalar.cpp.

00045       {
00046 
00047    float tmp;
00048    bytepack bp;
00049 
00050    int n;
00051 
00052    if (sw(mcode)) { n=((( x.mrastep() )&( (1<<x.mmax()) -1 ) )>> m(mcode)); } 
00053    else { n=0; }
00054 
00055    clear();
00056    set(mcode,n);
00057 
00058    if (sw(mcode)) { tmp=x.wav(m(mcode)); } 
00059    else { tmp=x.scal(m(mcode)); }
00060 
00061    if (fabs(tmp)>=_enc.quantcoef()) {
00062 #ifdef STORM_DEBUG
00063    cout << "DCFmpacket.encode(): put() : mcode, n, tmp = "
00064         << int( (unsigned char)(mcode) ) << ' ' << n << ' ' << tmp << '\n';
00065 #endif
00066       put( bp(tmp,_enc.bplen_coef()) );
00067    }
00068 
00069 };

DCFmpacket< Rtrsmra< float, scalar > > & DCFmpacket< Rtrsmra< float, scalar > >::operator() Rtrsmra< float, scalar > &  ,
const  char
 

Definition at line 34 of file DCFmpacket_Rtrsmra_float_scalar.cpp.

00037       {
00038      DCFmpacket< Rtrsmra<float,scalar> >::encode(x,mcode);
00039      return *this;
00040 };

void DCFmpacket< Rtrsmra< float, scalar > >::replace Rtrsmra< float, scalar > &   ) 
 

Definition at line 72 of file DCFmpacket_Rtrsmra_float_scalar.cpp.

References j, and bytepack.size().

00072                                                                             {
00073 
00074    int j;
00075    float tmp;
00076    bytepack bp;
00077 
00078    if (empty()) { tmp=0; }
00079    else {
00080       bp(0,_enc.bplen_coef());
00081       for(j=0;j<bp.size();j++) { bp[j]=_ptmpacket[j]; }
00082       tmp=float(bp);
00083    }
00084 
00085 #ifdef STORM_DEBUG
00086    cout << "DCFmpacket.replace(): sw m coef "
00087         << sw() << ' ' << m() << ' ' << tmp << '\n';
00088 #endif
00089 
00090    if (sw()) { x.wav(m(),tmp); } 
00091    else { x.scal(m(),tmp); }
00092 
00093 };

void DCFmpacket< Rtrsmra< float, scalar > >::setencode const  int,
const  int,
const  int,
DCFencode< Rtrsmra< float, scalar > > & 
 

Definition at line 22 of file DCFmpacket_Rtrsmra_float_scalar.cpp.

00026     {
00027 
00028    setencode(sizebmax, bplen_sizeb, bplen_n );
00029    _enc=enc;
00030 
00031 };

void DCFmpacket< Rtrsmra< float, scalar > >.setencode const int  sizebmax,
const int  bplen_sizeb,
const int  bplen_n
[virtual]
 

Reimplemented from DCFmpacketBase.

Definition at line 26 of file DCFmpacket_Rtrsmra_float_scalar.h.

References DCFmpacketBase.setencode().

00030           {
00031          DCFmpacketBase::setencode( sizebmax, bplen_sizeb, bplen_n );
00032       }


Field Documentation

DCFencode< Rtrsmra<float,scalar> > DCFmpacket< Rtrsmra< float, scalar > >._enc [protected]
 

Definition at line 53 of file DCFmpacket_Rtrsmra_float_scalar.h.


The documentation for this class was generated from the following files:
Generated on Mon May 31 21:40:57 2004 for SR2k4 Assembler by doxygen 1.3.6