mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
don't use underscores
Original commit message from CVS: don't use underscores
This commit is contained in:
parent
cdb18ecaa7
commit
67abe2f343
19 changed files with 51 additions and 51 deletions
|
@ -12,28 +12,28 @@ The following fields can or must (*) be specified in the structure:
|
|||
* payload: (int) [0, 255]
|
||||
For audio and video, these will normally be a media payload type as
|
||||
defined in the RTP Audio/Video Profile. For dynamicaly allocated
|
||||
payload types, this value will be >= 96 and the encoding_name must be
|
||||
payload types, this value will be >= 96 and the encoding-name must be
|
||||
set.
|
||||
|
||||
* clock_rate: (int) [0 - MAXINT]
|
||||
* clock-rate: (int) [0 - MAXINT]
|
||||
the RTP clock rate
|
||||
|
||||
ssrc: (uint) [0 - MAXINT]
|
||||
The ssrc value currently in use.
|
||||
|
||||
clock_base: (uint) [0 - MAXINT]
|
||||
clock-base: (uint) [0 - MAXINT]
|
||||
The RTP time representing time 0
|
||||
|
||||
seqnum_base:
|
||||
seqnum-base:
|
||||
The RTP sequence number representing the first rtp packet
|
||||
|
||||
encoding_name: (String) ANY
|
||||
encoding-name: (String) ANY
|
||||
typically second part of the mime type. ex. MP4V-ES. only required if
|
||||
payload type >= 96
|
||||
|
||||
encoding_params: (String) ANY
|
||||
encoding-params: (String) ANY
|
||||
extra encoding parameters (as in the SDP a=rtpmap: field). only required
|
||||
if different from the default of the encoding_name.
|
||||
if different from the default of the encoding-name.
|
||||
|
||||
Optional parameters as key/value pairs, media type specific.
|
||||
|
||||
|
@ -42,9 +42,9 @@ The following fields can or must (*) be specified in the structure:
|
|||
"application/x-rtp",
|
||||
"media", G_TYPE_STRING, "audio", -]
|
||||
"payload", G_TYPE_INT, 96, ] - required
|
||||
"clock_rate", G_TYPE_INT, 8000, -]
|
||||
"encoding_name", G_TYPE_STRING, "AMR", -] - required since payload >= 96
|
||||
"encoding_params", G_TYPE_STRING, "1", -] - optional param for AMR
|
||||
"clock-rate", G_TYPE_INT, 8000, -]
|
||||
"encoding-name", G_TYPE_STRING, "AMR", -] - required since payload >= 96
|
||||
"encoding-params", G_TYPE_STRING, "1", -] - optional param for AMR
|
||||
"octet-align", G_TYPE_BOOLEAN, TRUE, -]
|
||||
"crc", G_TYPE_BOOLEAN, FALSE, ]
|
||||
"robust-sorting", G_TYPE_BOOLEAN, FALSE, ] AMR specific params.
|
||||
|
@ -53,7 +53,7 @@ The following fields can or must (*) be specified in the structure:
|
|||
Mapping of caps to and from SDP fields:
|
||||
|
||||
m=<media> <udp port> RTP/AVP <payload> -] media and payload from caps
|
||||
a=rtpmap:<payload> <encoding_name>/<clock_rate>[/<encoding_params>]
|
||||
a=rtpmap:<payload> <encoding-name>/<clock-rate>[/<encoding-params>]
|
||||
-> when <payload> >= 96
|
||||
a=fmtp:<payload> <param>=<value>;...
|
||||
|
||||
|
|
|
@ -60,13 +60,13 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 8000, "
|
||||
"encoding_name = (string) \"AMR\", "
|
||||
"encoding_params = (string) \"1\", "
|
||||
"clock-rate = (int) 8000, "
|
||||
"encoding-name = (string) \"AMR\", "
|
||||
"encoding-params = (string) \"1\", "
|
||||
"octet-align = (boolean) TRUE, "
|
||||
"crc = (boolean) FALSE, "
|
||||
"robust-sorting = (boolean) FALSE, " "interleaving = (boolean) FALSE"
|
||||
/* following options are not needed for a decoder
|
||||
/* following options are not needed for a decoder
|
||||
*
|
||||
"mode-set = (int) [ 0, 7 ], "
|
||||
"mode-change-period = (int) [ 1, MAX ], "
|
||||
|
@ -215,16 +215,16 @@ gst_rtpamrdec_sink_setcaps (GstPad * pad, GstCaps * caps)
|
|||
rtpamrdec->octet_align = TRUE;
|
||||
}
|
||||
|
||||
if (!(params = gst_structure_get_string (structure, "encoding_params")))
|
||||
if (!(params = gst_structure_get_string (structure, "encoding-params")))
|
||||
rtpamrdec->channels = 1;
|
||||
else {
|
||||
rtpamrdec->channels = atoi (params);
|
||||
}
|
||||
|
||||
if (!gst_structure_get_int (structure, "clock_rate", &rtpamrdec->rate))
|
||||
if (!gst_structure_get_int (structure, "clock-rate", &rtpamrdec->rate))
|
||||
rtpamrdec->rate = 8000;
|
||||
|
||||
/* we require 1 channel, 8000 Hz, octet aligned, no CRC,
|
||||
/* we require 1 channel, 8000 Hz, octet aligned, no CRC,
|
||||
* no robust sorting, no interleaving for now */
|
||||
if (rtpamrdec->channels != 1)
|
||||
return FALSE;
|
||||
|
|
|
@ -60,13 +60,13 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 8000, "
|
||||
"encoding_name = (string) \"AMR\", "
|
||||
"encoding_params = (string) \"1\", "
|
||||
"clock-rate = (int) 8000, "
|
||||
"encoding-name = (string) \"AMR\", "
|
||||
"encoding-params = (string) \"1\", "
|
||||
"octet-align = (boolean) TRUE, "
|
||||
"crc = (boolean) FALSE, "
|
||||
"robust-sorting = (boolean) FALSE, " "interleaving = (boolean) FALSE"
|
||||
/* following options are not needed for a decoder
|
||||
/* following options are not needed for a decoder
|
||||
*
|
||||
"mode-set = (int) [ 0, 7 ], "
|
||||
"mode-change-period = (int) [ 1, MAX ], "
|
||||
|
@ -215,16 +215,16 @@ gst_rtpamrdec_sink_setcaps (GstPad * pad, GstCaps * caps)
|
|||
rtpamrdec->octet_align = TRUE;
|
||||
}
|
||||
|
||||
if (!(params = gst_structure_get_string (structure, "encoding_params")))
|
||||
if (!(params = gst_structure_get_string (structure, "encoding-params")))
|
||||
rtpamrdec->channels = 1;
|
||||
else {
|
||||
rtpamrdec->channels = atoi (params);
|
||||
}
|
||||
|
||||
if (!gst_structure_get_int (structure, "clock_rate", &rtpamrdec->rate))
|
||||
if (!gst_structure_get_int (structure, "clock-rate", &rtpamrdec->rate))
|
||||
rtpamrdec->rate = 8000;
|
||||
|
||||
/* we require 1 channel, 8000 Hz, octet aligned, no CRC,
|
||||
/* we require 1 channel, 8000 Hz, octet aligned, no CRC,
|
||||
* no robust sorting, no interleaving for now */
|
||||
if (rtpamrdec->channels != 1)
|
||||
return FALSE;
|
||||
|
|
|
@ -51,9 +51,9 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 8000, "
|
||||
"encoding_name = (string) \"AMR\", "
|
||||
"encoding_params = (string) \"1\", "
|
||||
"clock-rate = (int) 8000, "
|
||||
"encoding-name = (string) \"AMR\", "
|
||||
"encoding-params = (string) \"1\", "
|
||||
"octet-align = (boolean) TRUE, "
|
||||
"crc = (boolean) FALSE, "
|
||||
"robust-sorting = (boolean) FALSE, "
|
||||
|
@ -144,7 +144,7 @@ gst_rtpamrenc_setcaps (GstBaseRTPPayload * basepayload, GstCaps * caps)
|
|||
|
||||
gst_basertppayload_set_options (basepayload, "audio", TRUE, "AMR", 8000);
|
||||
gst_basertppayload_set_outcaps (basepayload,
|
||||
"encoding_params", G_TYPE_STRING, "1",
|
||||
"encoding-params", G_TYPE_STRING, "1",
|
||||
"octet-align", G_TYPE_BOOLEAN, TRUE,
|
||||
"crc", G_TYPE_BOOLEAN, FALSE,
|
||||
"robust-sorting", G_TYPE_BOOLEAN, FALSE,
|
||||
|
|
|
@ -51,9 +51,9 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 8000, "
|
||||
"encoding_name = (string) \"AMR\", "
|
||||
"encoding_params = (string) \"1\", "
|
||||
"clock-rate = (int) 8000, "
|
||||
"encoding-name = (string) \"AMR\", "
|
||||
"encoding-params = (string) \"1\", "
|
||||
"octet-align = (boolean) TRUE, "
|
||||
"crc = (boolean) FALSE, "
|
||||
"robust-sorting = (boolean) FALSE, "
|
||||
|
@ -144,7 +144,7 @@ gst_rtpamrenc_setcaps (GstBaseRTPPayload * basepayload, GstCaps * caps)
|
|||
|
||||
gst_basertppayload_set_options (basepayload, "audio", TRUE, "AMR", 8000);
|
||||
gst_basertppayload_set_outcaps (basepayload,
|
||||
"encoding_params", G_TYPE_STRING, "1",
|
||||
"encoding-params", G_TYPE_STRING, "1",
|
||||
"octet-align", G_TYPE_BOOLEAN, TRUE,
|
||||
"crc", G_TYPE_BOOLEAN, FALSE,
|
||||
"robust-sorting", G_TYPE_BOOLEAN, FALSE,
|
||||
|
|
|
@ -49,7 +49,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 8000, " "encoding_name = (string) \"GSM\"")
|
||||
"clock-rate = (int) 8000, " "encoding-name = (string) \"GSM\"")
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 8000, " "encoding_name = (string) \"GSM\"")
|
||||
"clock-rate = (int) 8000, " "encoding-name = (string) \"GSM\"")
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"video\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 90000, " "encoding_name = (string) \"H263-1998\"")
|
||||
"clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"")
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"video\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 90000, " "encoding_name = (string) \"H263-1998\"")
|
||||
"clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"")
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"video\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 90000, " "encoding_name = (string) \"H263-1998\"")
|
||||
"clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"")
|
||||
);
|
||||
|
||||
static void gst_rtph263penc_class_init (GstRtpH263PEncClass * klass);
|
||||
|
|
|
@ -44,7 +44,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"video\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 90000, " "encoding_name = (string) \"H263-1998\"")
|
||||
"clock-rate = (int) 90000, " "encoding-name = (string) \"H263-1998\"")
|
||||
);
|
||||
|
||||
static void gst_rtph263penc_class_init (GstRtpH263PEncClass * klass);
|
||||
|
|
|
@ -57,7 +57,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"video\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) [1, MAX ], " "encoding_name = (string) \"MP4V-ES\""
|
||||
"clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"MP4V-ES\""
|
||||
/* All optional parameters
|
||||
*
|
||||
* "profile-level-id=[1,MAX]"
|
||||
|
@ -166,7 +166,7 @@ gst_rtpmp4vdec_setcaps (GstPad * pad, GstCaps * caps)
|
|||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (!gst_structure_get_int (structure, "clock_rate", &rtpmp4vdec->rate))
|
||||
if (!gst_structure_get_int (structure, "clock-rate", &rtpmp4vdec->rate))
|
||||
rtpmp4vdec->rate = 90000;
|
||||
|
||||
srccaps = gst_caps_new_simple ("video/mpeg",
|
||||
|
|
|
@ -57,7 +57,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"video\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) [1, MAX ], " "encoding_name = (string) \"MP4V-ES\""
|
||||
"clock-rate = (int) [1, MAX ], " "encoding-name = (string) \"MP4V-ES\""
|
||||
/* All optional parameters
|
||||
*
|
||||
* "profile-level-id=[1,MAX]"
|
||||
|
@ -166,7 +166,7 @@ gst_rtpmp4vdec_setcaps (GstPad * pad, GstCaps * caps)
|
|||
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
if (!gst_structure_get_int (structure, "clock_rate", &rtpmp4vdec->rate))
|
||||
if (!gst_structure_get_int (structure, "clock-rate", &rtpmp4vdec->rate))
|
||||
rtpmp4vdec->rate = 90000;
|
||||
|
||||
srccaps = gst_caps_new_simple ("video/mpeg",
|
||||
|
|
|
@ -45,8 +45,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"video\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) [1, MAX ], "
|
||||
"encoding_name = (string) \"MP4V-ES\", " "profile-level-id=[1,MAX]"
|
||||
"clock-rate = (int) [1, MAX ], "
|
||||
"encoding-name = (string) \"MP4V-ES\", " "profile-level-id=[1,MAX]"
|
||||
/* All optional parameters
|
||||
*
|
||||
* "config="
|
||||
|
|
|
@ -45,8 +45,8 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"video\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) [1, MAX ], "
|
||||
"encoding_name = (string) \"MP4V-ES\", " "profile-level-id=[1,MAX]"
|
||||
"clock-rate = (int) [1, MAX ], "
|
||||
"encoding-name = (string) \"MP4V-ES\", " "profile-level-id=[1,MAX]"
|
||||
/* All optional parameters
|
||||
*
|
||||
* "config="
|
||||
|
|
|
@ -56,7 +56,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 90000, " "encoding_name = (string) \"MPA\"")
|
||||
"clock-rate = (int) 90000, " "encoding-name = (string) \"MPA\"")
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 90000, " "encoding_name = (string) \"MPA\"")
|
||||
"clock-rate = (int) 90000, " "encoding-name = (string) \"MPA\"")
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 90000, " "encoding_name = (string) \"MPA\"")
|
||||
"clock-rate = (int) 90000, " "encoding-name = (string) \"MPA\"")
|
||||
);
|
||||
|
||||
static void gst_rtpmpaenc_class_init (GstRtpMPAEncClass * klass);
|
||||
|
|
|
@ -44,7 +44,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
"media = (string) \"audio\", "
|
||||
"payload = (int) [ 96, 255 ], "
|
||||
"clock_rate = (int) 90000, " "encoding_name = (string) \"MPA\"")
|
||||
"clock-rate = (int) 90000, " "encoding-name = (string) \"MPA\"")
|
||||
);
|
||||
|
||||
static void gst_rtpmpaenc_class_init (GstRtpMPAEncClass * klass);
|
||||
|
|
Loading…
Reference in a new issue