Home
last modified time | relevance | path

Searched refs:enum_class (Results 1 – 25 of 31) sorted by relevance

12

/third_party/glib/gobject/
Dgenums.c400 g_enum_get_value_by_name (GEnumClass *enum_class, in g_enum_get_value_by_name() argument
403 g_return_val_if_fail (G_IS_ENUM_CLASS (enum_class), NULL); in g_enum_get_value_by_name()
406 if (enum_class->n_values) in g_enum_get_value_by_name()
410 for (enum_value = enum_class->values; enum_value->value_name; enum_value++) in g_enum_get_value_by_name()
459 g_enum_get_value_by_nick (GEnumClass *enum_class, in g_enum_get_value_by_nick() argument
462 g_return_val_if_fail (G_IS_ENUM_CLASS (enum_class), NULL); in g_enum_get_value_by_nick()
465 if (enum_class->n_values) in g_enum_get_value_by_nick()
469 for (enum_value = enum_class->values; enum_value->value_name; enum_value++) in g_enum_get_value_by_nick()
517 g_enum_get_value (GEnumClass *enum_class, in g_enum_get_value() argument
520 g_return_val_if_fail (G_IS_ENUM_CLASS (enum_class), NULL); in g_enum_get_value()
[all …]
Dgenums.h219 GEnumValue* g_enum_get_value (GEnumClass *enum_class,
222 GEnumValue* g_enum_get_value_by_name (GEnumClass *enum_class,
225 GEnumValue* g_enum_get_value_by_nick (GEnumClass *enum_class,
Dgparamspecs.c435 espec->enum_class = NULL; in param_enum_init()
445 if (espec->enum_class) in param_enum_finalize()
447 g_type_class_unref (espec->enum_class); in param_enum_finalize()
448 espec->enum_class = NULL; in param_enum_finalize()
468 if (!espec->enum_class || in param_enum_validate()
469 !g_enum_get_value (espec->enum_class, value->data[0].v_long)) in param_enum_validate()
2086 GEnumClass *enum_class; in g_param_spec_enum() local
2090 enum_class = g_type_class_ref (enum_type); in g_param_spec_enum()
2092 g_return_val_if_fail (g_enum_get_value (enum_class, default_value) != NULL, NULL); in g_param_spec_enum()
2101 g_type_class_unref (enum_class); in g_param_spec_enum()
[all …]
/third_party/python/Lib/
Denum.py215 enum_class = super().__new__(metacls, cls, bases, classdict, **kwds)
216 enum_class._member_names_ = [] # names in definition order
217 enum_class._member_map_ = {} # name->value map
218 enum_class._member_type_ = member_type
223 k for c in enum_class.mro()
229 enum_class._value2member_map_ = {}
248 _make_class_unpicklable(enum_class)
271 _make_class_unpicklable(enum_class)
285 enum_member = __new__(enum_class)
289 enum_member = __new__(enum_class, *args)
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/
Dgstglcontextconfig.c394 GEnumClass *enum_class; in gst_gl_enum_value_to_const_string() local
398 enum_class = g_type_class_ref (type); in gst_gl_enum_value_to_const_string()
399 enum_value = g_enum_get_value (enum_class, value); in gst_gl_enum_value_to_const_string()
404 g_type_class_unref (enum_class); in gst_gl_enum_value_to_const_string()
/third_party/gstreamer/gstplugins_bad/ext/srtp/
Dgstsrtp.c116 GEnumClass *enum_class = g_type_class_ref (enum_gtype); in enum_nick_from_value() local
123 enum_value = g_enum_get_value (enum_class, value); in enum_nick_from_value()
127 g_type_class_unref (enum_class); in enum_nick_from_value()
136 GEnumClass *enum_class = g_type_class_ref (enum_gtype); in enum_value_from_nick() local
143 enum_value = g_enum_get_value_by_nick (enum_class, nick); in enum_value_from_nick()
147 g_type_class_unref (enum_class); in enum_value_from_nick()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DEnumTables.cpp15 #define PDB_ENUM_CLASS_ENT(enum_class, enum) \ argument
16 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
/third_party/gstreamer/gstreamer/tests/examples/controller/
Dcontroller-graph.c123 GEnumClass *enum_class; in main() local
165 enum_class = g_type_class_ref (GST_TYPE_INTERPOLATION_MODE); in main()
166 for (i = enum_class->minimum; i <= enum_class->maximum; i++) { in main()
167 if ((enum_value = g_enum_get_value (enum_class, i))) { in main()
/third_party/gstreamer/gstplugins_bad/ext/webrtc/
Dutils.c138 GEnumClass *enum_class; in _enum_value_to_string() local
142 enum_class = g_type_class_ref (type); in _enum_value_to_string()
143 enum_value = g_enum_get_value (enum_class, value); in _enum_value_to_string()
148 g_type_class_unref (enum_class); in _enum_value_to_string()
/third_party/gstreamer/gstplugins_good/gst/videofilter/
Dgstvideoflip.c144 GEnumClass *enum_class = in gst_video_flip_transform_caps() local
148 g_enum_get_value (enum_class, videoflip->configuring_method); in gst_video_flip_transform_caps()
149 method_enum = g_enum_get_value (enum_class, videoflip->proposed_method); in gst_video_flip_transform_caps()
154 g_type_class_unref (enum_class); in gst_video_flip_transform_caps()
1072 GEnumClass *enum_class = in gst_video_flip_set_info() local
1075 active_method_enum = g_enum_get_value (enum_class, vf->active_method); in gst_video_flip_set_info()
1076 method_enum = g_enum_get_value (enum_class, vf->configuring_method); in gst_video_flip_set_info()
1080 g_type_class_unref (enum_class); in gst_video_flip_set_info()
1131 GEnumClass *enum_class = in gst_video_flip_set_method() local
1135 g_enum_get_value (enum_class, videoflip->active_method); in gst_video_flip_set_method()
[all …]
/third_party/glib/gio/
Dgcredentials.c393 GEnumClass *enum_class; in credentials_native_type_check() local
404 enum_class = g_type_class_ref (g_credentials_type_get_type ()); in credentials_native_type_check()
405 requested = g_enum_get_value (enum_class, requested_type); in credentials_native_type_check()
408 supported = g_enum_get_value (enum_class, G_CREDENTIALS_NATIVE_TYPE); in credentials_native_type_check()
422 g_type_class_unref (enum_class); in credentials_native_type_check()
Dgnotification.c715 GEnumClass *enum_class; in g_notification_get_priority_nick() local
719 enum_class = g_type_class_ref (G_TYPE_NOTIFICATION_PRIORITY); in g_notification_get_priority_nick()
720 value = g_enum_get_value (enum_class, g_notification_get_priority (notification)); in g_notification_get_priority_nick()
723 g_type_class_unref (enum_class); in g_notification_get_priority_nick()
/third_party/skia/third_party/externals/tint/fuzzers/
Dtransform_builder.h189 desc.format = b->enum_class<transform::VertexFormat>(
202 desc.step_mode = b->enum_class<transform::VertexStepMode>(
Dtint_black_box_fuzz_target.cc126 target_language = builder.enum_class<TargetLanguage>( in main()
Ddata_builder.h91 T enum_class(uint32_t count) { in enum_class() function
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Dvideotestsrc.c544 GEnumClass *enum_class; in GST_START_TEST() local
557 enum_class = g_type_class_ref (type); in GST_START_TEST()
558 num_patterns = enum_class->n_values; in GST_START_TEST()
560 g_type_class_unref (enum_class); in GST_START_TEST()
/third_party/gstreamer/gstplugins_base/tools/
Dgst-discoverer.c212 GEnumClass *enum_class = g_type_class_ref (GST_TYPE_AUDIO_CHANNEL_POSITION); in format_channel_mask() local
225 GEnumValue *value = g_enum_get_value (enum_class, position[i]); in format_channel_mask()
233 g_type_class_unref (enum_class); in format_channel_mask()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/
DEnumTables.cpp16 #define CV_ENUM_CLASS_ENT(enum_class, enum) \ argument
17 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
DTypeDumpVisitor.cpp28 #define ENUM_ENTRY(enum_class, enum) \ argument
29 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/transcoder/
Dgsttranscoder.c1366 GEnumClass *enum_class; in gst_transcoder_message_get_name() local
1368 enum_class = g_type_class_ref (GST_TYPE_TRANSCODER_MESSAGE); in gst_transcoder_message_get_name()
1369 enum_value = g_enum_get_value (enum_class, message); in gst_transcoder_message_get_name()
1371 g_type_class_unref (enum_class); in gst_transcoder_message_get_name()
/third_party/gstreamer/gstplugins_bad/ext/dtls/
Dgstdtlssrtpenc.c281 GValue * target_value, GEnumClass * enum_class) in transform_enum() argument
290 enum_value = g_enum_get_value_by_nick (enum_class, nick); in transform_enum()
/third_party/gstreamer/gstreamer/libs/gst/controller/
Dgstdirectcontrolbinding.c158 GEnumClass *e = pspec->enum_class; in convert_g_value_to_enum()
171 GEnumClass *e = pspec->enum_class; in convert_value_to_enum()
/third_party/gstreamer/gstplugins_bad/ext/srt/
Dgstsrtobject.c713 GEnumClass *enum_class; in gst_srt_object_set_enum_value() local
716 enum_class = g_type_class_ref (enum_type); in gst_srt_object_set_enum_value()
717 enum_value = g_enum_get_value_by_nick (enum_class, value); in gst_srt_object_set_enum_value()
723 g_type_class_unref (enum_class); in gst_srt_object_set_enum_value()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/gtk/3dvideo/
Dmviewwidget.c178 p_class = G_PARAM_SPEC_ENUM (p)->enum_class; in set_downmix_mode()
/third_party/gstreamer/gstplugins_base/tests/examples/gl/gtk/fxtest/
Dfxtest.c153 )->enum_class; in apply_fx()

12