Lines Matching defs:bytes
111 static uint32_t uint32_high_low(unsigned char const *bytes)
113 uint32_t const hh = bytes[0];
114 uint32_t const hl = bytes[1];
115 uint32_t const lh = bytes[2];
116 uint32_t const ll = bytes[3];
123 unsigned char bytes[10];
124 memset(bytes, 0, 10);
125 fread(bytes, 1, 10, fp);
127 int32_t const s = (bytes[0] & 0x80);
128 int32_t const e_h = (bytes[0] & 0x7F);
129 int32_t const e_l = bytes[1];
131 uint32_t const hm = uint32_high_low(bytes + 2);
132 uint32_t const lm = uint32_high_low(bytes + 6);
156 unsigned char bytes[2] = { 0, 0 };
157 fread(bytes, 1, 2, fp);
159 uint16_t const l = bytes[0];
160 uint16_t const h = bytes[1];
169 unsigned char bytes[4] = { 0, 0, 0, 0 };
170 fread(bytes, 1, 4, fp);
172 uint32_t const ll = bytes[0];
173 uint32_t const lh = bytes[1];
174 uint32_t const hl = bytes[2];
175 uint32_t const hh = bytes[3];
183 unsigned char bytes[2] = { 0, 0 };
184 fread(bytes, 1, 2, fp);
186 uint16_t const h = bytes[0];
187 uint16_t const l = bytes[1];
195 unsigned char bytes[4] = { 0, 0, 0, 0 };
196 fread(bytes, 1, 4, fp);
197 return uint32_high_low(bytes);
203 unsigned char bytes[2];
204 bytes[0] = (val & 0xff);
205 bytes[1] = ((val >> 8) & 0xff);
206 fwrite(bytes, 1, 2, fp);
212 unsigned char bytes[4];
213 bytes[0] = (val & 0xff);
214 bytes[1] = ((val >> 8) & 0xff);
215 bytes[2] = ((val >> 16) & 0xff);
216 bytes[3] = ((val >> 24) & 0xff);
217 fwrite(bytes, 1, 4, fp);
1029 int bytes = (bits + 7) / 8;
1033 write_32_bits_low_high(fp, pcmbytes + 44 - 8); /* length in bytes without header */
1039 write_32_bits_low_high(fp, freq * channels * bytes); /* bytes per second */
1040 write_16_bits_low_high(fp, channels * bytes); /* bytes per sample time */
1043 write_32_bits_low_high(fp, pcmbytes); /* length in bytes of raw PCM data */
1266 /* try file size, assume 2 bytes per sample */
1503 /*DEBUGF("'fmt' chunk too short (only %ld bytes)!", ui32_cksize);*/
1523 /* DEBUGF(" skipping %d bytes\n", ui32_cksize); */
1615 error_printf("ERROR: block size of input sound data is not 0 bytes\n");
1621 error_printf("Block offset is not 0 bytes in '%s'\n", file_name);
1940 /* try file size, assume 2 bytes per sample */
1988 /* try file size, assume 2 bytes per sample */
2275 /* skip rest of AID, except for 6 bytes we have already read */
2278 /* read 4 more bytes to set up buffer for MP3 header check */