Created
February 22, 2019 02:03
-
-
Save lukas2511/fc15a2e7cdd1ae5a865822800801cd7a to your computer and use it in GitHub Desktop.
gst decklink 10bit-rgb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp | |
index cbe2abcfb..16f710326 100644 | |
--- a/sys/decklink/gstdecklink.cpp | |
+++ b/sys/decklink/gstdecklink.cpp | |
@@ -121,8 +121,8 @@ gst_decklink_video_format_get_type (void) | |
{GST_DECKLINK_VIDEO_FORMAT_10BIT_YUV, "bmdFormat10BitYUV", "10bit-yuv"}, | |
{GST_DECKLINK_VIDEO_FORMAT_8BIT_ARGB, "bmdFormat8BitARGB", "8bit-argb"}, | |
{GST_DECKLINK_VIDEO_FORMAT_8BIT_BGRA, "bmdFormat8BitBGRA", "8bit-bgra"}, | |
+ {GST_DECKLINK_VIDEO_FORMAT_10BIT_RGB, "bmdFormat10BitRGB", "10bit-rgb"}, | |
/* Not yet supported: | |
- {GST_DECKLINK_VIDEO_FORMAT_10BIT_RGB, "bmdFormat10BitRGB", "10bit-rgb"}, | |
{GST_DECKLINK_VIDEO_FORMAT_12BIT_RGB, "bmdFormat12BitRGB", "12bit-rgb"}, | |
{GST_DECKLINK_VIDEO_FORMAT_12BIT_RGBLE, "bmdFormat12BitRGBLE", "12bit-rgble"}, | |
{GST_DECKLINK_VIDEO_FORMAT_10BIT_RGBXLE, "bmdFormat10BitRGBXLE", "10bit-rgbxle"}, | |
@@ -290,6 +290,7 @@ static const struct | |
{bmdFormat10BitYUV, 4, GST_VIDEO_FORMAT_v210}, | |
{bmdFormat8BitARGB, 4, GST_VIDEO_FORMAT_ARGB}, | |
{bmdFormat8BitBGRA, 4, GST_VIDEO_FORMAT_BGRA}, | |
+ {bmdFormat10BitRGB, 4, GST_VIDEO_FORMAT_r210}, | |
/* Not yet supported | |
{bmdFormat10BitRGB, FIXME, FIXME}, | |
{bmdFormat12BitRGB, FIXME, FIXME}, | |
@@ -589,6 +590,8 @@ gst_decklink_mode_get_structure (GstDecklinkModeEnum e, BMDPixelFormat f, | |
gst_structure_set (s, "format", G_TYPE_STRING, "BGRA", NULL); | |
break; | |
case bmdFormat10BitRGB: /* 'r210' Big-endian RGB 10-bit per component with SMPTE video levels (64-960). Packed as 2:10:10:10 */ | |
+ gst_structure_set (s, "format", G_TYPE_STRING, "r210", NULL); | |
+ break; | |
case bmdFormat12BitRGB: /* 'R12B' Big-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component */ | |
case bmdFormat12BitRGBLE: /* 'R12L' Little-endian RGB 12-bit per component with full range (0-4095). Packed as 12-bit per component */ | |
case bmdFormat10BitRGBXLE: /* 'R10l' Little-endian 10-bit RGB with SMPTE video levels (64-940) */ | |
diff --git a/sys/decklink/gstdecklinkvideosrc.cpp b/sys/decklink/gstdecklinkvideosrc.cpp | |
index a7655d813..f6a3be4a6 100644 | |
--- a/sys/decklink/gstdecklinkvideosrc.cpp | |
+++ b/sys/decklink/gstdecklinkvideosrc.cpp | |
@@ -310,6 +310,7 @@ gst_decklink_video_src_set_property (GObject * object, guint property_id, | |
case GST_DECKLINK_VIDEO_FORMAT_10BIT_YUV: | |
case GST_DECKLINK_VIDEO_FORMAT_8BIT_ARGB: | |
case GST_DECKLINK_VIDEO_FORMAT_8BIT_BGRA: | |
+ case GST_DECKLINK_VIDEO_FORMAT_10BIT_RGB: | |
self->caps_format = | |
gst_decklink_pixel_format_from_type (self->video_format); | |
case GST_DECKLINK_VIDEO_FORMAT_AUTO: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment