#include <DCFmpacket_Rtrsmra_double_array.h>
Inheritance diagram for DCFmpacket< Rtrsmra< double, array > >:


Public Member Functions | |
| DCFmpacket (const int, const int, const int, DCFencode< Rtrsmra< double, array > > &) | |
| void | encode (Rtrsmra< double, array > &, const char) |
| DCFmpacket< Rtrsmra< double, array > > & | operator() (Rtrsmra< double, array > &, const char) |
| void | replace (Rtrsmra< double, array > &) |
| void | setencode (const int, const int, const int, DCFencode< Rtrsmra< double, array > > &) |
| void | setencode (const int sizebmax, const int bplen_sizeb, const int bplen_n) |
Protected Attributes | |
| DCFencode< Rtrsmra< double, array > > | _enc |
|
||||||||||||||||||||
|
Definition at line 12 of file DCFmpacket_Rtrsmra_double_array.cpp.
00016 : DCFmpacketBase(sizebmax, bplen_sizeb, bplen_n) { 00017 00018 _enc=enc; 00019 00020 }; |
|
||||||||||||
|
Definition at line 44 of file DCFmpacket_Rtrsmra_double_array.cpp.
00047 {
00048
00049 double tmp;
00050 bytepack bp;
00051
00052 int n;
00053
00054 int a;
00055
00056 if (sw(mcode)) { n=((( x.mrastep() )&( (1<<x.mmax()) -1 ) )>> m(mcode)); }
00057 else { n=0; }
00058
00059 clear();
00060 set(mcode,n);
00061
00062 for(a=0;a<=_enc.amax();a++) {
00063 if (sw(mcode)) { tmp=x.wav(a,m(mcode)); }
00064 else { tmp=x.scal(a,m(mcode)); }
00065 if (fabs(tmp)>=_enc.quantcoef()) {
00066 put( bp(a,_enc.bplen_a()) );
00067 put( bp(tmp,_enc.bplen_coef()) );
00068 }
00069 }
00070
00071 };
|
|
||||||||||||
|
Definition at line 34 of file DCFmpacket_Rtrsmra_double_array.cpp.
00037 {
00038
00039 DCFmpacket< Rtrsmra<double,array> >::encode(x,mcode);
00040 return *this;
00041
00042 };
|
|
|
Definition at line 74 of file DCFmpacket_Rtrsmra_double_array.cpp. References j, and bytepack.size().
00074 {
00075
00076 int next;
00077 int i;
00078 int j;
00079 int a;
00080 int a1;
00081 double tmp;
00082 bytepack bp;
00083
00084 next=0;
00085 a=0;
00086 for(i=0;i<(sizeb()/(_enc.bplen_a()+_enc.bplen_coef()));i++) {
00087 bp(int(0),_enc.bplen_a());
00088 for(j=0;j<bp.size();j++) { bp[j]=_ptmpacket[next++]; }
00089 a1=int(bp);
00090
00091 bp(0,_enc.bplen_coef());
00092 for(j=0;j<bp.size();j++) { bp[j]=_ptmpacket[next++]; }
00093 tmp=double(bp);
00094
00095 while (a<a1) {
00096 if (sw()) { x.wav(a,m(),0); }
00097 else { x.scal(a,m(),0); }
00098 a++;
00099 }
00100 if (sw()) { x.wav(a,m(),tmp); }
00101 else { x.scal(a,m(),tmp); }
00102 a++;
00103 }
00104
00105 while (a<=_enc.amax()) {
00106 if (sw()) { x.wav(a,m(),0); }
00107 else { x.scal(a,m(),0); }
00108 a++;
00109 }
00110
00111 };
|
|
||||||||||||||||||||
|
Definition at line 22 of file DCFmpacket_Rtrsmra_double_array.cpp.
|
|
||||||||||||||||
|
Reimplemented from DCFmpacketBase. Definition at line 26 of file DCFmpacket_Rtrsmra_double_array.h. References DCFmpacketBase.setencode().
00030 {
00031 DCFmpacketBase::setencode( sizebmax, bplen_sizeb, bplen_n );
00032 }
|
|
|
Definition at line 53 of file DCFmpacket_Rtrsmra_double_array.h. |
1.3.6