A
Ajay Daptardar
Hi,
Consider the foll:
// codec.h
template <class T, class UT>
class codec {
public:
enum PREDICTOR_TYPE {NO_PREDICTOR, UNIT_DELAY_PREDICTOR};
/**
* Default constructor. Set the configuration parameters for the codec.
*
* @param n - Data resolution in bits per sample. 0 < n <= 32.
* @param J - Block length for a coded data set (CDS). J = 8 or 16.
* @param L - No. of CDSes in a packet. 0 < L <= 4096.
* @param r - No. of CDSs between references. 0 < r <= 256.
* @param ptype - Type of predictor to be used.
* @param sgn - Sense of digital signal, true if bipolar, false if positive.
*/
codec(int n, int J, int L, int r, int ptype, bool sgn);
template <class T, class UT>
Consider the foll:
// codec.h
template <class T, class UT>
class codec {
public:
enum PREDICTOR_TYPE {NO_PREDICTOR, UNIT_DELAY_PREDICTOR};
/**
* Default constructor. Set the configuration parameters for the codec.
*
* @param n - Data resolution in bits per sample. 0 < n <= 32.
* @param J - Block length for a coded data set (CDS). J = 8 or 16.
* @param L - No. of CDSes in a packet. 0 < L <= 4096.
* @param r - No. of CDSs between references. 0 < r <= 256.
* @param ptype - Type of predictor to be used.
* @param sgn - Sense of digital signal, true if bipolar, false if positive.
*/
codec(int n, int J, int L, int r, int ptype, bool sgn);
template <class T, class UT>