#include <DCFmpacket_Rtmra_double_scalar.h>
Inheritance diagram for DCFmpacket< Rtmra< double, scalar > >:


Public Member Functions | |
| DCFmpacket (const int, const int, const int, DCFencode< Rtmra< double, scalar > > &) | |
| void | encode (Rtmra< double, scalar > &, const char) |
| DCFmpacket< Rtmra< double, scalar > > & | operator() (Rtmra< double, scalar > &, const char) |
| void | replace (Rtmra< double, scalar > &) |
| void | setencode (const int, const int, const int, DCFencode< Rtmra< double, scalar > > &) |
| void | setencode (const int sizebmax, const int bplen_sizeb, const int bplen_n) |
Protected Attributes | |
| DCFencode< Rtmra< double, scalar > > | _enc |
|
||||||||||||||||||||
|
Definition at line 12 of file DCFmpacket_Rtmra_double_scalar.cpp.
00016 : DCFmpacketBase(sizebmax, bplen_sizeb, bplen_n) { 00017 00018 _enc=enc; 00019 00020 }; |
|
||||||||||||
|
Definition at line 42 of file DCFmpacket_Rtmra_double_scalar.cpp.
00045 {
00046
00047 double 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()) put( bp(tmp,_enc.bplen_coef()) );
00062 };
|
|
||||||||||||
|
Definition at line 34 of file DCFmpacket_Rtmra_double_scalar.cpp.
00037 {
00038 DCFmpacket< Rtmra<double,scalar> >::encode(x,mcode);
00039 return *this;
00040 };
|
|
|
Definition at line 65 of file DCFmpacket_Rtmra_double_scalar.cpp. References j, and bytepack.size().
00065 {
00066
00067 int j;
00068 double tmp;
00069 bytepack bp;
00070
00071 if (empty()) { tmp=0; }
00072 else {
00073 bp(0,_enc.bplen_coef());
00074 for(j=0;j<bp.size();j++) { bp[j]=_ptmpacket[j]; }
00075 tmp=double(bp);
00076 }
00077
00078 if (sw()) { x.wav(m(),tmp); }
00079 else { x.scal(m(),tmp); }
00080 };
|
|
||||||||||||||||||||
|
Definition at line 22 of file DCFmpacket_Rtmra_double_scalar.cpp.
|
|
||||||||||||||||
|
Reimplemented from DCFmpacketBase. Definition at line 23 of file DCFmpacket_Rtmra_double_scalar.h. References DCFmpacketBase.setencode().
00027 {
00028 DCFmpacketBase::setencode( sizebmax, bplen_sizeb, bplen_n );
00029 }
|
|
|
Definition at line 50 of file DCFmpacket_Rtmra_double_scalar.h. |
1.3.6