int main(int argc, char ** argv) {
if(argc!=5) {
- cout << "usage: " << argv[0] << " <bitmap_file> <b|r> <sample_rate> <t|s>" << endl;
+ cout << "usage: " << argv[0] << " <bitmap_file> <b|r|s> <sample_rate> <t|s>" << endl;
return 0;
}
FILE * fp = fopen(argv[1],"r");
static_bitsequence * bs;
if(string(argv[2])==string("r")) bs = new static_bitsequence_rrr02(bitseq,len,sample_rate);
+ if(string(argv[2])==string("s")) bs = new static_bitsequence_sdarray(bitseq,len);
else bs = new static_bitsequence_brw32(bitseq,len,sample_rate);
cout << "Size: " << bs->size() << endl;
cout << "bpb = " << bs->size()*8./len << endl;
+ /*for(uint kk=0;kk<30;kk++)
+ cout << bs->access(kk);
+ cout << endl;*/
+
+ /*for(uint kk=0;kk<20;kk++) {
+ bs->select_next1(kk);
+ }*/
+
if(string(argv[4])==string("t"))
test_bitsequence(bitseq,len,bs);
cout << "******************************************" << endl;
speed_select0(bs, bitseq, len);
cout << "******************************************" << endl;
speed_select1(bs, bitseq, len);
+ cout << "******************************************" << endl;
+ speed_selectnext1(bs, bitseq, len);
}