#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;
guint32 width;
guint32 height;
guint32 frame_rate;
+ GstVaapiRateControl rate_control;
};
struct _GstVaapiEncoderClass {