summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapiencoder_priv.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-01-12 21:57:20 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2014-01-13 17:31:55 +0100
commit4a6fbddad64798012f623b92d40a7af84704eba9 (patch)
tree0fb4f08c340c39ae18d57b2d7eee5449148222c5 /gst-libs/gst/vaapi/gstvaapiencoder_priv.h
parent850a637d0f21b750a37fe836f0dc123c4a826dd9 (diff)
encoder: clean-ups.
Drop obsolete and unused macros. Add a few doc comments. Slightly improve indentation of a few leftovers.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapiencoder_priv.h')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder_priv.h37
1 files changed, 18 insertions, 19 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder_priv.h b/gst-libs/gst/vaapi/gstvaapiencoder_priv.h
index 81549d58..78d9da01 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder_priv.h
+++ b/gst-libs/gst/vaapi/gstvaapiencoder_priv.h
@@ -40,21 +40,27 @@ G_BEGIN_DECLS
#define GST_VAAPI_ENCODER_GET_CLASS(obj) \
GST_VAAPI_ENCODER_CLASS(GST_VAAPI_MINI_OBJECT_GET_CLASS(obj))
-/* Get GstVaapiDisplay* */
+/**
+ * GST_VAAPI_ENCODER_DISPLAY:
+ * @encoder: a #GstVaapiEncoder
+ *
+ * Macro that evaluates to the #GstVaapiDisplay of @encoder.
+ * This is an internal macro that does not do any run-time type check.
+ */
+#undef GST_VAAPI_ENCODER_DISPLAY
#define GST_VAAPI_ENCODER_DISPLAY(encoder) \
- (GST_VAAPI_ENCODER_CAST(encoder)->display)
-
-/* Get VADisplay */
-#define GST_VAAPI_ENCODER_VA_DISPLAY(encoder) \
- (GST_VAAPI_ENCODER_CAST(encoder)->va_display)
+ GST_VAAPI_ENCODER_CAST(encoder)->display
-/* Get GstVaapiContext* */
+/**
+ * GST_VAAPI_ENCODER_CONTEXT:
+ * @encoder: a #GstVaapiEncoder
+ *
+ * Macro that evaluates to the #GstVaapiContext of @encoder.
+ * This is an internal macro that does not do any run-time type check.
+ */
+#undef GST_VAAPI_ENCODER_CONTEXT
#define GST_VAAPI_ENCODER_CONTEXT(encoder) \
- (GST_VAAPI_ENCODER_CAST(encoder)->context)
-
-/* Get VAContext */
-#define GST_VAAPI_ENCODER_VA_CONTEXT(encoder) \
- (GST_VAAPI_ENCODER_CAST(encoder)->va_context)
+ GST_VAAPI_ENCODER_CAST(encoder)->context
/**
* GST_VAAPI_ENCODER_VIDEO_INFO:
@@ -133,13 +139,6 @@ G_BEGIN_DECLS
#define GST_VAAPI_ENCODER_KEYFRAME_PERIOD(encoder) \
(GST_VAAPI_ENCODER_CAST (encoder)->keyframe_period)
-#define GST_VAAPI_ENCODER_CHECK_STATUS(exp, err_num, err_reason, ...) \
- if (!(exp)) { \
- ret = err_num; \
- GST_VAAPI_ENCODER_LOG_ERROR(err_reason, ## __VA_ARGS__); \
- goto end; \
- }
-
typedef struct _GstVaapiEncoderClass GstVaapiEncoderClass;
typedef struct _GstVaapiEncoderClassData GstVaapiEncoderClassData;