mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
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
This commit is contained in:
parent
93bd8c34ed
commit
d5cd0c0301
1 changed files with 3 additions and 1 deletions
|
@ -189,7 +189,7 @@ enum
|
||||||
"framerate = " GST_VIDEO_FPS_RANGE ", " \
|
"framerate = " GST_VIDEO_FPS_RANGE ", " \
|
||||||
"stream-format = (string) byte-stream, " \
|
"stream-format = (string) byte-stream, " \
|
||||||
"alignment = (string) nal, " \
|
"alignment = (string) nal, " \
|
||||||
"profile = (string) { baseline, main, high }"
|
"profile = (string) { constrained-baseline, baseline, main, high }"
|
||||||
#define RAW_CAPS \
|
#define RAW_CAPS \
|
||||||
GST_VIDEO_CAPS_MAKE ("{ I420, RGB, BGR, RGBA }") /* FIXME: Map more raw formats */
|
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 (profile_str) {
|
||||||
if (g_str_equal (profile_str, "baseline"))
|
if (g_str_equal (profile_str, "baseline"))
|
||||||
src->capture_config.profile = MMAL_VIDEO_PROFILE_H264_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"))
|
else if (g_str_equal (profile_str, "main"))
|
||||||
src->capture_config.profile = MMAL_VIDEO_PROFILE_H264_MAIN;
|
src->capture_config.profile = MMAL_VIDEO_PROFILE_H264_MAIN;
|
||||||
else if (g_str_equal (profile_str, "high"))
|
else if (g_str_equal (profile_str, "high"))
|
||||||
|
|
Loading…
Reference in a new issue