Lines Matching refs:header
30 return((int)(og->header[4]));
34 return((int)(og->header[5]&0x01));
38 return((int)(og->header[5]&0x02));
42 return((int)(og->header[5]&0x04));
46 unsigned char *page=og->header;
59 return(og->header[14] |
60 (og->header[15]<<8) |
61 (og->header[16]<<16) |
62 (og->header[17]<<24));
66 return(og->header[18] |
67 (og->header[19]<<8) |
68 (og->header[20]<<16) |
69 (og->header[21]<<24));
92 int i,n=og->header[26],count=0;
94 if(og->header[27+i]<255)count++;
286 og->header[22]=0;
287 og->header[23]=0;
288 og->header[24]=0;
289 og->header[25]=0;
292 crc_reg=(crc_reg<<8)^crc_lookup[((crc_reg >> 24)&0xff)^og->header[i]];
296 og->header[22]=(unsigned char)(crc_reg&0xff);
297 og->header[23]=(unsigned char)((crc_reg>>8)&0xff);
298 og->header[24]=(unsigned char)((crc_reg>>16)&0xff);
299 og->header[25]=(unsigned char)((crc_reg>>24)&0xff);
397 /* If this is the initial header case, the first page must only include
398 the initial header packet */
399 if(os->b_o_s==0){ /* 'initial header page' case */
416 /* construct the header in temp storage */
417 memcpy(os->header,"OggS",4);
420 os->header[4]=0x00;
423 os->header[5]=0x00;
424 if((os->lacing_vals[0]&0x100)==0)os->header[5]|=0x01;
426 if(os->b_o_s==0)os->header[5]|=0x02;
428 if(os->e_o_s && os->lacing_fill==vals)os->header[5]|=0x04;
433 os->header[i]=(unsigned char)(granule_pos&0xff);
441 os->header[i]=(unsigned char)(serialno&0xff);
446 /* 32 bits of page counter (we have both counter and page header
456 os->header[i]=(unsigned char)(pageno&0xff);
462 os->header[22]=0;
463 os->header[23]=0;
464 os->header[24]=0;
465 os->header[25]=0;
468 os->header[26]=(unsigned char)(vals&0xff);
470 bytes+=os->header[i+27]=(unsigned char)(os->lacing_vals[i]&0xff);
473 og->header=os->header;
504 (os->lacing_fill&&!os->b_o_s)){ /* 'initial header page' case */
622 if(bytes<27)return(0); /* not enough for a header */
628 if(bytes<headerbytes)return(0); /* not enough for header + seg table */
641 /* Grab the checksum bytes, set the header field to zero */
649 log.header=page;
673 og->header=page;
745 unsigned char *header=og->header;
757 int segments=header[26];
817 int val=header[27+segptr];
837 int val=header[27+segptr];
1026 void check_page(unsigned char *data,const int *header,ogg_page *og){
1036 /* Test header */
1038 if(og->header[j]!=header[j]){
1039 fprintf(stderr,"header content mismatch at pos %ld:\n",j);
1040 for(j=0;j<header[26]+27;j++)
1041 fprintf(stderr," (%ld)%02x:%02x",j,header[j],og->header[j]);
1046 if(og->header_len!=header[26]+27){
1047 fprintf(stderr,"header length incorrect! (%ld!=%d)\n",
1048 og->header_len,header[26]+27);
1057 og->header[0],og->header[1],og->header[2],og->header[3],
1058 (int)og->header[4],(int)og->header[5]);
1061 (og->header[9]<<24)|(og->header[8]<<16)|
1062 (og->header[7]<<8)|og->header[6],
1063 (og->header[17]<<24)|(og->header[16]<<16)|
1064 (og->header[15]<<8)|og->header[14],
1065 ((long)(og->header[21])<<24)|(og->header[20]<<16)|
1066 (og->header[19]<<8)|og->header[18]);
1069 (int)og->header[22],(int)og->header[23],
1070 (int)og->header[24],(int)og->header[25],
1071 (int)og->header[26]);
1074 fprintf(stderr,"%d ",(int)og->header[j]);
1080 memcpy(temp,og->header,og->header_len);
1081 og->header=temp;
1089 _ogg_free (og->header);
1357 memcpy(next,og.header,byteskipcount-byteskip);
1631 memcpy(ogg_sync_buffer(&oy,og[i].header_len),og[i].header,
1676 memcpy(ogg_sync_buffer(&oy,og[i].header_len),og[i].header,
1719 memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
1724 /* Test fractional page inputs: incomplete fixed header */
1725 memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header+3,
1730 /* Test fractional page inputs: incomplete header */
1731 memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header+23,
1738 memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header+28,
1761 memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
1769 memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
1775 memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header+20,
1797 memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
1805 memcpy(ogg_sync_buffer(&oy,og[2].header_len),og[2].header,
1812 memcpy(ogg_sync_buffer(&oy,og[2].header_len),og[2].header+20,
1829 memcpy(ogg_sync_buffer(&oy,og[1].header_len),og[1].header,
1837 memcpy(ogg_sync_buffer(&oy,og[2].header_len),og[2].header,
1841 memcpy(ogg_sync_buffer(&oy,og[2].header_len),og[2].header,
1851 memcpy(ogg_sync_buffer(&oy,og[3].header_len),og[3].header,