static void gst_msdkmjpegenc_class_init (GstMsdkMJPEGEncClass * klass) { GObjectClass *gobject_class; GstElementClass *element_class; GstMsdkEncClass *encoder_class; gobject_class = G_OBJECT_CLASS (klass); element_class = GST_ELEMENT_CLASS (klass); encoder_class = GST_MSDKENC_CLASS (klass); encoder_class->set_format = gst_msdkmjpegenc_set_format; encoder_class->configure = gst_msdkmjpegenc_configure; encoder_class->set_src_caps = gst_msdkmjpegenc_set_src_caps; gobject_class->get_property = gst_msdkmjpegenc_get_property; gobject_class->set_property = gst_msdkmjpegenc_set_property; g_object_class_install_property (gobject_class, PROP_QUALITY, g_param_spec_uint ("quality", "Quality", "Quality of encoding", 0, 100, DEFAULT_QUALITY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (element_class, "Intel MSDK MJPEG encoder", "Codec/Encoder/Video", "MJPEG video encoder based on Intel Media SDK", "Scott D Phillips <*****@*****.**>"); gst_element_class_add_static_pad_template (element_class, &src_factory); }
static void gst_msdkvp8enc_class_init (GstMsdkVP8EncClass * klass) { GObjectClass *gobject_class; GstElementClass *element_class; GstMsdkEncClass *encoder_class; gobject_class = G_OBJECT_CLASS (klass); element_class = GST_ELEMENT_CLASS (klass); encoder_class = GST_MSDKENC_CLASS (klass); gobject_class->set_property = gst_msdkvp8enc_set_property; gobject_class->get_property = gst_msdkvp8enc_get_property; encoder_class->set_format = gst_msdkvp8enc_set_format; encoder_class->configure = gst_msdkvp8enc_configure; encoder_class->set_src_caps = gst_msdkvp8enc_set_src_caps; gst_msdkenc_install_common_properties (encoder_class); gst_element_class_set_static_metadata (element_class, "Intel MSDK VP8 encoder", "Codec/Encoder/Video", "VP8 video encoder based on Intel Media SDK", "Josep Torra <*****@*****.**>"); gst_element_class_add_static_pad_template (element_class, &src_factory); }
static void gst_msdkh264enc_class_init (GstMsdkH264EncClass * klass) { GObjectClass *gobject_class; GstElementClass *element_class; GstMsdkEncClass *encoder_class; gobject_class = G_OBJECT_CLASS (klass); element_class = GST_ELEMENT_CLASS (klass); encoder_class = GST_MSDKENC_CLASS (klass); gobject_class->set_property = gst_msdkh264enc_set_property; gobject_class->get_property = gst_msdkh264enc_get_property; encoder_class->set_format = gst_msdkh264enc_set_format; encoder_class->configure = gst_msdkh264enc_configure; encoder_class->set_src_caps = gst_msdkh264enc_set_src_caps; g_object_class_install_property (gobject_class, PROP_CABAC, g_param_spec_boolean ("cabac", "CABAC", "Enable CABAC entropy coding", PROP_CABAC_DEFAULT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_LOW_POWER, g_param_spec_boolean ("low-power", "Low power", "Enable low power mode", PROP_LOWPOWER_DEFAULT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_static_metadata (element_class, "Intel MSDK H264 encoder", "Codec/Encoder/Video", "H264 video encoder based on Intel Media SDK", "Josep Torra <*****@*****.**>"); gst_element_class_add_static_pad_template (element_class, &src_factory); }