mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
pnm: Fix caps
8 bit grayscale caps have no endianness field and the caps name of GST_VIDEO_CAPS_RGB is still "video/x-raw-rgb" and not GST_VIDEO_CAPS_RGB.
This commit is contained in:
parent
7f3e6f4965
commit
751843ff86
2 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ static GstStaticPadTemplate gst_pnmdec_src_pad_template =
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "
|
||||||
"video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", "
|
"video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", "
|
||||||
"height =" GST_VIDEO_SIZE_RANGE ", framerate =" GST_VIDEO_FPS_RANGE ", "
|
"height =" GST_VIDEO_SIZE_RANGE ", framerate =" GST_VIDEO_FPS_RANGE ", "
|
||||||
"bpp= (int) 8, depth= (int) 8, endianness = (int) BIG_ENDIAN"));
|
"bpp= (int) 8, depth= (int) 8"));
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_pnmdec_sink_pad_template =
|
static GstStaticPadTemplate gst_pnmdec_sink_pad_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
|
GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
|
||||||
|
|
|
@ -51,7 +51,7 @@ static GstStaticPadTemplate sink_pad_template =
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB "; "
|
||||||
"video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", "
|
"video/x-raw-gray, width =" GST_VIDEO_SIZE_RANGE ", "
|
||||||
"height =" GST_VIDEO_SIZE_RANGE ", framerate =" GST_VIDEO_FPS_RANGE ", "
|
"height =" GST_VIDEO_SIZE_RANGE ", framerate =" GST_VIDEO_FPS_RANGE ", "
|
||||||
"bpp= (int) 8, depth= (int) 8, endianness = (int) BIG_ENDIAN"));
|
"bpp= (int) 8, depth= (int) 8"));
|
||||||
|
|
||||||
static GstStaticPadTemplate src_pad_template =
|
static GstStaticPadTemplate src_pad_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
||||||
|
@ -103,7 +103,7 @@ gst_pnmenc_setcaps_func_sink (GstPad * pad, GstCaps * caps)
|
||||||
s->info.fields = GST_PNM_INFO_FIELDS_MAX;
|
s->info.fields = GST_PNM_INFO_FIELDS_MAX;
|
||||||
|
|
||||||
/* Set caps on the source. */
|
/* Set caps on the source. */
|
||||||
if (!strcmp (mime, GST_VIDEO_CAPS_RGB)) {
|
if (!strcmp (mime, "video/x-raw-rgb")) {
|
||||||
s->info.type = GST_PNM_TYPE_PIXMAP_RAW;
|
s->info.type = GST_PNM_TYPE_PIXMAP_RAW;
|
||||||
srccaps = gst_caps_from_string (MIME_PM);
|
srccaps = gst_caps_from_string (MIME_PM);
|
||||||
} else if (!strcmp (mime, "video/x-raw-gray")) {
|
} else if (!strcmp (mime, "video/x-raw-gray")) {
|
||||||
|
|
Loading…
Reference in a new issue