~ubuntu-branches/ubuntu/quantal/gst-plugins-bad0.10/quantal-proposed

« back to all changes in this revision

Viewing changes to gst/dtmf/gstrtpdtmfcommon.h

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-07-19 14:32:43 UTC
  • mfrom: (18.4.21 sid)
  • Revision ID: james.westby@ubuntu.com-20110719143243-p7pnkh45akfp0ihk
Tags: 0.10.22-2ubuntu1
* Rebased on debian unstable, remaining changes:
  - debian/gstreamer-plugins-bad.install
    * don't include dtmf, liveadder, rtpmux, autoconvert and shm, we include 
      them in -good

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#ifndef __GST_RTP_DTMF_COMMON_H__
3
 
#define __GST_RTP_DTMF_COMMON_H__
4
 
 
5
 
 
6
 
typedef struct
7
 
{
8
 
  unsigned event:8;             /* Current DTMF event */
9
 
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
10
 
  unsigned volume:6;            /* power level of the tone, in dBm0 */
11
 
  unsigned r:1;                 /* Reserved-bit */
12
 
  unsigned e:1;                 /* End-bit */
13
 
#elif G_BYTE_ORDER == G_BIG_ENDIAN
14
 
  unsigned e:1;                 /* End-bit */
15
 
  unsigned r:1;                 /* Reserved-bit */
16
 
  unsigned volume:6;            /* power level of the tone, in dBm0 */
17
 
#else
18
 
#error "G_BYTE_ORDER should be big or little endian."
19
 
#endif
20
 
  unsigned duration:16;         /* Duration of digit, in timestamp units */
21
 
} GstRTPDTMFPayload;
22
 
 
23
 
#endif /* __GST_RTP_DTMF_COMMON_H__ */