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