h264encoder: add rate-control attribute
[profile/ivi/gstreamer-vaapi.git] / gst-libs / gst / vaapi / gstvaapiencoder.h
index 8030ed1..301d25b 100644 (file)
@@ -164,6 +164,8 @@ typedef struct _GstVaapiEncoderClass         GstVaapiEncoderClass;
 #define ENCODER_WIDTH(encoder)   (((GstVaapiEncoder*)(encoder))->width)
 #define ENCODER_HEIGHT(encoder)  (((GstVaapiEncoder*)(encoder))->height)
 #define ENCODER_FPS(encoder)     (((GstVaapiEncoder*)(encoder))->frame_rate)
+#define ENCODER_RATE_CONTROL(encoder)   \
+    (((GstVaapiEncoder*)(encoder))->rate_control)
 
 struct _GstVaapiEncoder {
   GObject parent;
@@ -172,6 +174,7 @@ struct _GstVaapiEncoder {
   guint32 width;
   guint32 height;
   guint32 frame_rate;
+  GstVaapiRateControl rate_control;
 };
 
 struct _GstVaapiEncoderClass {