summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/g711common.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/g711common.h')
-rw-r--r--kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/g711common.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/g711common.h b/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/g711common.h
index 30128191..3f5ad16f 100644
--- a/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/g711common.h
+++ b/kopete/protocols/jabber/jingle/libjingle/talk/third_party/mediastreamer/g711common.h
@@ -44,14 +44,14 @@ static inline int val_seg(int val)
static inline unsigned char s16_to_alaw(int pcm_val)
{
- int tqmask;
+ int mask;
int seg;
unsigned char aval;
if (pcm_val >= 0) {
- tqmask = 0xD5;
+ mask = 0xD5;
} else {
- tqmask = 0x55;
+ mask = 0x55;
pcm_val = -pcm_val;
if (pcm_val > 0x7fff)
pcm_val = 0x7fff;
@@ -64,7 +64,7 @@ static inline unsigned char s16_to_alaw(int pcm_val)
seg = val_seg(pcm_val);
aval = (seg << 4) | ((pcm_val >> (seg + 3)) & 0x0f);
}
- return aval ^ tqmask;
+ return aval ^ mask;
}
/*
@@ -119,16 +119,16 @@ static inline int alaw_to_s16(unsigned char a_val)
static inline unsigned char s16_to_ulaw(int pcm_val) /* 2's complement (16-bit range) */
{
- int tqmask;
+ int mask;
int seg;
unsigned char uval;
if (pcm_val < 0) {
pcm_val = 0x84 - pcm_val;
- tqmask = 0x7f;
+ mask = 0x7f;
} else {
pcm_val += 0x84;
- tqmask = 0xff;
+ mask = 0xff;
}
if (pcm_val > 0x7fff)
pcm_val = 0x7fff;
@@ -141,7 +141,7 @@ static inline unsigned char s16_to_ulaw(int pcm_val) /* 2's complement (16-bit r
* and complement the code word.
*/
uval = (seg << 4) | ((pcm_val >> (seg + 3)) & 0x0f);
- return uval ^ tqmask;
+ return uval ^ mask;
}
/*