mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
audiodecoder: add some documentation
This commit is contained in:
parent
856a5dd581
commit
9f57d91137
2 changed files with 24 additions and 1 deletions
|
@ -715,6 +715,27 @@ again:
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_audio_decoder_finish_frame:
|
||||
* @dec: a #GstAudioDecoder
|
||||
* @buf: decoded data
|
||||
* @frames: number of decoded frames represented by decoded data
|
||||
*
|
||||
* Collects decoded data and pushes it downstream.
|
||||
*
|
||||
* @buf may be NULL in which case the indicated number of frames
|
||||
* are discarded and considered to have produced no output
|
||||
* (e.g. lead-in or setup frames).
|
||||
* Otherwise, source pad caps must be set when it is called with valid
|
||||
* data in @buf.
|
||||
*
|
||||
* Note that a frame received in gst_audio_decoder_handle_frame() may be
|
||||
* invalidated by a call to this function.
|
||||
*
|
||||
* Returns: a #GstFlowReturn that should be escalated to caller (of caller)
|
||||
*
|
||||
* Since: 0.10.36
|
||||
*/
|
||||
GstFlowReturn
|
||||
gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
|
||||
gint frames)
|
||||
|
|
|
@ -173,7 +173,9 @@ struct _GstAudioDecoder
|
|||
* frames as defined by audio format.
|
||||
* @handle_frame: Provides input data (or NULL to clear any remaining data)
|
||||
* to subclass. Input data ref management is performed by
|
||||
* base class, subclass should not care or intervene.
|
||||
* base class, subclass should not care or intervene,
|
||||
* and input data is only valid until next call to base class,
|
||||
* most notably a call to gst_audio_decoder_finish_frame().
|
||||
* @flush: Optional.
|
||||
* Instructs subclass to clear any codec caches and discard
|
||||
* any pending samples and not yet returned encoded data.
|
||||
|
|
Loading…
Reference in a new issue