mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
mfvideosrc: add GRAY16_LE format support
FOURCC "Y16 " is used by FLIR Boson USB Video Class (UVC) camera Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1222>
This commit is contained in:
parent
3804dfb28d
commit
bfc605a666
2 changed files with 5 additions and 1 deletions
|
@ -35,6 +35,9 @@ GST_DEBUG_CATEGORY_EXTERN (gst_mf_utils_debug);
|
||||||
#define MAKE_RAW_FORMAT_CAPS(format) \
|
#define MAKE_RAW_FORMAT_CAPS(format) \
|
||||||
"video/x-raw, format = (string) " format
|
"video/x-raw, format = (string) " format
|
||||||
|
|
||||||
|
/* No GUID is defined for "Y16 " in mfapi.h, but it's used by several devices */
|
||||||
|
DEFINE_MEDIATYPE_GUID (MFVideoFormat_Y16, FCC ('Y16 '));
|
||||||
|
|
||||||
static struct
|
static struct
|
||||||
{
|
{
|
||||||
const GUID &mf_format;
|
const GUID &mf_format;
|
||||||
|
@ -58,6 +61,7 @@ static struct
|
||||||
{MFVideoFormat_P016, MAKE_RAW_FORMAT_CAPS ("P016"), GST_VIDEO_FORMAT_P016_LE},
|
{MFVideoFormat_P016, MAKE_RAW_FORMAT_CAPS ("P016"), GST_VIDEO_FORMAT_P016_LE},
|
||||||
{MFVideoFormat_v210, MAKE_RAW_FORMAT_CAPS ("v210"), GST_VIDEO_FORMAT_v210},
|
{MFVideoFormat_v210, MAKE_RAW_FORMAT_CAPS ("v210"), GST_VIDEO_FORMAT_v210},
|
||||||
{MFVideoFormat_v216, MAKE_RAW_FORMAT_CAPS ("v216"), GST_VIDEO_FORMAT_v216},
|
{MFVideoFormat_v216, MAKE_RAW_FORMAT_CAPS ("v216"), GST_VIDEO_FORMAT_v216},
|
||||||
|
{MFVideoFormat_Y16, MAKE_RAW_FORMAT_CAPS ("GRAY16_LE"), GST_VIDEO_FORMAT_GRAY16_LE},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct
|
static struct
|
||||||
|
|
|
@ -40,7 +40,7 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GST_MF_VIDEO_FORMATS \
|
#define GST_MF_VIDEO_FORMATS \
|
||||||
"{ BGRx, BGRA, BGR, RGB15, RGB16, VUYA, YUY2, YVYU, UYVY, NV12, YV12, I420," \
|
"{ BGRx, BGRA, BGR, RGB15, RGB16, VUYA, YUY2, YVYU, UYVY, NV12, YV12, I420," \
|
||||||
" P010, P016, v210, v216 }"
|
" P010, P016, v210, v216, GRAY16_LE }"
|
||||||
|
|
||||||
GstVideoFormat gst_mf_video_subtype_to_video_format (const GUID *subtype);
|
GstVideoFormat gst_mf_video_subtype_to_video_format (const GUID *subtype);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue