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

DCFencode_Rtrsmra_float_scalar.cpp

Go to the documentation of this file.
00001 //DCFencode_Rtrsmra_float_scalar.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_Rtrsmra_float_scalar.h"
00011 
00012 void DCFencode< Rtrsmra<float,scalar> >::descr( ostream& os ) {
00013    os << "DCF DESCR quantcoef= " << _quantcoef << endl;
00014    os << "DCF DESCR bplen_coef= " << _bplen_coef << endl;
00015 };
00016 
00017 
00018 ostream& operator << ( ostream& os, DCFencode< Rtrsmra<float,scalar> >& enc ) {
00019    bytepack bp;
00020    os << bp( enc._quantcoef, sizeof(float) );
00021    os << bp( enc._bplen_coef, 1 );
00022    return os;
00023 };
00024 
00025 istream& operator >> ( istream& is, DCFencode< Rtrsmra<float,scalar> >& enc ) {
00026    bytepack bp;
00027    is >> bp( 0, sizeof(float) ); enc._quantcoef = float(bp);
00028    is >> bp(0,1); enc._bplen_coef = bp;
00029    return is;
00030 };
00031 

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