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-05-12 22:57:43 +0300
committerTim-Philipp Müller <tim@centricular.com>2020-07-10 18:46:19 +0300
commitd5cd0c030183b64579c4e563e25ab34346279dce (patch)
tree6d6058bcd7a9f1b7c171aa541bf148ef660690e9 /sys
parent93bd8c34edd7d9e7f6314ca2ae7e0a1bc1040505 (diff)
rpicamsrc: Expose constrained-baseline profile
constrained-baseline is a useful profile for streaming to iOS devices, and seems to work in the firmware, so let's publish it
Diffstat (limited to 'sys')
-rw-r--r--sys/rpicamsrc/gstrpicamsrc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/rpicamsrc/gstrpicamsrc.c b/sys/rpicamsrc/gstrpicamsrc.c
index 5b2532d60..da8446023 100644
--- a/sys/rpicamsrc/gstrpicamsrc.c
+++ b/sys/rpicamsrc/gstrpicamsrc.c
@@ -189,7 +189,7 @@ enum
"framerate = " GST_VIDEO_FPS_RANGE ", " \
"stream-format = (string) byte-stream, " \
"alignment = (string) nal, " \
- "profile = (string) { baseline, main, high }"
+ "profile = (string) { constrained-baseline, baseline, main, high }"
#define RAW_CAPS \
GST_VIDEO_CAPS_MAKE ("{ I420, RGB, BGR, RGBA }") /* FIXME: Map more raw formats */
@@ -1317,6 +1317,8 @@ gst_rpi_cam_src_set_caps (GstBaseSrc * bsrc, GstCaps * caps)
if (profile_str) {
if (g_str_equal (profile_str, "baseline"))
src->capture_config.profile = MMAL_VIDEO_PROFILE_H264_BASELINE;
+ else if (g_str_equal (profile_str, "constrained-baseline"))
+ src->capture_config.profile = MMAL_VIDEO_PROFILE_H264_CONSTRAINED_BASELINE;
else if (g_str_equal (profile_str, "main"))
src->capture_config.profile = MMAL_VIDEO_PROFILE_H264_MAIN;
else if (g_str_equal (profile_str, "high"))