WEBRTC_{BIG, LITTLE}_ENDIAN -> WEBRTC_ARCH_{BIG, LITTLE}_ENDIAN.

Mostly to remove a long-standing TODO...

TESTED=trybots
R=turaj@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/2369005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5013 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andrew@webrtc.org
2013-10-22 10:27:23 +00:00
parent 943e3b95a6
commit 621df678c8
15 changed files with 68 additions and 85 deletions

View File

@ -31,7 +31,7 @@ int16_t WebRtcG711_EncodeA(void* state,
for (n = 0; n < len; n++) {
tempVal = (uint16_t) linear_to_alaw(speechIn[n]);
#ifdef WEBRTC_BIG_ENDIAN
#ifdef WEBRTC_ARCH_BIG_ENDIAN
if ((n & 0x1) == 1) {
encoded[n >> 1] |= ((uint16_t) tempVal);
} else {
@ -69,7 +69,7 @@ int16_t WebRtcG711_EncodeU(void* state,
for (n = 0; n < len; n++) {
tempVal = (uint16_t) linear_to_ulaw(speechIn[n]);
#ifdef WEBRTC_BIG_ENDIAN
#ifdef WEBRTC_ARCH_BIG_ENDIAN
if ((n & 0x1) == 1) {
encoded[n >> 1] |= ((uint16_t) tempVal);
} else {
@ -103,7 +103,7 @@ int16_t WebRtcG711_DecodeA(void* state,
}
for (n = 0; n < len; n++) {
#ifdef WEBRTC_BIG_ENDIAN
#ifdef WEBRTC_ARCH_BIG_ENDIAN
if ((n & 0x1) == 1) {
tempVal = ((uint16_t) encoded[n >> 1] & 0xFF);
} else {
@ -140,7 +140,7 @@ int16_t WebRtcG711_DecodeU(void* state,
}
for (n = 0; n < len; n++) {
#ifdef WEBRTC_BIG_ENDIAN
#ifdef WEBRTC_ARCH_BIG_ENDIAN
if ((n & 0x1) == 1) {
tempVal = ((uint16_t) encoded[n >> 1] & 0xFF);
} else {