2004-12-18 20:59:37 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* First, include the header file for the plugin, to bring in the
|
|
|
|
* object definition and other useful things.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_FFMPEG_H__
|
2005-09-13 12:16:32 +00:00
|
|
|
#define __GST_FFMPEG_H__
|
2004-12-18 20:59:37 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_FFMPEG_UNINSTALLED
|
|
|
|
#include <avcodec.h>
|
|
|
|
#include <avformat.h>
|
|
|
|
#else
|
2008-10-30 12:05:45 +00:00
|
|
|
#include <libavcodec/avcodec.h>
|
|
|
|
#include <libavformat/avformat.h>
|
2004-12-18 20:59:37 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
|
|
|
|
GST_DEBUG_CATEGORY_EXTERN (ffmpeg_debug);
|
|
|
|
#define GST_CAT_DEFAULT ffmpeg_debug
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2005-09-13 12:16:32 +00:00
|
|
|
#ifndef GST_DISABLE_GST_DEBUG
|
|
|
|
extern gboolean _shut_up_I_am_probing;
|
|
|
|
#endif
|
|
|
|
|
2004-12-18 20:59:37 +00:00
|
|
|
extern gboolean gst_ffmpegdemux_register (GstPlugin * plugin);
|
|
|
|
extern gboolean gst_ffmpegdec_register (GstPlugin * plugin);
|
|
|
|
extern gboolean gst_ffmpegenc_register (GstPlugin * plugin);
|
|
|
|
extern gboolean gst_ffmpegmux_register (GstPlugin * plugin);
|
|
|
|
extern gboolean gst_ffmpegcsp_register (GstPlugin * plugin);
|
2007-12-17 12:43:06 +00:00
|
|
|
#if 0
|
ext/: Update to ffmpeg snapshot of Jul 20 2005 4:00 PM GMT. Mostly some added codecs, some API changes, etc. Also add...
Original commit message from CVS:
* ext/ffmpeg/gstffmpeg.h:
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps),
(gst_ffmpeg_caps_to_pixfmt), (gst_ffmpeg_formatid_get_codecids),
(gst_ffmpeg_caps_to_codecid), (gst_ffmpeg_get_codecid_longname),
(gst_ffmpeg_img_convert):
* ext/ffmpeg/gstffmpegcodecmap.h:
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_negotiate),
(gst_ffmpegdec_frame), (gst_ffmpegdec_chain),
(gst_ffmpegdec_register):
* ext/ffmpeg/gstffmpegdeinterlace.c:
(gst_ffmpegdeinterlace_getcaps), (gst_ffmpegdeinterlace_pad_link):
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_src_event),
(gst_ffmpegdemux_src_format_list), (gst_ffmpegdemux_src_query),
(gst_ffmpegdemux_src_convert), (gst_ffmpegdemux_add),
(gst_ffmpegdemux_register):
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_getcaps),
(gst_ffmpegenc_link), (gst_ffmpegenc_chain_video),
(gst_ffmpegenc_chain_audio):
* ext/ffmpeg/gstffmpegmux.c: (gst_ffmpegmux_request_new_pad),
(gst_ffmpegmux_connect), (gst_ffmpegmux_loop),
(gst_ffmpegmux_register):
* ext/ffmpeg/gstffmpegprotocol.c: (gst_ffmpegdata_write):
* ext/ffmpeg/gstffmpegscale.c: (gst_ffmpegscale_pad_link):
* ext/libpostproc/gstpostproc.c: (gst_postproc_chain):
Update to ffmpeg snapshot of Jul 20 2005 4:00 PM GMT. Mostly
some added codecs, some API changes, etc. Also adds a VOB muxer
for MPEG-2 video and adds h264 to .mp4 muxing.
2005-07-20 15:40:57 +00:00
|
|
|
extern gboolean gst_ffmpegscale_register (GstPlugin * plugin);
|
2007-12-17 12:43:06 +00:00
|
|
|
#endif
|
|
|
|
extern gboolean gst_ffmpegaudioresample_register (GstPlugin * plugin);
|
ext/: Update to ffmpeg snapshot of Jul 20 2005 4:00 PM GMT. Mostly some added codecs, some API changes, etc. Also add...
Original commit message from CVS:
* ext/ffmpeg/gstffmpeg.h:
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps),
(gst_ffmpeg_caps_to_pixfmt), (gst_ffmpeg_formatid_get_codecids),
(gst_ffmpeg_caps_to_codecid), (gst_ffmpeg_get_codecid_longname),
(gst_ffmpeg_img_convert):
* ext/ffmpeg/gstffmpegcodecmap.h:
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_negotiate),
(gst_ffmpegdec_frame), (gst_ffmpegdec_chain),
(gst_ffmpegdec_register):
* ext/ffmpeg/gstffmpegdeinterlace.c:
(gst_ffmpegdeinterlace_getcaps), (gst_ffmpegdeinterlace_pad_link):
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_src_event),
(gst_ffmpegdemux_src_format_list), (gst_ffmpegdemux_src_query),
(gst_ffmpegdemux_src_convert), (gst_ffmpegdemux_add),
(gst_ffmpegdemux_register):
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_getcaps),
(gst_ffmpegenc_link), (gst_ffmpegenc_chain_video),
(gst_ffmpegenc_chain_audio):
* ext/ffmpeg/gstffmpegmux.c: (gst_ffmpegmux_request_new_pad),
(gst_ffmpegmux_connect), (gst_ffmpegmux_loop),
(gst_ffmpegmux_register):
* ext/ffmpeg/gstffmpegprotocol.c: (gst_ffmpegdata_write):
* ext/ffmpeg/gstffmpegscale.c: (gst_ffmpegscale_pad_link):
* ext/libpostproc/gstpostproc.c: (gst_postproc_chain):
Update to ffmpeg snapshot of Jul 20 2005 4:00 PM GMT. Mostly
some added codecs, some API changes, etc. Also adds a VOB muxer
for MPEG-2 video and adds h264 to .mp4 muxing.
2005-07-20 15:40:57 +00:00
|
|
|
extern gboolean gst_ffmpegdeinterlace_register (GstPlugin * plugin);
|
2004-12-18 20:59:37 +00:00
|
|
|
|
2005-12-16 16:23:05 +00:00
|
|
|
int gst_ffmpeg_avcodec_open (AVCodecContext *avctx, AVCodec *codec);
|
|
|
|
int gst_ffmpeg_avcodec_close (AVCodecContext *avctx);
|
2007-05-09 15:30:51 +00:00
|
|
|
int gst_ffmpeg_av_find_stream_info(AVFormatContext *ic);
|
2005-12-16 16:23:05 +00:00
|
|
|
|
2004-12-18 20:59:37 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
extern URLProtocol gstreamer_protocol;
|
|
|
|
|
2005-09-13 12:16:32 +00:00
|
|
|
/* use GST_FFMPEG URL_STREAMHEADER with URL_WRONLY if the first
|
2005-07-11 12:34:18 +00:00
|
|
|
* buffer should be used as streamheader property on the pad's caps. */
|
|
|
|
#define GST_FFMPEG_URL_STREAMHEADER 16
|
|
|
|
|
2004-12-18 20:59:37 +00:00
|
|
|
#endif /* __GST_FFMPEG_H__ */
|