00001
00002
00003
00004
00005
00006
00007 #include "wvencoder.h"
00008
00009 WvEncoder::WvEncoder()
00010 {
00011
00012 }
00013
00014
00015 WvEncoder::~WvEncoder()
00016 {
00017
00018 }
00019
00020
00021 bool WvEncoder::isok() const
00022 {
00023
00024 return true;
00025 }
00026
00027
00028 void WvEncoder::encode(const void *in, size_t insize, bool flush)
00029 {
00030 size_t len = 0;
00031 bool go_once = flush;
00032
00033
00034 while (len < insize || go_once)
00035 {
00036 go_once = false;
00037 len += do_encode((const unsigned char *)in, insize, flush);
00038
00039
00040 }
00041 }
00042
00043