本文整理汇总了C++中C_FLAGS函数的典型用法代码示例。如果您正苦于以下问题:C++ C_FLAGS函数的具体用法?C++ C_FLAGS怎么用?C++ C_FLAGS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了C_FLAGS函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: gst_plugin_dependency_flags_get_type
GType
gst_plugin_dependency_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_PLUGIN_DEPENDENCY_FLAG_NONE),
"GST_PLUGIN_DEPENDENCY_FLAG_NONE", "none"},
{C_FLAGS (GST_PLUGIN_DEPENDENCY_FLAG_RECURSE),
"GST_PLUGIN_DEPENDENCY_FLAG_RECURSE", "recurse"},
{C_FLAGS (GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_DEFAULT_ONLY),
"GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_DEFAULT_ONLY",
"paths-are-default-only"},
{C_FLAGS (GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_SUFFIX),
"GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_SUFFIX",
"file-name-is-suffix"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstPluginDependencyFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例2: gst_buffer_flag_get_type
/* enumerations from "gstbuffer.h" */
GType
gst_buffer_flag_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_BUFFER_FLAG_READONLY), "GST_BUFFER_FLAG_READONLY",
"readonly"},
{C_FLAGS (GST_BUFFER_FLAG_PREROLL), "GST_BUFFER_FLAG_PREROLL", "preroll"},
{C_FLAGS (GST_BUFFER_FLAG_DISCONT), "GST_BUFFER_FLAG_DISCONT", "discont"},
{C_FLAGS (GST_BUFFER_FLAG_IN_CAPS), "GST_BUFFER_FLAG_IN_CAPS", "in-caps"},
{C_FLAGS (GST_BUFFER_FLAG_GAP), "GST_BUFFER_FLAG_GAP", "gap"},
{C_FLAGS (GST_BUFFER_FLAG_DELTA_UNIT), "GST_BUFFER_FLAG_DELTA_UNIT",
"delta-unit"},
{C_FLAGS (GST_BUFFER_FLAG_MEDIA1), "GST_BUFFER_FLAG_MEDIA1", "media1"},
{C_FLAGS (GST_BUFFER_FLAG_MEDIA2), "GST_BUFFER_FLAG_MEDIA2", "media2"},
{C_FLAGS (GST_BUFFER_FLAG_MEDIA3), "GST_BUFFER_FLAG_MEDIA3", "media3"},
{C_FLAGS (GST_BUFFER_FLAG_LAST), "GST_BUFFER_FLAG_LAST", "last"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstBufferFlag", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例3: gst_bus_flags_get_type
/* enumerations from "gstbus.h" */
GType
gst_bus_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_BUS_FLUSHING), "GST_BUS_FLUSHING", "flushing"},
{C_FLAGS (GST_BUS_FLAG_LAST), "GST_BUS_FLAG_LAST", "flag-last"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstBusFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例4: gst_caps_flags_get_type
/* enumerations from "gstcaps.h" */
GType
gst_caps_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_CAPS_FLAGS_NONE), "GST_CAPS_FLAGS_NONE", "none"},
{C_FLAGS (GST_CAPS_FLAGS_ANY), "GST_CAPS_FLAGS_ANY", "any"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstCapsFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例5: gst_clock_flags_get_type
GType
gst_clock_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC),
"GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC", "can-do-single-sync"},
{C_FLAGS (GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC),
"GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC", "can-do-single-async"},
{C_FLAGS (GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC),
"GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC", "can-do-periodic-sync"},
{C_FLAGS (GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC),
"GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC", "can-do-periodic-async"},
{C_FLAGS (GST_CLOCK_FLAG_CAN_SET_RESOLUTION),
"GST_CLOCK_FLAG_CAN_SET_RESOLUTION", "can-set-resolution"},
{C_FLAGS (GST_CLOCK_FLAG_CAN_SET_MASTER), "GST_CLOCK_FLAG_CAN_SET_MASTER",
"can-set-master"},
{C_FLAGS (GST_CLOCK_FLAG_LAST), "GST_CLOCK_FLAG_LAST", "last"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstClockFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例6: gst_pad_template_flags_get_type
GType
gst_pad_template_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_PAD_TEMPLATE_FIXED), "GST_PAD_TEMPLATE_FIXED", "fixed"},
{C_FLAGS (GST_PAD_TEMPLATE_FLAG_LAST), "GST_PAD_TEMPLATE_FLAG_LAST",
"flag-last"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstPadTemplateFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例7: gst_object_flags_get_type
/* enumerations from "gstobject.h" */
GType
gst_object_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_OBJECT_DISPOSING), "GST_OBJECT_DISPOSING", "disposing"},
{C_FLAGS (GST_OBJECT_FLOATING), "GST_OBJECT_FLOATING", "floating"},
{C_FLAGS (GST_OBJECT_FLAG_LAST), "GST_OBJECT_FLAG_LAST", "flag-last"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstObjectFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例8: gst_plugin_flags_get_type
GType
gst_plugin_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_PLUGIN_FLAG_CACHED), "GST_PLUGIN_FLAG_CACHED", "cached"},
{C_FLAGS (GST_PLUGIN_FLAG_BLACKLISTED), "GST_PLUGIN_FLAG_BLACKLISTED",
"blacklisted"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstPluginFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例9: gst_pipeline_flags_get_type
/* enumerations from "gstpipeline.h" */
GType
gst_pipeline_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_PIPELINE_FLAG_FIXED_CLOCK), "GST_PIPELINE_FLAG_FIXED_CLOCK",
"fixed-clock"},
{C_FLAGS (GST_PIPELINE_FLAG_LAST), "GST_PIPELINE_FLAG_LAST", "last"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstPipelineFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例10: gst_mini_object_flags_get_type
/* enumerations from "gstminiobject.h" */
GType
gst_mini_object_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_MINI_OBJECT_FLAG_READONLY), "GST_MINI_OBJECT_FLAG_READONLY",
"readonly"},
{C_FLAGS (GST_MINI_OBJECT_FLAG_LAST), "GST_MINI_OBJECT_FLAG_LAST", "last"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstMiniObjectFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例11: gst_index_flags_get_type
GType
gst_index_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_INDEX_WRITABLE), "GST_INDEX_WRITABLE", "writable"},
{C_FLAGS (GST_INDEX_READABLE), "GST_INDEX_READABLE", "readable"},
{C_FLAGS (GST_INDEX_FLAG_LAST), "GST_INDEX_FLAG_LAST", "flag-last"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstIndexFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例12: gst_alloc_trace_flags_get_type
/* enumerations from "gsttrace.h" */
GType
gst_alloc_trace_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_ALLOC_TRACE_LIVE), "GST_ALLOC_TRACE_LIVE", "live"},
{C_FLAGS (GST_ALLOC_TRACE_MEM_LIVE), "GST_ALLOC_TRACE_MEM_LIVE",
"mem-live"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstAllocTraceFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例13: gst_parse_flags_get_type
GType
gst_parse_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_PARSE_FLAG_NONE), "GST_PARSE_FLAG_NONE", "none"},
{C_FLAGS (GST_PARSE_FLAG_FATAL_ERRORS), "GST_PARSE_FLAG_FATAL_ERRORS",
"fatal-errors"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstParseFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例14: gst_buffer_copy_flags_get_type
GType
gst_buffer_copy_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_BUFFER_COPY_FLAGS), "GST_BUFFER_COPY_FLAGS", "flags"},
{C_FLAGS (GST_BUFFER_COPY_TIMESTAMPS), "GST_BUFFER_COPY_TIMESTAMPS",
"timestamps"},
{C_FLAGS (GST_BUFFER_COPY_CAPS), "GST_BUFFER_COPY_CAPS", "caps"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstBufferCopyFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}
示例15: gst_event_type_flags_get_type
/* enumerations from "gstevent.h" */
GType
gst_event_type_flags_get_type (void)
{
static gsize id = 0;
static const GFlagsValue values[] = {
{C_FLAGS (GST_EVENT_TYPE_UPSTREAM), "GST_EVENT_TYPE_UPSTREAM", "upstream"},
{C_FLAGS (GST_EVENT_TYPE_DOWNSTREAM), "GST_EVENT_TYPE_DOWNSTREAM",
"downstream"},
{C_FLAGS (GST_EVENT_TYPE_SERIALIZED), "GST_EVENT_TYPE_SERIALIZED",
"serialized"},
{0, NULL, NULL}
};
if (g_once_init_enter (&id)) {
GType tmp = g_flags_register_static ("GstEventTypeFlags", values);
g_once_init_leave (&id, tmp);
}
return (GType) id;
}