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