comment.init(); if (streamState.pagein(page) < 0) {
public void add_tag(String tag, String contents){ if(contents==null) contents=""; add(tag+"="+contents); }
public String query(String tag){ return query(tag, 0); }
int open_nonseekable(){ // we cannot seek. Set up a 'single' (current) logical bitstream entry links=1; vi=new Info[links]; vi[0]=new Info(); // ?? vc=new Comment[links]; vc[0]=new Comment(); // ?? bug? // Try to fetch the headers, maintaining all the storage int[] foo=new int[1]; if(fetch_headers(vi[0], vc[0], foo, null)==-1) return (-1); current_serialno=foo[0]; make_decode_ready(); return 0; }
public int header_out(Packet op){ Buffer opb=new Buffer(); opb.writeinit(); if(pack(opb)!=0) return OV_EIMPL; op.packet_base=new byte[opb.bytes()]; op.packet=0; op.bytes=opb.bytes(); System.arraycopy(opb.buffer(), 0, op.packet_base, 0, op.bytes); op.b_o_s=0; op.e_o_s=0; op.granulepos=0; return 0; }
private int query(byte[] tag, int count){ int i=0; int found=0; int fulltaglen=tag.length+1; byte[] fulltag=new byte[fulltaglen]; System.arraycopy(tag, 0, fulltag, 0, tag.length); fulltag[tag.length]=(byte)'='; for(i=0; i<comments; i++){ if(tagcompare(user_comments[i], fulltag, fulltaglen)){ if(count==found){ // We return a pointer to the data, not a copy //return user_comments[i] + taglen + 1; return i; } else{ found++; } } } return -1; }
return (vc.unpack(opb)); case 0x05: // least significant *bit* is read first if(rate==0||vc.vendor==null){
int open_nonseekable(){ // we cannot seek. Set up a 'single' (current) logical bitstream entry links=1; vi=new Info[links]; vi[0]=new Info(); // ?? vc=new Comment[links]; vc[0]=new Comment(); // ?? bug? // Try to fetch the headers, maintaining all the storage int[] foo=new int[1]; if(fetch_headers(vi[0], vc[0], foo, null)==-1) return (-1); current_serialno=foo[0]; make_decode_ready(); return 0; }
public int header_out(Packet op) { Buffer opb = new Buffer(); opb.writeinit(); if (pack(opb) != 0) return OV_EIMPL; op.packet_base = new byte[opb.bytes()]; op.packet = 0; op.bytes = opb.bytes(); System.arraycopy(opb.buffer(), 0, op.packet_base, 0, op.bytes); op.b_o_s = 0; op.e_o_s = 0; op.granulepos = 0; return 0; }
private int query(byte[] tag, int count){ int i=0; int found=0; int fulltaglen=tag.length+1; byte[] fulltag=new byte[fulltaglen]; System.arraycopy(tag, 0, fulltag, 0, tag.length); fulltag[tag.length]=(byte)'='; for(i=0; i<comments; i++){ if(tagcompare(user_comments[i], fulltag, fulltaglen)){ if(count==found){ // We return a pointer to the data, not a copy //return user_comments[i] + taglen + 1; return i; } else{ found++; } } } return -1; }
return (vc.unpack(opb)); case 0x05: // least significant *bit* is read first if(rate==0||vc.vendor==null){
comment.init(); if (streamState.pagein(page) < 0) {