mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
rtpvrawdepay: only announce supported formats in sink template
For most video formats we currently just assume that they have a depth of 8 bits, whilst advertising that we can handle 8/10/12/16 bit depth. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5866>
This commit is contained in:
parent
888e5905d8
commit
d415816cb1
2 changed files with 12 additions and 3 deletions
|
@ -17227,7 +17227,7 @@
|
|||
"long-name": "RTP Raw Video depayloader",
|
||||
"pad-templates": {
|
||||
"sink": {
|
||||
"caps": "application/x-rtp:\n media: video\n clock-rate: 90000\n encoding-name: RAW\n sampling: { (string)RGB, (string)RGBA, (string)BGR, (string)BGRA, (string)YCbCr-4:4:4, (string)YCbCr-4:2:2, (string)YCbCr-4:2:0, (string)YCbCr-4:1:1 }\n depth: { (string)8, (string)10, (string)12, (string)16 }\n",
|
||||
"caps": "application/x-rtp:\n media: video\n clock-rate: 90000\n encoding-name: RAW\n sampling: { (string)RGB, (string)RGBA, (string)BGR, (string)BGRA, (string)YCbCr-4:4:4, (string)YCbCr-4:2:2, (string)YCbCr-4:2:0, (string)YCbCr-4:1:1 }\n depth: 8\napplication/x-rtp:\n media: video\n clock-rate: 90000\n encoding-name: RAW\n sampling: YCbCr-4:2:2\n depth: 10\n",
|
||||
"direction": "sink",
|
||||
"presence": "always"
|
||||
},
|
||||
|
|
|
@ -41,7 +41,7 @@ GST_STATIC_PAD_TEMPLATE ("src",
|
|||
);
|
||||
|
||||
static GstStaticPadTemplate gst_rtp_vraw_depay_sink_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
GST_PAD_SINK,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS ("application/x-rtp, "
|
||||
|
@ -55,7 +55,16 @@ GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
* "width = (string) [1 32767],"
|
||||
* "height = (string) [1 32767],"
|
||||
*/
|
||||
"depth = (string) { \"8\", \"10\", \"12\", \"16\" }")
|
||||
"depth = (string) 8; "
|
||||
"application/x-rtp, "
|
||||
"media = (string) video, "
|
||||
"clock-rate = (int) 90000, "
|
||||
"encoding-name = (string) RAW, sampling = (string) YCbCr-4:2:2,"
|
||||
/* we cannot express these as strings
|
||||
* "width = (string) [1 32767],"
|
||||
* "height = (string) [1 32767],"
|
||||
*/
|
||||
"depth = (string) 10")
|
||||
);
|
||||
|
||||
#define gst_rtp_vraw_depay_parent_class parent_class
|
||||
|
|
Loading…
Reference in a new issue