From: gb Date: Wed, 24 Mar 2010 12:38:40 +0000 (+0000) Subject: Add GST_VAAPI_ID_FORMAT() and GST_VAAPI_ID_ARGS() helpers. X-Git-Tag: accepted/trunk/20120822.173359~624 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a09c84b04dd0f50b334cf2fc1e9673c35a674d47;p=profile%2Fivi%2Fgstreamer-vaapi.git Add GST_VAAPI_ID_FORMAT() and GST_VAAPI_ID_ARGS() helpers. --- 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.