20 #ifndef __WVRATEADJUST_H
21 #define __WVRATEADJUST_H
23 #include "wvencoder.h"
24 #include "wvtimeutils.h"
31 int sampsize, irate_n, irate_d, orate_n, orate_d;
44 WvRateAdjust(
int _sampsize,
int _irate_base,
int _orate);
48 {
return irate_n / irate_d; }
50 {
return orate_n / orate_d; }
53 void init(
int _sampsize,
int _irate_base);
58 #endif // __WVRATEADJUST_H
bool flush(WvBuf &inbuf, WvBuf &outbuf, bool finish=false)
Flushes the encoder and optionally finishes it.
Based on (and interchangeable with) struct timeval.
virtual bool _encode(WvBuf &inbuf, WvBuf &outbuf, bool flush)
Template method implementation of encode().
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers...