From a09c84b04dd0f50b334cf2fc1e9673c35a674d47 Mon Sep 17 00:00:00 2001 From: gb Date: Wed, 24 Mar 2010 12:38:40 +0000 Subject: [PATCH] Add GST_VAAPI_ID_FORMAT() and GST_VAAPI_ID_ARGS() helpers. --- docs/reference/libs/libs-sections.txt | 2 ++ gst-libs/gst/vaapi/gstvaapitypes.h | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/docs/reference/libs/libs-sections.txt b/docs/reference/libs/libs-sections.txt index bc0f284..0b049f8 100644 --- a/docs/reference/libs/libs-sections.txt +++ b/docs/reference/libs/libs-sections.txt @@ -159,6 +159,8 @@ GST_VAAPI_VIDEO_BUFFER_GET_CLASS gstvaapitypes Basic data structures GstVaapiID +GST_VAAPI_ID_FORMAT +GST_VAAPI_ID_ARGS gst_vaapi_value_get_id gst_vaapi_value_set_id GstVaapiPoint diff --git a/gst-libs/gst/vaapi/gstvaapitypes.h b/gst-libs/gst/vaapi/gstvaapitypes.h index 57b8a81..48aadd3 100644 --- a/gst-libs/gst/vaapi/gstvaapitypes.h +++ b/gst-libs/gst/vaapi/gstvaapitypes.h @@ -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. + * + * + * printf("id: %" GST_VAAPI_ID_FORMAT "\n", GST_VAAPI_ID_ARGS(id)); + * + * + */ +#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. -- 2.7.4