Lines Matching full:bytes
102 unsigned char *bytes = (unsigned char *)payload;
106 samples, bytes + 1, &type, AMR_TX_WMF);
113 bytes[0] = 0xF0;
114 bytes[1] = (mMode << 3) | 0x04;
118 bytes[0] = 0xFF;
119 bytes[1] = 0xC0 | (mMode << 1) | 1;
122 bytes[length + 1] = 0;
124 bytes[i] = (bytes[i] << 6) | (bytes[i + 1] >> 2);
133 unsigned char *bytes = (unsigned char *)payload;
138 int request = bytes[0] >> 4;
141 if ((bytes[1] & 0xC4) != 0x04) {
144 type = (Frame_Type_3GPP)(bytes[1] >> 3);
149 bytes += 2;
151 if ((bytes[0] & 0x0C) || !(bytes[1] & 0x40)) {
154 type = (Frame_Type_3GPP)((bytes[0] << 1 | bytes[1] >> 7) & 0x07);
162 bytes[i] = (bytes[i] << 2) | (bytes[i + 1] >> 6);
164 bytes[length] <<= 2;
166 ++bytes;
169 if (AMRDecode(mDecoder, type, bytes, samples, MIME_IETF) != length) {
226 unsigned char *bytes = (unsigned char *)payload;
230 samples, bytes, &type, AMR_TX_WMF);
233 bytes[0] = 0xC0 | (bytes[1] >> 4);
235 bytes[i] = (bytes[i] << 4) | (bytes[i + 1] >> 4);
244 unsigned char *bytes = (unsigned char *)payload;
246 while (n + 160 <= count && length >= 31 && (bytes[0] >> 4) == 0x0C) {
248 bytes[i] = (bytes[i] << 4) | (bytes[i + 1] >> 4);
250 bytes[30] <<= 4;
252 if (AMRDecode(mDecoder, AMR_122, bytes, &samples[n], MIME_IETF) != 31) {
257 bytes += 31;