expand tabs

Original commit message from CVS:
expand tabs
parent f2085bd7
2005-12-06 Thomas Vander Stichele <thomas at apestaart dot org>
* ext/aalib/gstaasink.h:
* ext/cairo/gsttextoverlay.h:
* ext/dv/gstdvdec.h:
* ext/dv/gstdvdemux.c:
* ext/dv/gstdvdemux.h:
* ext/esd/esdsink.h:
* ext/flac/flac_compat.h:
* ext/flac/gstflacdec.h:
* ext/flac/gstflacenc.h:
* ext/gconf/gconf.h:
* ext/gconf/gstgconfaudiosink.h:
* ext/gconf/gstgconfvideosink.h:
* ext/gdk_pixbuf/gstgdkanimation.h:
* ext/jpeg/gstjpegdec.h:
* ext/jpeg/smokecodec.h:
* ext/jpeg/smokeformat.h:
* ext/ladspa/gstsignalprocessor.h:
* ext/ladspa/search.c: (LADSPAPluginSearch):
* ext/ladspa/utils.h:
* ext/libmng/gstmng.c:
* ext/libmng/gstmngdec.h:
* ext/libmng/gstmngenc.c:
* ext/libmng/gstmngenc.h:
* ext/libpng/gstpng.c:
* ext/libpng/gstpngenc.c:
* ext/libpng/gstpngenc.h:
* ext/shout2/gstshout2.h:
* ext/speex/gstspeexdec.h:
* ext/speex/gstspeexenc.c:
* ext/speex/gstspeexenc.h:
* gst/auparse/gstauparse.c: (gst_auparse_chain):
* gst/autodetect/gstautoaudiosink.h:
* gst/autodetect/gstautovideosink.h:
* gst/avi/gstavidemux.h:
* gst/cutter/gstcutter.c: (gst_cutter_chain),
(gst_cutter_set_property), (gst_cutter_get_caps):
* gst/cutter/gstcutter.h:
* gst/debug/tests.c: (md5_process_block):
* gst/debug/tests.h:
* gst/effectv/gstwarp.c:
* gst/flx/flx_fmt.h:
* gst/flx/gstflxdec.h:
* gst/goom/filters.c: (setPixelRGB), (getPixelRGB), (getPixelRGB_),
(zoomFilterFastRGB):
* gst/goom/filters.h:
* gst/goom/goom_tools.h:
* gst/law/alaw-encode.c:
* gst/level/gstlevel.c:
* gst/level/gstlevel.h:
* gst/matroska/ebml-write.h:
* gst/matroska/matroska-demux.h:
* gst/matroska/matroska-ids.h:
* gst/matroska/matroska-mux.h:
* gst/monoscope/convolve.c: (convolve_match):
* gst/monoscope/convolve.h:
* gst/multipart/multipartmux.c:
* gst/oldcore/gstaggregator.c:
* gst/oldcore/gstaggregator.h:
* gst/oldcore/gstmd5sink.c: (md5_process_block):
* gst/oldcore/gstmd5sink.h:
* gst/oldcore/gstmultifilesrc.c:
* gst/oldcore/gstmultifilesrc.h:
* gst/oldcore/gstpipefilter.h:
* gst/oldcore/gstshaper.h:
* gst/rtp/gstrtpL16depay.h:
* gst/rtp/gstrtpL16pay.h:
* gst/rtp/gstrtpdepay.h:
* gst/rtp/gstrtpmp4vpay.c:
* gst/rtp/gstrtpmp4vpay.h:
* gst/rtsp/gstrtspsrc.c:
* gst/rtsp/gstrtspsrc.h:
* gst/rtsp/rtspconnection.h:
* gst/rtsp/rtspdefs.h:
* gst/rtsp/rtspmessage.h:
* gst/rtsp/rtsptransport.h:
* gst/rtsp/rtspurl.c:
* gst/rtsp/rtspurl.h:
* gst/rtsp/sdpmessage.c:
* gst/rtsp/sdpmessage.h:
* gst/smpte/barboxwipes.c:
* gst/smpte/gstmask.h:
* gst/smpte/gstsmpte.h:
* gst/smpte/paint.c:
* gst/smpte/paint.h:
* gst/udp/gstdynudpsink.h:
* gst/udp/gstmultiudpsink.h:
* gst/udp/gstudpsink.c:
* gst/udp/gstudpsink.h:
* gst/udp/gstudpsrc.c:
* gst/videomixer/videomixer.c:
* gst/wavenc/riff.h:
* gst/wavparse/gstwavparse.h:
* sys/oss/gstossdmabuffer.h:
* sys/oss/gstossmixer.h:
* sys/oss/gstossmixerelement.h:
* sys/oss/gstossmixertrack.h:
* sys/oss/gstosssink.c:
* sys/oss/gstosssink.h:
* sys/oss/gstosssrc.c:
* sys/oss/gstosssrc.h:
* sys/osxaudio/gstosxaudioelement.h:
* sys/osxaudio/gstosxaudiosink.h:
* sys/osxaudio/gstosxaudiosrc.h:
expand tabs
=== release 0.10.0 ===
2005-12-05 <thomas (at) apestaart (dot) org>
......
......@@ -66,7 +66,7 @@ struct _GstAASinkClass {
/* signals */
void (*frame_displayed) (GstElement *element);
void (*have_size) (GstElement *element, guint width, guint height);
void (*have_size) (GstElement *element, guint width, guint height);
};
GType gst_aasink_get_type(void);
......
......@@ -60,8 +60,8 @@ struct _GstCairoTextOverlay {
gint ypad;
gint deltax;
gint deltay;
gchar *default_text;
gboolean want_shading;
gchar *default_text;
gboolean want_shading;
guchar *text_fill_image;
guchar *text_outline_image;
......@@ -69,7 +69,7 @@ struct _GstCairoTextOverlay {
gint text_x0, text_x1; /* start/end x position of text */
gint text_dy;
gboolean need_render;
gboolean need_render;
gchar *font;
gint slant;
......
......@@ -46,29 +46,29 @@ typedef struct _GstDVDecClass GstDVDecClass;
struct _GstDVDec {
GstElement element;
GstElement element;
GstPad *sinkpad;
GstPad *sinkpad;
GstPad *srcpad;
dv_decoder_t *decoder;
gboolean clamp_luma;
gboolean clamp_chroma;
gint quality;
dv_decoder_t *decoder;
gboolean clamp_luma;
gboolean clamp_chroma;
gint quality;
gint frame_len;
gint frame_len;
gboolean PAL;
gint framerate_numerator;
gint framerate_denominator;
gint height;
gboolean wide;
gint height;
gboolean wide;
/* negotiated output */
dv_color_space_t space;
gint bpp;
gint bpp;
gint video_offset;
gint drop_factor;
gint video_offset;
gint drop_factor;
gboolean headers_seen;
};
......
......@@ -74,15 +74,15 @@
#define PAL_FRAMERATE_NUMERATOR 25
#define PAL_FRAMERATE_DENOMINATOR 1
#define PAL_NORMAL_PAR_X 59
#define PAL_NORMAL_PAR_Y 54
#define PAL_WIDE_PAR_X 118
#define PAL_WIDE_PAR_Y 81
#define NTSC_NORMAL_PAR_X 10
#define NTSC_NORMAL_PAR_Y 11
#define NTSC_WIDE_PAR_X 40
#define NTSC_WIDE_PAR_Y 33
#define PAL_NORMAL_PAR_X 59
#define PAL_NORMAL_PAR_Y 54
#define PAL_WIDE_PAR_X 118
#define PAL_WIDE_PAR_Y 81
#define NTSC_NORMAL_PAR_X 10
#define NTSC_NORMAL_PAR_Y 11
#define NTSC_WIDE_PAR_X 40
#define NTSC_WIDE_PAR_Y 33
static GstElementDetails dvdemux_details =
GST_ELEMENT_DETAILS ("DV system stream demuxer",
......
......@@ -47,47 +47,47 @@ typedef struct _GstDVDemuxClass GstDVDemuxClass;
struct _GstDVDemux {
GstElement element;
GstElement element;
GstPad *sinkpad;
GstPad *sinkpad;
GstPad *videosrcpad;
GstPad *audiosrcpad;
dv_decoder_t *decoder;
dv_decoder_t *decoder;
GstAdapter *adapter;
gint frame_len;
gint frame_len;
/* PAL or NTSC flag */
gboolean PAL;
/* video params */
gint framerate_numerator;
gint framerate_denominator;
gint height;
gboolean wide;
gint height;
gboolean wide;
/* audio params */
gint frequency;
gint channels;
gint frequency;
gint channels;
gint framecount;
gint framecount;
guint64 timestamp;
guint64 duration;
guint64 timestamp;
guint64 duration;
gint64 total_frames;
guint64 audio_offset;
guint64 video_offset;
guint64 audio_offset;
guint64 video_offset;
gint64 start_byte;
gint64 stop_byte;
gint64 start_timestamp;
gint64 stop_timestamp;
gint64 start_byte;
gint64 stop_byte;
gint64 start_timestamp;
gint64 stop_timestamp;
gboolean need_discont;
gboolean new_media;
gboolean need_discont;
gboolean new_media;
gboolean found_header;
gint16 *audio_buffers[4];
gint16 *audio_buffers[4];
};
struct _GstDVDemuxClass {
......
......@@ -43,11 +43,11 @@ typedef struct _GstEsdSink GstEsdSink;
typedef struct _GstEsdSinkClass GstEsdSinkClass;
struct _GstEsdSink {
GstAudioSink sink;
GstAudioSink sink;
int fd;
int fd;
int ctrl_fd;
gchar *host;
gchar *host;
};
struct _GstEsdSinkClass {
......
......@@ -32,21 +32,21 @@
#if FLAC_VERSION < 0x010004
#define FLAC__STREAM_ENCODER_OK FLAC__STREAM_ENCODER_WRITE_OK
#define FLAC__seekable_stream_decoder_process_single(a) \
FLAC__seekable_stream_decoder_process_one_frame(a)
FLAC__seekable_stream_decoder_process_one_frame(a)
#endif /* FLAC_VERSION < 0x010004 */
#if FLAC_VERSION < 0x010003
#define FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC \
FLAC__STREAM_DECODER_ERROR_LOST_SYNC
FLAC__STREAM_DECODER_ERROR_LOST_SYNC
#define FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER \
FLAC__STREAM_DECODER_ERROR_BAD_HEADER
FLAC__STREAM_DECODER_ERROR_BAD_HEADER
#define FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH \
FLAC__STREAM_DECODER_ERROR_FRAME_CRC_MISMATCH
FLAC__STREAM_DECODER_ERROR_FRAME_CRC_MISMATCH
#define FLAC__STREAM_DECODER_WRITE_STATUS_ABORT \
FLAC__STREAM_DECODER_WRITE_ABORT
FLAC__STREAM_DECODER_WRITE_ABORT
#define FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE \
FLAC__STREAM_DECODER_WRITE_CONTINUE
FLAC__STREAM_DECODER_WRITE_CONTINUE
#define FLAC__StreamMetadata FLAC__StreamMetaData
......
......@@ -41,26 +41,26 @@ typedef struct _FlacDec FlacDec;
typedef struct _FlacDecClass FlacDecClass;
struct _FlacDec {
GstElement element;
GstElement element;
GstPad *sinkpad,*srcpad;
guint64 offset;
GstPad *sinkpad,*srcpad;
guint64 offset;
FLAC__SeekableStreamDecoder *decoder;
gint channels;
gint depth;
gint channels;
gint depth;
gint width;
gint frequency;
gint frequency;
gboolean need_discont;
gboolean seek_pending;
gint64 seek_value;
gboolean need_discont;
gboolean seek_pending;
gint64 seek_value;
gboolean init;
guint64 total_samples;
guint64 stream_samples;
gboolean init;
guint64 total_samples;
guint64 stream_samples;
gboolean eos;
gboolean eos;
};
struct _FlacDecClass {
......
......@@ -40,27 +40,27 @@ typedef struct _GstFlacEnc GstFlacEnc;
typedef struct _GstFlacEncClass GstFlacEncClass;
struct _GstFlacEnc {
GstElement element;
GstElement element;
GstPad *sinkpad,*srcpad;
gboolean first;
GstBuffer *first_buf;
guint64 offset;
guint64 samples_written;
gboolean eos;
gint channels;
gint depth;
gint sample_rate;
gboolean negotiated;
gint quality;
gboolean stopped;
FLAC__int32 *data;
gboolean first;
GstBuffer *first_buf;
guint64 offset;
guint64 samples_written;
gboolean eos;
gint channels;
gint depth;
gint sample_rate;
gboolean negotiated;
gint quality;
gboolean stopped;
FLAC__int32 *data;
FLAC__SeekableStreamEncoder *encoder;
FLAC__StreamMetadata **meta;
GstTagList * tags;
GstTagList * tags;
};
struct _GstFlacEncClass {
......
......@@ -29,18 +29,18 @@
G_BEGIN_DECLS
gchar * gst_gconf_get_string (const gchar *key);
void gst_gconf_set_string (const gchar *key,
gchar * gst_gconf_get_string (const gchar *key);
void gst_gconf_set_string (const gchar *key,
const gchar *value);
GstElement * gst_gconf_render_bin_from_key (const gchar *key);
GstElement * gst_gconf_render_bin_from_description (const gchar *description);
GstElement * gst_gconf_render_bin_from_key (const gchar *key);
GstElement * gst_gconf_render_bin_from_description (const gchar *description);
GstElement * gst_gconf_get_default_video_sink (void);
GstElement * gst_gconf_get_default_audio_sink (void);
GstElement * gst_gconf_get_default_video_src (void);
GstElement * gst_gconf_get_default_audio_src (void);
GstElement * gst_gconf_get_default_visualization_element (void);
GstElement * gst_gconf_get_default_video_sink (void);
GstElement * gst_gconf_get_default_audio_sink (void);
GstElement * gst_gconf_get_default_video_src (void);
GstElement * gst_gconf_get_default_audio_src (void);
GstElement * gst_gconf_get_default_visualization_element (void);
G_END_DECLS
......
......@@ -29,10 +29,10 @@ G_BEGIN_DECLS
(gst_gconf_audio_sink_get_type ())
#define GST_GCONF_AUDIO_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_GCONF_AUDIO_SINK, \
GstGConfAudioSink))
GstGConfAudioSink))
#define GST_GCONF_AUDIO_SINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_GCONF_AUDIO_SINK, \
GstGConfAudioSink))
GstGConfAudioSink))
#define GST_IS_GCONF_AUDIO_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_GCONF_AUDIO_SINK))
#define GST_IS_GCONF_AUDIO_SINK_CLASS(obj) \
......@@ -51,7 +51,7 @@ typedef struct _GstGConfAudioSinkClass {
GstBinClass parent_class;
} GstGConfAudioSinkClass;
GType gst_gconf_audio_sink_get_type (void);
GType gst_gconf_audio_sink_get_type (void);
G_END_DECLS
......
......@@ -29,10 +29,10 @@ G_BEGIN_DECLS
(gst_gconf_video_sink_get_type ())
#define GST_GCONF_VIDEO_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_GCONF_VIDEO_SINK, \
GstGConfVideoSink))
GstGConfVideoSink))
#define GST_GCONF_VIDEO_SINK_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_GCONF_VIDEO_SINK, \
GstGConfVideoSink))
GstGConfVideoSink))
#define GST_IS_GCONF_VIDEO_SINK(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_GCONF_VIDEO_SINK))
#define GST_IS_GCONF_VIDEO_SINK_CLASS(obj) \
......@@ -51,7 +51,7 @@ typedef struct _GstGConfVideoSinkClass {
GstBinClass parent_class;
} GstGConfVideoSinkClass;
GType gst_gconf_video_sink_get_type (void);
GType gst_gconf_video_sink_get_type (void);
G_END_DECLS
......
......@@ -34,11 +34,11 @@ G_BEGIN_DECLS
#define GST_GDK_MAX_DELAY_TO_SEEK (GST_SECOND / 4)
#define GST_TYPE_GDK_ANIMATION (gst_gdk_animation_get_type())
#define GST_GDK_ANIMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GDK_ANIMATION,GstGdkAnimation))
#define GST_GDK_ANIMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GDK_ANIMATION,GstGdkAnimation))
#define GST_IS_GDK_ANIMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GDK_ANIMATION))
#define GST_IS_GDK_ANIMATION_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GDK_ANIMATION))
#define GST_TYPE_GDK_ANIMATION (gst_gdk_animation_get_type())
#define GST_GDK_ANIMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GDK_ANIMATION,GstGdkAnimation))
#define GST_GDK_ANIMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GDK_ANIMATION,GstGdkAnimation))
#define GST_IS_GDK_ANIMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GDK_ANIMATION))
#define GST_IS_GDK_ANIMATION_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_GDK_ANIMATION))
typedef struct _GstGdkAnimation GstGdkAnimation;
typedef struct _GstGdkAnimationClass GstGdkAnimationClass;
......@@ -48,66 +48,66 @@ typedef struct _GstGdkAnimationIterClass GstGdkAnimationIterClass;
struct _GstGdkAnimation
{
GdkPixbufAnimation parent;
GdkPixbufAnimation parent;
/* name of temporary buffer file */
gchar * temp_location;
gchar * temp_location;
/* file descriptor to temporary file or 0 if we're done writing */
int temp_fd;
int temp_fd;
/* size of image */
gint width;
gint height;
gint bpp;
gint width;
gint height;
gint bpp;
/* static image we use */
GdkPixbuf * pixbuf;
GdkPixbuf * pixbuf;
};
struct _GstGdkAnimationClass
{
GdkPixbufAnimationClass parent_class;
GdkPixbufAnimationClass parent_class;
};
GType gst_gdk_animation_get_type (void);
GType gst_gdk_animation_get_type (void);
GstGdkAnimation * gst_gdk_animation_new (GError **error);
GstGdkAnimation * gst_gdk_animation_new (GError **error);
gboolean gst_gdk_animation_add_data (GstGdkAnimation * ani,
const guint8 * data,
guint size);
void gst_gdk_animation_done_adding (GstGdkAnimation * ani);
gboolean gst_gdk_animation_add_data (GstGdkAnimation * ani,
const guint8 * data,
guint size);
void gst_gdk_animation_done_adding (GstGdkAnimation * ani);
#define GST_TYPE_GDK_ANIMATION_ITER (gst_gdk_animation_iter_get_type ())
#define GST_GDK_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GST_TYPE_GDK_ANIMATION_ITER, GstGdkAnimationIter))
#define GST_IS_GDK_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GST_TYPE_GDK_ANIMATION_ITER))
#define GST_TYPE_GDK_ANIMATION_ITER (gst_gdk_animation_iter_get_type ())
#define GST_GDK_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GST_TYPE_GDK_ANIMATION_ITER, GstGdkAnimationIter))
#define GST_IS_GDK_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GST_TYPE_GDK_ANIMATION_ITER))
#define GST_GDK_ANIMATION_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_GDK_ANIMATION_ITER, GstGdkAnimationIterClass))
#define GST_IS_GDK_ANIMATION_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_GDK_ANIMATION_ITER))
#define GST_GDK_ANIMATION_ITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_GDK_ANIMATION_ITER, GstGdkAnimationIterClass))
#define GST_GDK_ANIMATION_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_GDK_ANIMATION_ITER, GstGdkAnimationIterClass))
#define GST_IS_GDK_ANIMATION_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_GDK_ANIMATION_ITER))
#define GST_GDK_ANIMATION_ITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_GDK_ANIMATION_ITER, GstGdkAnimationIterClass))
struct _GstGdkAnimationIter {
GdkPixbufAnimationIter parent;
GdkPixbufAnimationIter parent;
/* our animation */
GstGdkAnimation * ani;
GstGdkAnimation * ani;
/* start timeval */
GTimeVal start;
GTimeVal start;
/* timestamp of last buffer */
GstClockTime last_timestamp;
GstClockTime last_timestamp;
/* pipeline we're using */
GstElement * pipeline;
gboolean eos;
gboolean just_seeked;
GstElement * pipeline;
gboolean eos;
gboolean just_seeked;
/* current image and the buffers containing the data */
GdkPixbuf * pixbuf;
GQueue * buffers;
GdkPixbuf * pixbuf;
GQueue * buffers;
};
struct _GstGdkAnimationIterClass {
GdkPixbufAnimationIterClass parent_class;
GdkPixbufAnimationIterClass parent_class;
};
GType gst_gdk_animation_iter_get_type (void) G_GNUC_CONST;
......
......@@ -83,8 +83,8 @@ struct _GstJpegDec {
/* negotiated state */
gint caps_framerate_numerator;
gint caps_framerate_denominator;
gint caps_width;
gint caps_height;
gint caps_width;
gint caps_height;
struct jpeg_decompress_struct cinfo;
struct GstJpegDecErrorMgr jerr;
......
......@@ -30,84 +30,84 @@ extern "C" {
typedef struct _SmokeCodecInfo SmokeCodecInfo;
typedef enum {
SMOKECODEC_WRONGVERSION = -5,
SMOKECODEC_WRONGSIZE = -4,
SMOKECODEC_ERROR = -3,
SMOKECODEC_NOMEM = -2,
SMOKECODEC_NULLPTR = -1,
SMOKECODEC_OK = 0
SMOKECODEC_WRONGVERSION = -5,
SMOKECODEC_WRONGSIZE = -4,
SMOKECODEC_ERROR = -3,
SMOKECODEC_NOMEM = -2,
SMOKECODEC_NULLPTR = -1,
SMOKECODEC_OK = 0
} SmokeCodecResult;
typedef enum {
SMOKECODEC_KEYFRAME = (1<<0),
SMOKECODEC_MOTION_VECTORS = (1<<1)
SMOKECODEC_KEYFRAME = (1<<0),
SMOKECODEC_MOTION_VECTORS = (1<<1)
} SmokeCodecFlags;
#define SMOKECODEC_ID_STRING "smoke"
typedef enum {
SMOKECODEC_TYPE_ID = 0x80,
SMOKECODEC_TYPE_COMMENT = 0x81,
SMOKECODEC_TYPE_EXTRA = 0x83,
SMOKECODEC_TYPE_DATA = 0x40
SMOKECODEC_TYPE_ID = 0x80,
SMOKECODEC_TYPE_COMMENT = 0x81,
SMOKECODEC_TYPE_EXTRA = 0x83,
SMOKECODEC_TYPE_DATA = 0x40
} SmokePacketType;
/* init */
int smokecodec_encode_new (SmokeCodecInfo **info,
const unsigned int width,
const unsigned int height,
const unsigned int fps_num,
const unsigned int fps_denom);
int smokecodec_encode_new (SmokeCodecInfo **info,
const unsigned int width,
const unsigned int height,
const unsigned int fps_num,
const unsigned int fps_denom);
int smokecodec_decode_new (SmokeCodecInfo **info);
int smokecodec_decode_new (SmokeCodecInfo **info);
/* config */
SmokeCodecResult smokecodec_set_quality (SmokeCodecInfo *info,
const unsigned int min,
const unsigned int max);
SmokeCodecResult smokecodec_get_quality (SmokeCodecInfo *info,
unsigned int *min,
unsigned int *max);
SmokeCodecResult smokecodec_set_threshold (SmokeCodecInfo *info,
const unsigned int threshold);
SmokeCodecResult smokecodec_get_threshold (SmokeCodecInfo *info,
unsigned int *threshold);
SmokeCodecResult smokecodec_set_bitrate (SmokeCodecInfo *info,
const unsigned int bitrate);
SmokeCodecResult smokecodec_get_bitrate (SmokeCodecInfo *info,
unsigned int *bitrate);
SmokeCodecResult smokecodec_set_quality (SmokeCodecInfo *info,
const unsigned int min,
const unsigned int max);
SmokeCodecResult smokecodec_get_quality (SmokeCodecInfo *info,
unsigned int *min,
unsigned int *max);
SmokeCodecResult smokecodec_set_threshold (SmokeCodecInfo *info,
const unsigned int threshold);
SmokeCodecResult smokecodec_get_threshold (SmokeCodecInfo *info,
unsigned int *threshold);
SmokeCodecResult smokecodec_set_bitrate (SmokeCodecInfo *info,
const unsigned int bitrate);
SmokeCodecResult smokecodec_get_bitrate (SmokeCodecInfo *info,
unsigned int *bitrate);
/* encoding */
SmokeCodecResult smokecodec_encode_id (SmokeCodecInfo *info,
unsigned char *out,
unsigned int *outsize);
SmokeCodecResult smokecodec_encode_id (SmokeCodecInfo *info,
unsigned char *out,
unsigned int *outsize);
SmokeCodecResult smokecodec_encode (SmokeCodecInfo *info,
const unsigned char *in,
SmokeCodecFlags flags,
unsigned char *out,
unsigned int *outsize);
SmokeCodecResult smokecodec_encode (SmokeCodecInfo *info,
const unsigned char *in,
SmokeCodecFlags flags,
unsigned char *out,
unsigned int *outsize);