Lines Matching refs:mulawenc
54 static void gst_mulawenc_set_tags (GstMuLawEnc * mulawenc);
65 GstMuLawEnc *mulawenc = GST_MULAWENC (audioenc); in gst_mulawenc_start() local
67 mulawenc->channels = 0; in gst_mulawenc_start()
68 mulawenc->rate = 0; in gst_mulawenc_start()
75 gst_mulawenc_set_tags (GstMuLawEnc * mulawenc) in gst_mulawenc_set_tags() argument
81 bitrate = 8 * mulawenc->rate * mulawenc->channels; in gst_mulawenc_set_tags()
91 gst_audio_encoder_merge_tags (GST_AUDIO_ENCODER (mulawenc), in gst_mulawenc_set_tags()
103 GstMuLawEnc *mulawenc = GST_MULAWENC (audioenc); in gst_mulawenc_set_format() local
106 mulawenc->rate = info->rate; in gst_mulawenc_set_format()
107 mulawenc->channels = info->channels; in gst_mulawenc_set_format()
117 gst_structure_set (structure, "rate", G_TYPE_INT, mulawenc->rate, NULL); in gst_mulawenc_set_format()
118 gst_structure_set (structure, "channels", G_TYPE_INT, mulawenc->channels, in gst_mulawenc_set_format()
121 gst_mulawenc_set_tags (mulawenc); in gst_mulawenc_set_format()
132 GstMuLawEnc *mulawenc; in gst_mulawenc_handle_frame() local
146 mulawenc = GST_MULAWENC (audioenc); in gst_mulawenc_handle_frame()
148 if (!mulawenc->rate || !mulawenc->channels) in gst_mulawenc_handle_frame()
177 GST_DEBUG_OBJECT (mulawenc, "no format negotiated"); in gst_mulawenc_handle_frame()
208 gst_mulawenc_init (GstMuLawEnc * mulawenc) in gst_mulawenc_init() argument
210 GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (mulawenc)); in gst_mulawenc_init()