summaryrefslogtreecommitdiffstats
path: root/gst/dtmf/gstrtpdtmfcommon.h
diff options
context:
space:
mode:
authorYouness Alaoui <youness.alaoui@collabora.co.uk>2008-03-20 00:51:47 +0000
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:48:04 +0100
commit0af41631f2c0e39a61b45b801305b9001b0d0e1a (patch)
tree76e3438c521c3fb9c73ba04fe53cf0b6061ee2ef /gst/dtmf/gstrtpdtmfcommon.h
parent02b94191b81c18771c396b6c1b3c4b59857a351e (diff)
downloadgst-plugins-bad-0af41631f2c0e39a61b45b801305b9001b0d0e1a.tar.gz
gst-plugins-bad-0af41631f2c0e39a61b45b801305b9001b0d0e1a.tar.bz2
gst-plugins-bad-0af41631f2c0e39a61b45b801305b9001b0d0e1a.zip
[MOVED FROM GST-P-FARSIGHT] Adding necessary files for rtpdtmfdepay
20080320005147-4f0f6-550fe22f70152f3aab3dcd7a6b02cbf81e89232d.gz
Diffstat (limited to 'gst/dtmf/gstrtpdtmfcommon.h')
-rw-r--r--gst/dtmf/gstrtpdtmfcommon.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/gst/dtmf/gstrtpdtmfcommon.h b/gst/dtmf/gstrtpdtmfcommon.h
new file mode 100644
index 00000000..097afa90
--- /dev/null
+++ b/gst/dtmf/gstrtpdtmfcommon.h
@@ -0,0 +1,22 @@
+
+#ifndef __GST_RTP_DTMF_COMMON_H__
+#define __GST_RTP_DTMF_COMMON_H__
+
+
+typedef struct {
+ unsigned event:8; /* Current DTMF event */
+#if G_BYTE_ORDER == G_LITTLE_ENDIAN
+ unsigned volume:6; /* power level of the tone, in dBm0 */
+ unsigned r:1; /* Reserved-bit */
+ unsigned e:1; /* End-bit */
+#elif G_BYTE_ORDER == G_BIG_ENDIAN
+ unsigned e:1; /* End-bit */
+ unsigned r:1; /* Reserved-bit */
+ unsigned volume:6; /* power level of the tone, in dBm0 */
+#else
+#error "G_BYTE_ORDER should be big or little endian."
+#endif
+ unsigned duration:16; /* Duration of digit, in timestamp units */
+} GstRTPDTMFPayload;
+
+#endif /* __GST_RTP_DTMF_COMMON_H__ */