Top | ![]() |
![]() |
![]() |
![]() |
struct | GstAudioDecoder |
struct | GstAudioDecoderClass |
#define | GST_AUDIO_DECODER_SINK_NAME |
#define | GST_AUDIO_DECODER_SRC_NAME |
#define GST_AUDIO_DECODER_ERROR(el, weight, domain, code, text, debug, ret)
#define GST_AUDIO_DECODER_SINK_PAD(obj) (((GstAudioDecoder *) (obj))->sinkpad)
#define GST_AUDIO_DECODER_SRC_PAD(obj) (((GstAudioDecoder *) (obj))->srcpad)
GstFlowReturn gst_audio_decoder_finish_frame (GstAudioDecoder *dec
,GstBuffer *buf
,gint frames
);
GstAudioInfo *
gst_audio_decoder_get_audio_info (GstAudioDecoder *dec
);
void gst_audio_decoder_get_latency (GstAudioDecoder *dec
,GstClockTime *min
,GstClockTime *max
);
gint64
gst_audio_decoder_get_min_latency (GstAudioDecoder *dec
);
gboolean
gst_audio_decoder_get_needs_format (GstAudioDecoder *dec
);
void gst_audio_decoder_get_parse_state (GstAudioDecoder *dec
,gboolean *sync
,gboolean *eos
);
void gst_audio_decoder_set_byte_time (GstAudioDecoder *dec
,gboolean enabled
);
void gst_audio_decoder_set_drainable (GstAudioDecoder *dec
,gboolean enabled
);
void gst_audio_decoder_set_latency (GstAudioDecoder *dec
,GstClockTime min
,GstClockTime max
);
void gst_audio_decoder_set_max_errors (GstAudioDecoder *dec
,gint num
);
void gst_audio_decoder_set_min_latency (GstAudioDecoder *dec
,gint64 num
);
void gst_audio_decoder_set_needs_format (GstAudioDecoder *dec
,gboolean enabled
);
void gst_audio_decoder_set_plc (GstAudioDecoder *dec
,gboolean enabled
);
void gst_audio_decoder_set_plc_aware (GstAudioDecoder *dec
,gboolean plc
);
void gst_audio_decoder_set_tolerance (GstAudioDecoder *dec
,gint64 tolerance
);
struct GstAudioDecoderClass { GstElementClass element_class; /* virtual methods for subclasses */ gboolean (*start) (GstAudioDecoder *dec); gboolean (*stop) (GstAudioDecoder *dec); gboolean (*set_format) (GstAudioDecoder *dec, GstCaps *caps); GstFlowReturn (*parse) (GstAudioDecoder *dec, GstAdapter *adapter, gint *offset, gint *length); GstFlowReturn (*handle_frame) (GstAudioDecoder *dec, GstBuffer *buffer); void (*flush) (GstAudioDecoder *dec, gboolean hard); GstFlowReturn (*pre_push) (GstAudioDecoder *dec, GstBuffer **buffer); gboolean (*event) (GstAudioDecoder *dec, GstEvent *event); };
“min-latency”
property “min-latency” gint64
Aggregate output data to a minimum of latency time (ns).
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“plc”
property “plc” gboolean
Perform packet loss concealment (if supported).
Flags: Read / Write
Default value: FALSE