Add GST_VAAPI_ID_FORMAT() and GST_VAAPI_ID_ARGS() helpers.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Wed, 24 Mar 2010 12:38:40 +0000 (12:38 +0000)
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Wed, 24 Mar 2010 12:38:40 +0000 (12:38 +0000)
docs/reference/libs/libs-sections.txt
gst-libs/gst/vaapi/gstvaapitypes.h

index bc0f284..0b049f8 100644 (file)
@@ -159,6 +159,8 @@ GST_VAAPI_VIDEO_BUFFER_GET_CLASS
 <FILE>gstvaapitypes</FILE>
 <TITLE>Basic data structures</TITLE>
 GstVaapiID
+GST_VAAPI_ID_FORMAT
+GST_VAAPI_ID_ARGS
 gst_vaapi_value_get_id
 gst_vaapi_value_set_id
 GstVaapiPoint
index 57b8a81..48aadd3 100644 (file)
@@ -49,6 +49,28 @@ typedef guint64 GstVaapiID;
 #endif
 
 /**
+ * GST_VAAPI_ID_FORMAT:
+ *
+ * Can be used together with #GST_VAAPI_ID_ARGS to properly output an
+ * integer value in a printf()-style text message.
+ * <informalexample>
+ * <programlisting>
+ * printf("id: %" GST_VAAPI_ID_FORMAT "\n", GST_VAAPI_ID_ARGS(id));
+ * </programlisting>
+ * </informalexample>
+ */
+#define GST_VAAPI_ID_FORMAT "p"
+
+/**
+ * GST_VAAPI_ID_ARGS:
+ * @id: a #GstVaapiID
+ *
+ * Can be used together with #GST_VAAPI_ID_FORMAT to properly output
+ * an integer value in a printf()-style text message.
+ */
+#define GST_VAAPI_ID_ARGS(id) GUINT_TO_POINTER(id)
+
+/**
  * GST_VAAPI_TYPE_ID:
  *
  * A #GValue type that represents a VA identifier.