Revert "libs: encoders: remove unused cast macros"
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 28 Aug 2017 17:09:07 +0000 (19:09 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Mon, 28 Aug 2017 17:09:07 +0000 (19:09 +0200)
This reverts commit fd7d38f7d26b11e592638092b4073b5c1764f255.

gst-libs/gst/vaapi/gstvaapiencoder_h264.h
gst-libs/gst/vaapi/gstvaapiencoder_h265.h
gst-libs/gst/vaapi/gstvaapiencoder_jpeg.h
gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.h
gst-libs/gst/vaapi/gstvaapiencoder_vp8.h
gst-libs/gst/vaapi/gstvaapiencoder_vp9.h

index 0ba54ed..89eab76 100644 (file)
@@ -29,6 +29,9 @@
 
 G_BEGIN_DECLS
 
+#define GST_VAAPI_ENCODER_H264(encoder) \
+  ((GstVaapiEncoderH264 *) (encoder))
+
 typedef struct _GstVaapiEncoderH264 GstVaapiEncoderH264;
 
 /**
index 3554ef1..ec8483e 100644 (file)
@@ -28,6 +28,9 @@
 
 G_BEGIN_DECLS
 
+#define GST_VAAPI_ENCODER_H265(encoder) \
+  ((GstVaapiEncoderH265 *) (encoder))
+
 typedef struct _GstVaapiEncoderH265 GstVaapiEncoderH265;
 
 /**
index 108d030..a18c7e2 100644 (file)
@@ -27,6 +27,9 @@
 
 G_BEGIN_DECLS
 
+#define GST_VAAPI_ENCODER_JPEG(encoder) \
+  ((GstVaapiEncoderJpeg *) (encoder))
+
 typedef struct _GstVaapiEncoderJpeg GstVaapiEncoderJpeg;
 
 /**
index c81cc6c..923ad1d 100644 (file)
@@ -28,6 +28,9 @@
 
 G_BEGIN_DECLS
 
+#define GST_VAAPI_ENCODER_MPEG2(encoder) \
+  ((GstVaapiEncoderMpeg2 *) (encoder))
+
 typedef struct _GstVaapiEncoderMpeg2 GstVaapiEncoderMpeg2;
 
 /**
index c362eba..a48bf46 100644 (file)
@@ -27,6 +27,9 @@
 
 G_BEGIN_DECLS
 
+#define GST_VAAPI_ENCODER_VP8(encoder) \
+  ((GstVaapiEncoderVP8 *) (encoder))
+
 typedef struct _GstVaapiEncoderVP8 GstVaapiEncoderVP8;
 
 /**
index 3723ddb..7967a98 100644 (file)
@@ -27,6 +27,9 @@
 
 G_BEGIN_DECLS
 
+#define GST_VAAPI_ENCODER_VP9(encoder) \
+  ((GstVaapiEncoderVP9 *) (encoder))
+
 typedef struct _GstVaapiEncoderVP9 GstVaapiEncoderVP9;
 
 /**