mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
rtpvp8pay, rtpvp9pay: expose picture-id as a property
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4530>
This commit is contained in:
parent
38d5899eba
commit
f159fd8568
3 changed files with 61 additions and 0 deletions
|
@ -16912,6 +16912,20 @@
|
|||
}
|
||||
},
|
||||
"properties": {
|
||||
"picture-id": {
|
||||
"blurb": "Currently used picture-id for payloading",
|
||||
"conditionally-available": false,
|
||||
"construct": false,
|
||||
"construct-only": false,
|
||||
"controllable": false,
|
||||
"default": "0",
|
||||
"max": "32767",
|
||||
"min": "0",
|
||||
"mutable": "null",
|
||||
"readable": true,
|
||||
"type": "gint",
|
||||
"writable": false
|
||||
},
|
||||
"picture-id-mode": {
|
||||
"blurb": "The picture ID mode for payloading",
|
||||
"conditionally-available": false,
|
||||
|
@ -17020,6 +17034,20 @@
|
|||
}
|
||||
},
|
||||
"properties": {
|
||||
"picture-id": {
|
||||
"blurb": "Currently used picture-id for payloading",
|
||||
"conditionally-available": false,
|
||||
"construct": false,
|
||||
"construct-only": false,
|
||||
"controllable": false,
|
||||
"default": "0",
|
||||
"max": "32767",
|
||||
"min": "0",
|
||||
"mutable": "null",
|
||||
"readable": true,
|
||||
"type": "gint",
|
||||
"writable": false
|
||||
},
|
||||
"picture-id-mode": {
|
||||
"blurb": "The picture ID mode for payloading",
|
||||
"conditionally-available": false,
|
||||
|
|
|
@ -45,6 +45,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_vp8_pay_debug);
|
|||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_PICTURE_ID,
|
||||
PROP_PICTURE_ID_MODE,
|
||||
PROP_PICTURE_ID_OFFSET
|
||||
};
|
||||
|
@ -167,11 +168,24 @@ gst_rtp_vp8_pay_class_init (GstRtpVP8PayClass * gst_rtp_vp8_pay_class)
|
|||
gobject_class->set_property = gst_rtp_vp8_pay_set_property;
|
||||
gobject_class->get_property = gst_rtp_vp8_pay_get_property;
|
||||
|
||||
/**
|
||||
* rtpvp8pay:picture-id:
|
||||
*
|
||||
* Currently used picture-id
|
||||
*
|
||||
* Since: 1.24
|
||||
*/
|
||||
g_object_class_install_property (gobject_class, PROP_PICTURE_ID,
|
||||
g_param_spec_int ("picture-id", "Picture ID",
|
||||
"Currently used picture-id for payloading", 0, 0x7FFF, 0,
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_PICTURE_ID_MODE,
|
||||
g_param_spec_enum ("picture-id-mode", "Picture ID Mode",
|
||||
"The picture ID mode for payloading",
|
||||
GST_TYPE_RTP_VP8_PAY_PICTURE_ID_MODE, DEFAULT_PICTURE_ID_MODE,
|
||||
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
/**
|
||||
* rtpvp8pay:picture-id-offset:
|
||||
*
|
||||
|
@ -232,6 +246,9 @@ gst_rtp_vp8_pay_get_property (GObject * object,
|
|||
GstRtpVP8Pay *rtpvp8pay = GST_RTP_VP8_PAY (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_PICTURE_ID:
|
||||
g_value_set_int (value, rtpvp8pay->picture_id);
|
||||
break;
|
||||
case PROP_PICTURE_ID_MODE:
|
||||
g_value_set_enum (value, rtpvp8pay->picture_id_mode);
|
||||
break;
|
||||
|
|
|
@ -46,6 +46,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_rtp_vp9_pay_debug);
|
|||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_PICTURE_ID,
|
||||
PROP_PICTURE_ID_MODE,
|
||||
PROP_PICTURE_ID_OFFSET,
|
||||
};
|
||||
|
@ -149,6 +150,18 @@ gst_rtp_vp9_pay_class_init (GstRtpVP9PayClass * gst_rtp_vp9_pay_class)
|
|||
gobject_class->set_property = gst_rtp_vp9_pay_set_property;
|
||||
gobject_class->get_property = gst_rtp_vp9_pay_get_property;
|
||||
|
||||
/**
|
||||
* rtpvp9pay:picture-id:
|
||||
*
|
||||
* Currently used picture-id
|
||||
*
|
||||
* Since: 1.24
|
||||
*/
|
||||
g_object_class_install_property (gobject_class, PROP_PICTURE_ID,
|
||||
g_param_spec_int ("picture-id", "Picture ID",
|
||||
"Currently used picture-id for payloading", 0, 0x7FFF, 0,
|
||||
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
g_object_class_install_property (gobject_class, PROP_PICTURE_ID_MODE,
|
||||
g_param_spec_enum ("picture-id-mode", "Picture ID Mode",
|
||||
"The picture ID mode for payloading",
|
||||
|
@ -215,6 +228,9 @@ gst_rtp_vp9_pay_get_property (GObject * object,
|
|||
GstRtpVP9Pay *rtpvp9pay = GST_RTP_VP9_PAY (object);
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_PICTURE_ID:
|
||||
g_value_set_int (value, rtpvp9pay->picture_id);
|
||||
break;
|
||||
case PROP_PICTURE_ID_MODE:
|
||||
g_value_set_enum (value, rtpvp9pay->picture_id_mode);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue