niimaqdxsrc: run gst-indent
This commit is contained in:
parent
4ea4487d2f
commit
6076fedfa9
@ -257,7 +257,8 @@ gst_niimaqdxsrc_pixel_format_from_caps (const GstCaps * caps, int *endianness)
|
||||
}
|
||||
|
||||
static int
|
||||
gst_niimaqdxsrc_pixel_format_get_depth (const char *pixel_format, int endianness)
|
||||
gst_niimaqdxsrc_pixel_format_get_depth (const char *pixel_format,
|
||||
int endianness)
|
||||
{
|
||||
const ImaqDxCapsInfo *info =
|
||||
gst_niimaqdxsrc_get_caps_info (pixel_format, endianness);
|
||||
@ -866,20 +867,23 @@ gst_niimaqdxsrc_get_cam_caps (GstNiImaqDxSrc * niimaqdxsrc)
|
||||
goto error;
|
||||
}
|
||||
|
||||
g_strlcpy (niimaqdxsrc->pixel_format, pixel_format,
|
||||
IMAQDX_MAX_API_STRING_LENGTH);
|
||||
|
||||
if (g_strcmp0 (bus_type, "Ethernet") == 0)
|
||||
endianness = G_LITTLE_ENDIAN;
|
||||
else
|
||||
endianness = G_BIG_ENDIAN;
|
||||
|
||||
if (g_str_has_prefix (pixel_format, "Bayer") && niimaqdxsrc->bayer_as_gray) {
|
||||
const ImaqDxCapsInfo *info = gst_niimaqdxsrc_get_caps_info (pixel_format, endianness);
|
||||
const ImaqDxCapsInfo *info =
|
||||
gst_niimaqdxsrc_get_caps_info (pixel_format, endianness);
|
||||
if (info->depth == 8) {
|
||||
g_strlcpy (pixel_format, "Mono 8", IMAQDX_MAX_API_STRING_LENGTH);
|
||||
} else if (info->depth == 16) {
|
||||
g_strlcpy (pixel_format, "Mono 16", IMAQDX_MAX_API_STRING_LENGTH);
|
||||
}
|
||||
}
|
||||
|
||||
//TODO: add all available caps by enumerating PixelFormat's available, and query for framerate
|
||||
caps =
|
||||
gst_niimaqdxsrc_new_caps_from_pixel_format (pixel_format, endianness,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user