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

DCFencode_Rtmra_float_array.cpp

Go to the documentation of this file.
00001 // DCFencode_Rtmra_float_array.cpp
00002 //////////////////////////////////////////////////////////////////////
00003 //          (c) Copyright 2001-2002 Brown Deer Technology, LLC.
00004 //                        All rights reserved.
00005 //////////////////////////////////////////////////////////////////////
00006 //              Created:                Aug 27, 2001
00007 //              Last Modified:          May 3, 2002
00008 //////////////////////////////////////////////////////////////////////
00009 
00010 #include "DCFencode_Rtmra_float_array.h"
00011 
00012 void DCFencode< Rtmra<float,array> >::descr( ostream& os ) 
00013 {
00014    os << "DCF DESCR quantcoef= " << _quantcoef << endl;
00015    os << "DCF DESCR bplen_coef= " << _bplen_coef << endl;
00016    os << "DCF DESCR amax= " << _amax << endl;
00017    os << "DCF DESCR bplen_a= " << _bplen_a << endl;
00018 };
00019 
00020 
00021 ostream& operator << ( ostream& os, DCFencode< Rtmra<float,array> >& enc ) 
00022 {
00023    bytepack bp;
00024    os << bp( enc._quantcoef, sizeof(float) );
00025    os << bp( enc._bplen_coef, 1 );
00026    os << bp( enc._amax, sizeof(int) );
00027    os << bp( enc._bplen_a, 1 );
00028    return os;
00029 };
00030 
00031 istream& operator >> ( istream& is, DCFencode< Rtmra<float,array> >& enc ) {
00032    bytepack bp;
00033    is >> bp( 0, sizeof(float) ); enc._quantcoef = float(bp);
00034    is >> bp(0,1); enc._bplen_coef = bp;
00035    is >> bp( 0, sizeof(int) ); enc._amax = int(bp);
00036    is >> bp(0,1); enc._bplen_a = bp;
00037    return is; 
00038 };
00039 

Generated on Mon May 31 21:38:43 2004 for SR2k4 Assembler by doxygen 1.3.6