Lines Matching +full:video +full:- +full:encoder
3 * Author: Jeffy Chen <jeffy.chen@rock-chips.com>
6 * Author: Jeffy Chen <jeffy.chen@rock-chips.com>
21 * Boston, MA 02110-1301, USA.
71 GST_STATIC_CAPS ("video/x-vp8, " GST_MPP_VP8_ENC_SIZE_CAPS));
77 GST_STATIC_CAPS ("video/x-raw,"
85 GstVideoEncoder *encoder = GST_VIDEO_ENCODER (object); in gst_mpp_vp8_enc_set_property() local
86 GstMppVp8Enc *self = GST_MPP_VP8_ENC (encoder); in gst_mpp_vp8_enc_set_property()
87 GstMppEnc *mppenc = GST_MPP_ENC (encoder); in gst_mpp_vp8_enc_set_property()
92 if (self->qp_init == qp_init) in gst_mpp_vp8_enc_set_property()
95 self->qp_init = qp_init; in gst_mpp_vp8_enc_set_property()
100 if (self->qp_min == qp_min) in gst_mpp_vp8_enc_set_property()
103 self->qp_min = qp_min; in gst_mpp_vp8_enc_set_property()
108 if (self->qp_max == qp_max) in gst_mpp_vp8_enc_set_property()
111 self->qp_max = qp_max; in gst_mpp_vp8_enc_set_property()
119 mppenc->prop_dirty = TRUE; in gst_mpp_vp8_enc_set_property()
126 GstVideoEncoder *encoder = GST_VIDEO_ENCODER (object); in gst_mpp_vp8_enc_get_property() local
127 GstMppVp8Enc *self = GST_MPP_VP8_ENC (encoder); in gst_mpp_vp8_enc_get_property()
131 g_value_set_uint (value, self->qp_init); in gst_mpp_vp8_enc_get_property()
134 g_value_set_uint (value, self->qp_min); in gst_mpp_vp8_enc_get_property()
137 g_value_set_uint (value, self->qp_max); in gst_mpp_vp8_enc_get_property()
146 gst_mpp_vp8_enc_apply_properties (GstVideoEncoder * encoder) in gst_mpp_vp8_enc_apply_properties() argument
148 GstMppVp8Enc *self = GST_MPP_VP8_ENC (encoder); in gst_mpp_vp8_enc_apply_properties()
149 GstMppEnc *mppenc = GST_MPP_ENC (encoder); in gst_mpp_vp8_enc_apply_properties()
151 if (!mppenc->prop_dirty) in gst_mpp_vp8_enc_apply_properties()
154 mpp_enc_cfg_set_s32 (mppenc->mpp_cfg, "vp8:qp_init", self->qp_init); in gst_mpp_vp8_enc_apply_properties()
155 mpp_enc_cfg_set_s32 (mppenc->mpp_cfg, "vp8:qp_max", self->qp_max); in gst_mpp_vp8_enc_apply_properties()
156 mpp_enc_cfg_set_s32 (mppenc->mpp_cfg, "vp8:qp_min", self->qp_min); in gst_mpp_vp8_enc_apply_properties()
157 mpp_enc_cfg_set_s32 (mppenc->mpp_cfg, "vp8:disable_ivf", 1); in gst_mpp_vp8_enc_apply_properties()
159 return gst_mpp_enc_apply_properties (encoder); in gst_mpp_vp8_enc_apply_properties()
163 gst_mpp_vp8_enc_set_format (GstVideoEncoder * encoder, in gst_mpp_vp8_enc_set_format() argument
169 if (!pclass->set_format (encoder, state)) in gst_mpp_vp8_enc_set_format()
172 if (!gst_mpp_vp8_enc_apply_properties (encoder)) in gst_mpp_vp8_enc_set_format()
175 caps = gst_caps_new_empty_simple ("video/x-vp8"); in gst_mpp_vp8_enc_set_format()
176 return gst_mpp_enc_set_src_caps (encoder, caps); in gst_mpp_vp8_enc_set_format()
180 gst_mpp_vp8_enc_handle_frame (GstVideoEncoder * encoder, in gst_mpp_vp8_enc_handle_frame() argument
185 if (G_UNLIKELY (!gst_mpp_vp8_enc_apply_properties (encoder))) { in gst_mpp_vp8_enc_handle_frame()
190 return pclass->handle_frame (encoder, frame); in gst_mpp_vp8_enc_handle_frame()
196 self->parent.mpp_type = MPP_VIDEO_CodingVP8; in gst_mpp_vp8_enc_init()
198 self->qp_init = DEFAULT_PROP_QP_INIT; in gst_mpp_vp8_enc_init()
199 self->qp_min = DEFAULT_PROP_QP_MIN; in gst_mpp_vp8_enc_init()
200 self->qp_max = DEFAULT_PROP_QP_MAX; in gst_mpp_vp8_enc_init()
210 GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "mppvp8enc", 0, "MPP VP8 encoder"); in gst_mpp_vp8_enc_class_init()
212 encoder_class->set_format = GST_DEBUG_FUNCPTR (gst_mpp_vp8_enc_set_format); in gst_mpp_vp8_enc_class_init()
213 encoder_class->handle_frame = in gst_mpp_vp8_enc_class_init()
216 gobject_class->set_property = in gst_mpp_vp8_enc_class_init()
218 gobject_class->get_property = in gst_mpp_vp8_enc_class_init()
222 g_param_spec_uint ("qp-init", "Initial QP", in gst_mpp_vp8_enc_class_init()
228 g_param_spec_uint ("qp-min", "Min QP", in gst_mpp_vp8_enc_class_init()
233 g_param_spec_uint ("qp-max", "Max QP", in gst_mpp_vp8_enc_class_init()
244 "Rockchip Mpp VP8 Encoder", "Codec/Encoder/Video", in gst_mpp_vp8_enc_class_init()
245 "Encode video streams via Rockchip Mpp", in gst_mpp_vp8_enc_class_init()
246 "Jeffy Chen <jeffy.chen@rock-chips.com>"); in gst_mpp_vp8_enc_class_init()