Displaying 2 results from an estimated 2 matches for "encode_known_packet".
2015 Jul 19
0
Bug in ARM fixed-point ASM?
More data:
On My OS X machine, with no ASM, I get the following result which agrees
with the Raspberry Pi 2:
$ ./encode_known_packet
Encoded to bytes: 29
Packet size: 0x29
d0 7f 29 1a fa 2b 33 81
70 22 58 6a 3b 0f 3f b5
66 ff ce da 93 9b c2 e9
f1 7a d0 61 fc 0e a6 75
9c 2b 8e 14 92 d6 20 09
c6 00 00 00 00 00 00 00
"make check" indicates 12 tests all passed.
It looks like this is an Opus ARM ASM bug which manifests on...
2015 Jul 19
4
Bug in ARM fixed-point ASM?
...ui = 0;
printf("Packet size: 0x%2x\n", uiLen);
do {
printf("%02x %02x %02x %02x %02x %02x %02x %02x\n",
bb[ui+0], bb[ui+1], bb[ui+2], bb[ui+3], bb[ui+4], bb[ui+5], bb[ui+6], bb[ui+7]);
ui += 8;
} while (ui < uiLen);
}
void opus_encode_known_packet() {
int rv = 0;
OpusEncoder *oeEncoder;
int iiBytesEncoded;
uint8_t bbOpusBits[128] __attribute__((aligned (8)));
memset(bbOpusBits, 0x00, 128);
oeEncoder = opus_encoder_create(48000, 2, OPUS_APPLICATION_RESTRICTED_LOWDELAY, &rv);
assert(rv == 0);
rv = opus_...