21 #define __GST_PARAMSPECS_H__ |
21 #define __GST_PARAMSPECS_H__ |
22 |
22 |
23 #include <gst/gstvalue.h> |
23 #include <gst/gstvalue.h> |
24 |
24 |
25 G_BEGIN_DECLS |
25 G_BEGIN_DECLS |
|
26 |
|
27 /* --- paramspec flags */ |
|
28 |
|
29 /** |
|
30 * GST_PARAM_CONTROLLABLE: |
|
31 * |
|
32 * Use this flag on GObject properties to signal they can make sense to be. |
|
33 * controlled over time. This hint is used by the GstController. |
|
34 */ |
|
35 #define GST_PARAM_CONTROLLABLE (1 << (G_PARAM_USER_SHIFT + 1)) |
|
36 |
|
37 /** |
|
38 * GST_PARAM_MUTABLE_READY: |
|
39 * |
|
40 * Use this flag on GObject properties of GstElements to indicate that |
|
41 * they can be changed when the element is in the READY or lower state. |
|
42 * |
|
43 * Since: 0.10.23 |
|
44 */ |
|
45 #define GST_PARAM_MUTABLE_READY (1 << (G_PARAM_USER_SHIFT + 2)) |
|
46 |
|
47 /** |
|
48 * GST_PARAM_MUTABLE_PAUSED: |
|
49 * |
|
50 * Use this flag on GObject properties of GstElements to indicate that |
|
51 * they can be changed when the element is in the PAUSED or lower state. |
|
52 * This flag implies GST_PARAM_MUTABLE_READY. |
|
53 * |
|
54 * Since: 0.10.23 |
|
55 */ |
|
56 #define GST_PARAM_MUTABLE_PAUSED (1 << (G_PARAM_USER_SHIFT + 3)) |
|
57 |
|
58 /** |
|
59 * GST_PARAM_MUTABLE_PLAYING: |
|
60 * |
|
61 * Use this flag on GObject properties of GstElements to indicate that |
|
62 * they can be changed when the element is in the PLAYING or lower state. |
|
63 * This flag implies GST_PARAM_MUTABLE_PAUSED. |
|
64 * |
|
65 * Since: 0.10.23 |
|
66 */ |
|
67 #define GST_PARAM_MUTABLE_PLAYING (1 << (G_PARAM_USER_SHIFT + 4)) |
|
68 |
|
69 /** |
|
70 * GST_PARAM_USER_SHIFT: |
|
71 * |
|
72 * Bits based on GST_PARAM_USER_SHIFT can be used by 3rd party applications. |
|
73 */ |
|
74 #define GST_PARAM_USER_SHIFT (1 << (G_PARAM_USER_SHIFT + 8)) |
|
75 |
26 |
76 |
27 /* --- type macros --- */ |
77 /* --- type macros --- */ |
28 |
78 |
29 #define GST_TYPE_PARAM_FRACTION (gst_param_spec_fraction_get_type ()) |
79 #define GST_TYPE_PARAM_FRACTION (gst_param_spec_fraction_get_type ()) |
30 #define GST_IS_PARAM_SPEC_FRACTION(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GST_TYPE_PARAM_FRACTION)) |
80 #define GST_IS_PARAM_SPEC_FRACTION(pspec) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GST_TYPE_PARAM_FRACTION)) |