Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2018-03-28 14:00:10 +0300
committerTim-Philipp Müller <tim@centricular.com>2020-07-10 18:46:18 +0300
commit93bd8c34edd7d9e7f6314ca2ae7e0a1bc1040505 (patch)
tree25810a895eb03ace6809a16d70018619905c0480 /sys
parentcab6585378ca0ade3729f5dc1b1cffbd31cd817d (diff)
rpicamsrc: Add define and increase reported maximum FPS from 90 to 1000
Diffstat (limited to 'sys')
-rw-r--r--sys/rpicamsrc/RaspiCapture.h2
-rw-r--r--sys/rpicamsrc/gstrpicamsrc.c4
-rw-r--r--sys/rpicamsrc/gstrpicamsrcdeviceprovider.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/sys/rpicamsrc/RaspiCapture.h b/sys/rpicamsrc/RaspiCapture.h
index 053ae1c03..571d3b7fc 100644
--- a/sys/rpicamsrc/RaspiCapture.h
+++ b/sys/rpicamsrc/RaspiCapture.h
@@ -54,6 +54,8 @@
#include "RaspiCamControl.h"
#include "RaspiPreview.h"
+#define RPICAMSRC_MAX_FPS 1000
+
GST_DEBUG_CATEGORY_EXTERN (gst_rpi_cam_src_debug);
#define GST_CAT_DEFAULT gst_rpi_cam_src_debug
diff --git a/sys/rpicamsrc/gstrpicamsrc.c b/sys/rpicamsrc/gstrpicamsrc.c
index 7cd369e80..5b2532d60 100644
--- a/sys/rpicamsrc/gstrpicamsrc.c
+++ b/sys/rpicamsrc/gstrpicamsrc.c
@@ -1285,12 +1285,12 @@ gst_rpi_cam_src_get_caps (GstBaseSrc * bsrc, GstCaps * filter)
if (gst_structure_has_name (s, "video/x-h264")) {
gst_caps_set_simple (caps, "width", GST_TYPE_INT_RANGE, 1, 1920, "height",
GST_TYPE_INT_RANGE, 1, 1080, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1,
- 90, 1, NULL);
+ RPICAMSRC_MAX_FPS, 1, NULL);
}
else {
gst_caps_set_simple (caps, "width", GST_TYPE_INT_RANGE, 1, 3240, "height",
GST_TYPE_INT_RANGE, 1, 2464, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1,
- 90, 1, NULL);
+ RPICAMSRC_MAX_FPS, 1, NULL);
}
}
done:
diff --git a/sys/rpicamsrc/gstrpicamsrcdeviceprovider.c b/sys/rpicamsrc/gstrpicamsrcdeviceprovider.c
index 387ee61c2..ff8083227 100644
--- a/sys/rpicamsrc/gstrpicamsrcdeviceprovider.c
+++ b/sys/rpicamsrc/gstrpicamsrcdeviceprovider.c
@@ -120,7 +120,7 @@ gst_rpi_cam_src_device_new (void)
s = gst_structure_new ("video/x-h264",
"width", GST_TYPE_INT_RANGE, 1, 1920,
"height", GST_TYPE_INT_RANGE, 1, 1080,
- "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, 90, 1,
+ "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, RPICAMSRC_MAX_FPS, 1,
"stream-format", G_TYPE_STRING, "byte-stream",
"alignment", G_TYPE_STRING, "au",
NULL);