const GstVaapiImageFormatMap *m;
m = get_map_from_gst_vaapi_image_format(format);
-
- g_return_val_if_fail(m, FALSE);
+ if (!m)
+ return FALSE;
return m->type == GST_VAAPI_IMAGE_FORMAT_TYPE_RGB;
}
const GstVaapiImageFormatMap *m;
m = get_map_from_gst_vaapi_image_format(format);
-
- g_return_val_if_fail(m, FALSE);
+ if (!m)
+ return FALSE;
return m->type == GST_VAAPI_IMAGE_FORMAT_TYPE_YCBCR;
}
{
const GstVaapiImageFormatMap * const m = get_map(va_format);
- g_return_val_if_fail(m, 0);
+ if (!m)
+ return 0;
return m->format;
}
const GstVaapiImageFormatMap *m;
m = get_map_from_gst_vaapi_image_format(format);
-
- g_return_val_if_fail(m, NULL);
+ if (!m)
+ return NULL;
return &m->va_format;
}
const GstVaapiImageFormatMap *m;
m = get_map_from_gst_vaapi_image_format(format);
-
- g_return_val_if_fail(m, NULL);
+ if (!m)
+ return NULL;
caps = gst_static_caps_get(&m->caps);
if (!caps)
const GstVaapiImageFormatMap *m;
m = get_map_from_gst_vaapi_image_format(format);
-
- g_return_val_if_fail(m, G_MAXUINT);
+ if (!m)
+ return G_MAXUINT;
return m - &gst_vaapi_image_formats[0];
}