From 11485e32abeec55d9978bc3f10dea896a9a2859f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 24 Nov 2014 14:07:19 +0100 Subject: [PATCH] decklink: Add support for 2k modes --- sys/decklink/gstdecklink.cpp | 10 +++++++++- sys/decklink/gstdecklink.h | 6 +++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp index c1f83b8df9..b660374a8e 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -55,6 +55,10 @@ gst_decklink_mode_get_type (void) {GST_DECKLINK_MODE_720p5994, "720p5994", "HD720 59.94p"}, {GST_DECKLINK_MODE_720p60, "720p60", "HD720 60p"}, + {GST_DECKLINK_MODE_2048p2398, "2048p2398", "2k 23.98p"}, + {GST_DECKLINK_MODE_2048p24, "2048p24", "2k 24p"}, + {GST_DECKLINK_MODE_2048p25, "2048p25", "2k 25p"}, + {0, NULL, NULL} }; @@ -137,7 +141,11 @@ static const GstDecklinkMode modes[] = { {bmdModeHD720p50, 1280, 720, 50, 1, false, HD}, {bmdModeHD720p5994, 1280, 720, 60000, 1001, false, HD}, - {bmdModeHD720p60, 1280, 720, 60, 1, false, HD} + {bmdModeHD720p60, 1280, 720, 60, 1, false, HD}, + + {bmdMode2k2398, 2048, 1556, 24000, 1001, false, HD}, + {bmdMode2k24, 2048, 1556, 24, 1, false, HD}, + {bmdMode2k25, 2048, 1556, 25, 1, false, HD} }; diff --git a/sys/decklink/gstdecklink.h b/sys/decklink/gstdecklink.h index a204c78395..ea892a1ccc 100644 --- a/sys/decklink/gstdecklink.h +++ b/sys/decklink/gstdecklink.h @@ -64,7 +64,11 @@ typedef enum { GST_DECKLINK_MODE_720p50, GST_DECKLINK_MODE_720p5994, - GST_DECKLINK_MODE_720p60 + GST_DECKLINK_MODE_720p60, + + GST_DECKLINK_MODE_2048p2398, + GST_DECKLINK_MODE_2048p24, + GST_DECKLINK_MODE_2048p25 } GstDecklinkModeEnum; #define GST_TYPE_DECKLINK_MODE (gst_decklink_mode_get_type ()) GType gst_decklink_mode_get_type (void);