Lines Matching refs:audio_enc
191 gst_ldac_enc_do_negotiate (GstAudioEncoder * audio_enc) in gst_ldac_enc_do_negotiate() argument
193 GstLdacEnc *enc = GST_LDAC_ENC (audio_enc); in gst_ldac_enc_do_negotiate()
255 gst_ldac_enc_negotiate (GstAudioEncoder * audio_enc) in gst_ldac_enc_negotiate() argument
257 GstLdacEnc *enc = GST_LDAC_ENC (audio_enc); in gst_ldac_enc_negotiate()
260 output_caps = gst_ldac_enc_do_negotiate (audio_enc); in gst_ldac_enc_negotiate()
266 if (!gst_audio_encoder_set_output_format (audio_enc, output_caps)) { in gst_ldac_enc_negotiate()
273 return GST_AUDIO_ENCODER_CLASS (parent_class)->negotiate (audio_enc); in gst_ldac_enc_negotiate()
277 gst_ldac_enc_set_format (GstAudioEncoder * audio_enc, GstAudioInfo * info) in gst_ldac_enc_set_format() argument
279 GstLdacEnc *enc = GST_LDAC_ENC (audio_enc); in gst_ldac_enc_set_format()
305 output_caps = gst_ldac_enc_do_negotiate (audio_enc); in gst_ldac_enc_set_format()
311 if (!gst_audio_encoder_set_output_format (audio_enc, output_caps)) { in gst_ldac_enc_set_format()
320 gst_audio_encoder_set_frame_samples_min (audio_enc, in gst_ldac_enc_set_format()
351 gst_ldac_enc_handle_frame (GstAudioEncoder * audio_enc, GstBuffer * buffer) in gst_ldac_enc_handle_frame() argument
353 GstLdacEnc *enc = GST_LDAC_ENC (audio_enc); in gst_ldac_enc_handle_frame()
369 GST_ELEMENT_ERROR (audio_enc, STREAM, FAILED, (NULL), in gst_ldac_enc_handle_frame()
374 info = gst_audio_encoder_get_audio_info (audio_enc); in gst_ldac_enc_handle_frame()
384 outbuf = gst_audio_encoder_allocate_output_buffer (audio_enc, in gst_ldac_enc_handle_frame()
474 return gst_audio_encoder_finish_frame (audio_enc, outbuf, samples_consumed); in gst_ldac_enc_handle_frame()
498 gst_ldac_enc_start (GstAudioEncoder * audio_enc) in gst_ldac_enc_start() argument
500 GstLdacEnc *enc = GST_LDAC_ENC (audio_enc); in gst_ldac_enc_start()
514 gst_ldac_enc_stop (GstAudioEncoder * audio_enc) in gst_ldac_enc_stop() argument
516 GstLdacEnc *enc = GST_LDAC_ENC (audio_enc); in gst_ldac_enc_stop()