2011-09-05 14:01:09 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2011 Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>.
|
|
|
|
* Copyright (C) 2011 Nokia Corporation. All rights reserved.
|
|
|
|
* Contact: Stefan Kost <stefan.kost@nokia.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2011-09-05 14:01:09 +00:00
|
|
|
*/
|
|
|
|
|
2013-08-16 12:06:58 +00:00
|
|
|
#ifndef __GST_AUDIO_AUDIO_H__
|
|
|
|
#include <gst/audio/audio.h>
|
|
|
|
#endif
|
|
|
|
|
2011-09-05 14:01:09 +00:00
|
|
|
#ifndef __GST_AUDIO_ENCODER_H__
|
|
|
|
#define __GST_AUDIO_ENCODER_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GST_TYPE_AUDIO_ENCODER (gst_audio_encoder_get_type())
|
|
|
|
#define GST_AUDIO_ENCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_ENCODER,GstAudioEncoder))
|
|
|
|
#define GST_AUDIO_ENCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_ENCODER,GstAudioEncoderClass))
|
|
|
|
#define GST_AUDIO_ENCODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_AUDIO_ENCODER,GstAudioEncoderClass))
|
|
|
|
#define GST_IS_AUDIO_ENCODER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_ENCODER))
|
|
|
|
#define GST_IS_AUDIO_ENCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_ENCODER))
|
|
|
|
#define GST_AUDIO_ENCODER_CAST(obj) ((GstAudioEncoder *)(obj))
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_AUDIO_ENCODER_SINK_NAME:
|
|
|
|
*
|
|
|
|
* the name of the templates for the sink pad
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_ENCODER_SINK_NAME "sink"
|
|
|
|
/**
|
|
|
|
* GST_AUDIO_ENCODER_SRC_NAME:
|
|
|
|
*
|
|
|
|
* the name of the templates for the source pad
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_ENCODER_SRC_NAME "src"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_AUDIO_ENCODER_SRC_PAD:
|
2012-04-02 12:23:16 +00:00
|
|
|
* @obj: audio encoder instance
|
2011-09-05 14:01:09 +00:00
|
|
|
*
|
|
|
|
* Gives the pointer to the source #GstPad object of the element.
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_ENCODER_SRC_PAD(obj) (GST_AUDIO_ENCODER_CAST (obj)->srcpad)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_AUDIO_ENCODER_SINK_PAD:
|
2012-04-02 12:23:16 +00:00
|
|
|
* @obj: audio encoder instance
|
2011-09-05 14:01:09 +00:00
|
|
|
*
|
|
|
|
* Gives the pointer to the sink #GstPad object of the element.
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_ENCODER_SINK_PAD(obj) (GST_AUDIO_ENCODER_CAST (obj)->sinkpad)
|
|
|
|
|
|
|
|
/**
|
2012-03-30 11:21:09 +00:00
|
|
|
* GST_AUDIO_ENCODER_INPUT_SEGMENT:
|
2011-09-05 14:01:09 +00:00
|
|
|
* @obj: base parse instance
|
|
|
|
*
|
2012-03-30 11:21:09 +00:00
|
|
|
* Gives the input segment of the element.
|
2011-09-05 14:01:09 +00:00
|
|
|
*/
|
2012-03-30 11:21:09 +00:00
|
|
|
#define GST_AUDIO_ENCODER_INPUT_SEGMENT(obj) (GST_AUDIO_ENCODER_CAST (obj)->input_segment)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GST_AUDIO_ENCODER_OUTPUT_SEGMENT:
|
|
|
|
* @obj: base parse instance
|
|
|
|
*
|
|
|
|
* Gives the output segment of the element.
|
|
|
|
*/
|
|
|
|
#define GST_AUDIO_ENCODER_OUTPUT_SEGMENT(obj) (GST_AUDIO_ENCODER_CAST (obj)->output_segment)
|
2011-09-05 14:01:09 +00:00
|
|
|
|
2012-01-19 08:48:38 +00:00
|
|
|
#define GST_AUDIO_ENCODER_STREAM_LOCK(enc) g_rec_mutex_lock (&GST_AUDIO_ENCODER (enc)->stream_lock)
|
|
|
|
#define GST_AUDIO_ENCODER_STREAM_UNLOCK(enc) g_rec_mutex_unlock (&GST_AUDIO_ENCODER (enc)->stream_lock)
|
2011-09-05 14:01:09 +00:00
|
|
|
|
|
|
|
typedef struct _GstAudioEncoder GstAudioEncoder;
|
|
|
|
typedef struct _GstAudioEncoderClass GstAudioEncoderClass;
|
|
|
|
|
|
|
|
typedef struct _GstAudioEncoderPrivate GstAudioEncoderPrivate;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstAudioEncoder:
|
|
|
|
*
|
|
|
|
* The opaque #GstAudioEncoder data structure.
|
|
|
|
*/
|
|
|
|
struct _GstAudioEncoder {
|
|
|
|
GstElement element;
|
|
|
|
|
|
|
|
/*< protected >*/
|
|
|
|
/* source and sink pads */
|
|
|
|
GstPad *sinkpad;
|
|
|
|
GstPad *srcpad;
|
|
|
|
|
2011-09-26 13:45:40 +00:00
|
|
|
/* protects all data processing, i.e. is locked
|
|
|
|
* in the chain function, finish_frame and when
|
|
|
|
* processing serialized events */
|
2012-01-19 08:48:38 +00:00
|
|
|
GRecMutex stream_lock;
|
2011-09-26 13:45:40 +00:00
|
|
|
|
2011-09-05 14:01:09 +00:00
|
|
|
/* MT-protected (with STREAM_LOCK) */
|
2012-03-30 11:21:09 +00:00
|
|
|
GstSegment input_segment;
|
|
|
|
GstSegment output_segment;
|
2011-09-05 14:01:09 +00:00
|
|
|
|
|
|
|
/*< private >*/
|
|
|
|
GstAudioEncoderPrivate *priv;
|
2011-11-11 16:53:03 +00:00
|
|
|
|
2011-09-05 14:01:09 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING_LARGE];
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstAudioEncoderClass:
|
2011-09-06 09:07:33 +00:00
|
|
|
* @element_class: The parent class structure
|
2011-09-05 14:01:09 +00:00
|
|
|
* @start: Optional.
|
|
|
|
* Called when the element starts processing.
|
|
|
|
* Allows opening external resources.
|
|
|
|
* @stop: Optional.
|
|
|
|
* Called when the element stops processing.
|
|
|
|
* Allows closing external resources.
|
|
|
|
* @set_format: Notifies subclass of incoming data format.
|
|
|
|
* GstAudioInfo contains the format according to provided caps.
|
|
|
|
* @handle_frame: Provides input samples (or NULL to clear any remaining data)
|
2011-09-05 19:45:22 +00:00
|
|
|
* according to directions as configured by the subclass
|
|
|
|
* using the API. Input data ref management is performed
|
2011-11-28 10:30:18 +00:00
|
|
|
* by 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_encoder_finish_frame().
|
2011-09-05 14:01:09 +00:00
|
|
|
* @flush: Optional.
|
|
|
|
* Instructs subclass to clear any codec caches and discard
|
|
|
|
* any pending samples and not yet returned encoded data.
|
2012-03-30 10:15:27 +00:00
|
|
|
* @sink_event: Optional.
|
|
|
|
* Event handler on the sink pad. Subclasses should chain up to
|
|
|
|
* the parent implementation to invoke the default handler.
|
|
|
|
* @src_event: Optional.
|
|
|
|
* Event handler on the src pad. Subclasses should chain up to
|
|
|
|
* the parent implementation to invoke the default handler.
|
2011-09-05 14:01:09 +00:00
|
|
|
* @pre_push: Optional.
|
|
|
|
* Called just prior to pushing (encoded data) buffer downstream.
|
|
|
|
* Subclass has full discretionary access to buffer,
|
|
|
|
* and a not OK flow return will abort downstream pushing.
|
|
|
|
* @getcaps: Optional.
|
|
|
|
* Allows for a custom sink getcaps implementation (e.g.
|
|
|
|
* for multichannel input specification). If not implemented,
|
|
|
|
* default returns gst_audio_encoder_proxy_getcaps
|
|
|
|
* applied to sink template caps.
|
2012-03-09 09:54:48 +00:00
|
|
|
* @open: Optional.
|
|
|
|
* Called when the element changes to GST_STATE_READY.
|
2012-07-13 10:11:06 +00:00
|
|
|
* Allows opening external resources.
|
2012-03-09 09:54:48 +00:00
|
|
|
* @close: Optional.
|
|
|
|
* Called when the element changes to GST_STATE_NULL.
|
2012-07-13 10:11:06 +00:00
|
|
|
* Allows closing external resources.
|
2012-08-09 13:27:33 +00:00
|
|
|
* @negotiate: Optional.
|
|
|
|
* Negotiate with downstream and configure buffer pools, etc.
|
2012-10-08 10:43:03 +00:00
|
|
|
* Subclasses should chain up to the parent implementation to
|
|
|
|
* invoke the default handler.
|
2012-07-23 08:20:05 +00:00
|
|
|
* @decide_allocation: Optional.
|
|
|
|
* Setup the allocation parameters for allocating output
|
|
|
|
* buffers. The passed in query contains the result of the
|
|
|
|
* downstream allocation query.
|
2012-10-08 10:43:03 +00:00
|
|
|
* Subclasses should chain up to the parent implementation to
|
|
|
|
* invoke the default handler.
|
2012-07-23 08:20:05 +00:00
|
|
|
* @propose_allocation: Optional.
|
|
|
|
* Propose buffer allocation parameters for upstream elements.
|
2012-10-08 10:43:03 +00:00
|
|
|
* Subclasses should chain up to the parent implementation to
|
|
|
|
* invoke the default handler.
|
2015-06-29 15:38:38 +00:00
|
|
|
* @transform_meta: Optional. Transform the metadata on the input buffer to the
|
|
|
|
* output buffer. By default this method copies all meta without
|
|
|
|
* tags and meta with only the "audio" tag. subclasses can
|
|
|
|
* implement this method and return %TRUE if the metadata is to be
|
2019-04-23 12:05:43 +00:00
|
|
|
* copied. Since: 1.6
|
2015-08-16 11:12:01 +00:00
|
|
|
* @sink_query: Optional.
|
|
|
|
* Query handler on the sink pad. This function should
|
|
|
|
* return TRUE if the query could be performed. Subclasses
|
|
|
|
* should chain up to the parent implementation to invoke the
|
2019-04-23 12:05:43 +00:00
|
|
|
* default handler. Since: 1.6
|
2015-08-16 11:12:01 +00:00
|
|
|
* @src_query: Optional.
|
|
|
|
* Query handler on the source pad. This function should
|
|
|
|
* return TRUE if the query could be performed. Subclasses
|
|
|
|
* should chain up to the parent implementation to invoke the
|
2019-04-23 12:05:43 +00:00
|
|
|
* default handler. Since: 1.6
|
2011-09-05 14:01:09 +00:00
|
|
|
*
|
|
|
|
* Subclasses can override any of the available virtual methods or not, as
|
|
|
|
* needed. At minimum @set_format and @handle_frame needs to be overridden.
|
|
|
|
*/
|
|
|
|
struct _GstAudioEncoderClass {
|
2011-09-06 09:07:33 +00:00
|
|
|
GstElementClass element_class;
|
2011-09-05 14:01:09 +00:00
|
|
|
|
|
|
|
/*< public >*/
|
|
|
|
/* virtual methods for subclasses */
|
|
|
|
|
|
|
|
gboolean (*start) (GstAudioEncoder *enc);
|
|
|
|
|
|
|
|
gboolean (*stop) (GstAudioEncoder *enc);
|
|
|
|
|
|
|
|
gboolean (*set_format) (GstAudioEncoder *enc,
|
|
|
|
GstAudioInfo *info);
|
|
|
|
|
|
|
|
GstFlowReturn (*handle_frame) (GstAudioEncoder *enc,
|
|
|
|
GstBuffer *buffer);
|
|
|
|
|
|
|
|
void (*flush) (GstAudioEncoder *enc);
|
|
|
|
|
|
|
|
GstFlowReturn (*pre_push) (GstAudioEncoder *enc,
|
|
|
|
GstBuffer **buffer);
|
|
|
|
|
2012-03-30 10:15:27 +00:00
|
|
|
gboolean (*sink_event) (GstAudioEncoder *enc,
|
|
|
|
GstEvent *event);
|
|
|
|
|
|
|
|
gboolean (*src_event) (GstAudioEncoder *enc,
|
2011-09-05 14:01:09 +00:00
|
|
|
GstEvent *event);
|
|
|
|
|
2011-09-06 13:24:32 +00:00
|
|
|
GstCaps * (*getcaps) (GstAudioEncoder *enc, GstCaps *filter);
|
2011-09-05 14:01:09 +00:00
|
|
|
|
2012-03-09 09:54:48 +00:00
|
|
|
gboolean (*open) (GstAudioEncoder *enc);
|
|
|
|
|
|
|
|
gboolean (*close) (GstAudioEncoder *enc);
|
|
|
|
|
2012-08-09 13:27:33 +00:00
|
|
|
gboolean (*negotiate) (GstAudioEncoder *enc);
|
|
|
|
|
2012-07-23 08:20:05 +00:00
|
|
|
gboolean (*decide_allocation) (GstAudioEncoder *enc, GstQuery *query);
|
|
|
|
|
|
|
|
gboolean (*propose_allocation) (GstAudioEncoder * enc,
|
|
|
|
GstQuery * query);
|
|
|
|
|
2015-06-29 15:38:38 +00:00
|
|
|
gboolean (*transform_meta) (GstAudioEncoder *enc, GstBuffer *outbuf,
|
|
|
|
GstMeta *meta, GstBuffer *inbuf);
|
|
|
|
|
2015-08-16 11:12:01 +00:00
|
|
|
gboolean (*sink_query) (GstAudioEncoder *encoder,
|
|
|
|
GstQuery *query);
|
|
|
|
|
|
|
|
gboolean (*src_query) (GstAudioEncoder *encoder,
|
|
|
|
GstQuery *query);
|
|
|
|
|
2015-06-29 15:38:38 +00:00
|
|
|
|
2011-09-05 14:01:09 +00:00
|
|
|
/*< private >*/
|
2015-08-16 11:12:01 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING_LARGE-3];
|
2011-09-05 14:01:09 +00:00
|
|
|
};
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
GType gst_audio_encoder_get_type (void);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
GstFlowReturn gst_audio_encoder_finish_frame (GstAudioEncoder * enc,
|
|
|
|
GstBuffer * buffer,
|
|
|
|
gint samples);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
GstCaps * gst_audio_encoder_proxy_getcaps (GstAudioEncoder * enc,
|
2012-07-25 12:56:20 +00:00
|
|
|
GstCaps * caps,
|
|
|
|
GstCaps * filter);
|
2011-09-05 14:01:09 +00:00
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-02-01 15:00:37 +00:00
|
|
|
gboolean gst_audio_encoder_set_output_format (GstAudioEncoder * enc,
|
|
|
|
GstCaps * caps);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-08-09 13:20:45 +00:00
|
|
|
gboolean gst_audio_encoder_negotiate (GstAudioEncoder * enc);
|
2011-09-05 14:01:09 +00:00
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-09-13 21:11:56 +00:00
|
|
|
GstBuffer * gst_audio_encoder_allocate_output_buffer (GstAudioEncoder * enc,
|
2012-07-23 08:20:05 +00:00
|
|
|
gsize size);
|
|
|
|
|
2011-09-05 14:01:09 +00:00
|
|
|
/* context parameters */
|
2017-05-15 23:45:41 +00:00
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
GstAudioInfo * gst_audio_encoder_get_audio_info (GstAudioEncoder * enc);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-26 13:59:22 +00:00
|
|
|
gint gst_audio_encoder_get_frame_samples_min (GstAudioEncoder * enc);
|
2011-09-05 14:01:09 +00:00
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-26 13:59:22 +00:00
|
|
|
void gst_audio_encoder_set_frame_samples_min (GstAudioEncoder * enc, gint num);
|
2011-09-05 14:01:09 +00:00
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-26 13:59:22 +00:00
|
|
|
gint gst_audio_encoder_get_frame_samples_max (GstAudioEncoder * enc);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-26 13:59:22 +00:00
|
|
|
void gst_audio_encoder_set_frame_samples_max (GstAudioEncoder * enc, gint num);
|
2011-09-05 14:01:09 +00:00
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
gint gst_audio_encoder_get_frame_max (GstAudioEncoder * enc);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
void gst_audio_encoder_set_frame_max (GstAudioEncoder * enc, gint num);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
gint gst_audio_encoder_get_lookahead (GstAudioEncoder * enc);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
void gst_audio_encoder_set_lookahead (GstAudioEncoder * enc, gint num);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
void gst_audio_encoder_get_latency (GstAudioEncoder * enc,
|
|
|
|
GstClockTime * min,
|
|
|
|
GstClockTime * max);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
void gst_audio_encoder_set_latency (GstAudioEncoder * enc,
|
|
|
|
GstClockTime min,
|
|
|
|
GstClockTime max);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-03-30 10:47:28 +00:00
|
|
|
void gst_audio_encoder_set_headers (GstAudioEncoder * enc,
|
|
|
|
GList * headers);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2016-04-01 10:25:14 +00:00
|
|
|
void gst_audio_encoder_set_allocation_caps (GstAudioEncoder * enc,
|
|
|
|
GstCaps * allocation_caps);
|
|
|
|
|
2011-09-05 14:01:09 +00:00
|
|
|
/* object properties */
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
void gst_audio_encoder_set_mark_granule (GstAudioEncoder * enc,
|
|
|
|
gboolean enabled);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
gboolean gst_audio_encoder_get_mark_granule (GstAudioEncoder * enc);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
void gst_audio_encoder_set_perfect_timestamp (GstAudioEncoder * enc,
|
|
|
|
gboolean enabled);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
gboolean gst_audio_encoder_get_perfect_timestamp (GstAudioEncoder * enc);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
void gst_audio_encoder_set_hard_resync (GstAudioEncoder * enc,
|
|
|
|
gboolean enabled);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
gboolean gst_audio_encoder_get_hard_resync (GstAudioEncoder * enc);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-05 14:01:09 +00:00
|
|
|
void gst_audio_encoder_set_tolerance (GstAudioEncoder * enc,
|
2012-09-10 09:20:34 +00:00
|
|
|
GstClockTime tolerance);
|
2011-09-05 14:01:09 +00:00
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-09-10 09:20:34 +00:00
|
|
|
GstClockTime gst_audio_encoder_get_tolerance (GstAudioEncoder * enc);
|
2011-09-05 14:01:09 +00:00
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-02-16 11:18:03 +00:00
|
|
|
void gst_audio_encoder_set_hard_min (GstAudioEncoder * enc,
|
|
|
|
gboolean enabled);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-02-16 11:18:03 +00:00
|
|
|
gboolean gst_audio_encoder_get_hard_min (GstAudioEncoder * enc);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-02-16 11:18:03 +00:00
|
|
|
void gst_audio_encoder_set_drainable (GstAudioEncoder * enc,
|
|
|
|
gboolean enabled);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-02-16 11:18:03 +00:00
|
|
|
gboolean gst_audio_encoder_get_drainable (GstAudioEncoder * enc);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2012-08-07 15:21:53 +00:00
|
|
|
void gst_audio_encoder_get_allocator (GstAudioEncoder * enc,
|
|
|
|
GstAllocator ** allocator,
|
|
|
|
GstAllocationParams * params);
|
|
|
|
|
2018-03-13 10:36:56 +00:00
|
|
|
GST_AUDIO_API
|
2011-09-26 13:14:41 +00:00
|
|
|
void gst_audio_encoder_merge_tags (GstAudioEncoder * enc,
|
|
|
|
const GstTagList * tags, GstTagMergeMode mode);
|
|
|
|
|
2015-11-10 17:54:23 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioEncoder, gst_object_unref)
|
|
|
|
|
2011-09-05 14:01:09 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_AUDIO_ENCODER_H__ */
|