Implement auto mode detection in ajasrc

This also allows switching modes while running.
This commit is contained in:
Sebastian Dröge 2021-08-18 12:33:52 +03:00
parent 02519523df
commit d03f733bba
3 changed files with 696 additions and 647 deletions

View file

@ -789,7 +789,7 @@ GType gst_aja_sdi_mode_get_type(void) {
GType gst_aja_video_format_get_type(void) {
static gsize id = 0;
static const GEnumValue modes[] = {
// TODO: Implement: {GST_AJA_VIDEO_FORMAT_AUTO, "auto", "Autodetect"},
{GST_AJA_VIDEO_FORMAT_AUTO, "auto", "Auto detect format"},
{GST_AJA_VIDEO_FORMAT_1080i_5000, "1080i-5000", "1080i 5000"},
{GST_AJA_VIDEO_FORMAT_1080i_5994, "1080i-5994", "1080i 5994"},
{GST_AJA_VIDEO_FORMAT_1080i_6000, "1080i-6000", "1080i 6000"},

View file

@ -182,7 +182,7 @@ GType gst_aja_sdi_mode_get_type(void);
typedef enum {
GST_AJA_VIDEO_FORMAT_INVALID = -1,
// TODO: Implement: GST_AJA_VIDEO_FORMAT_AUTO,
GST_AJA_VIDEO_FORMAT_AUTO,
GST_AJA_VIDEO_FORMAT_1080i_5000,
GST_AJA_VIDEO_FORMAT_1080i_5994,
GST_AJA_VIDEO_FORMAT_1080i_6000,

File diff suppressed because it is too large Load diff