~ubuntu-branches/ubuntu/raring/gst-plugins-good0.10/raring-proposed

« back to all changes in this revision

Viewing changes to farsight/dtmf/gstdtmfcommon.h

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-02-09 16:44:53 UTC
  • mfrom: (40.2.38 experimental)
  • Revision ID: package-import@ubuntu.com-20120209164453-6hjokwrvdn42zopb
Tags: 0.10.30.3-1ubuntu1
* Merge from Debian experimental, remaining changes:
  - 04_move_farsight_plugins_to_good.patch
    Import autoconvert, dtmf, liveadder, rptmux from -plugins-bad
  - 05_move_shm_to_good.patch
    Import shm from -plugins-bad.
  - 07_move-camerabin.patch
    Import camerabin, camerabin2, jpegformat and basecamerabinsrc
    from -plugins-bad.
  - control*:
    * Drop dependency from gstreamer0.10-plugins-good on
      gstreamer0.10-gconf. It pulls gconf and gtk3 onto the Kubuntu cd.
    * Use Breaks instead of Conflicts.
    * Add a 'Pre-Depends: ${misc:Pre-Depends}' to the plugin package,
      since we're shipping shared libraries in the package that Debian
      isn't.
* Update the patches by pulling new version of the code from
  -plugins-bad 0.10.22.3.

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
#define MIN_INTER_DIGIT_INTERVAL 100     /* ms */
 
6
#define MIN_PULSE_DURATION       250     /* ms */
 
7
 
 
8
#define MIN_VOLUME               0
 
9
#define MAX_VOLUME               36
 
10
 
 
11
#define MIN_EVENT                0
 
12
#define MAX_EVENT                15
 
13
#define MIN_EVENT_STRING         "0"
 
14
#define MAX_EVENT_STRING         "15"
 
15
 
 
16
#ifndef M_PI
 
17
#define M_PI           3.14159265358979323846  /* pi */
 
18
#endif
 
19
 
 
20
typedef struct
 
21
{
 
22
  unsigned event:8;             /* Current DTMF event */
 
23
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
 
24
  unsigned volume:6;            /* power level of the tone, in dBm0 */
 
25
  unsigned r:1;                 /* Reserved-bit */
 
26
  unsigned e:1;                 /* End-bit */
 
27
#elif G_BYTE_ORDER == G_BIG_ENDIAN
 
28
  unsigned e:1;                 /* End-bit */
 
29
  unsigned r:1;                 /* Reserved-bit */
 
30
  unsigned volume:6;            /* power level of the tone, in dBm0 */
 
31
#else
 
32
#error "G_BYTE_ORDER should be big or little endian."
 
33
#endif
 
34
  unsigned duration:16;         /* Duration of digit, in timestamp units */
 
35
} GstRTPDTMFPayload;
 
36
 
 
37
#endif /* __GST_RTP_DTMF_COMMON_H__ */