2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 /* First, include the header file for the plugin, to bring in the
21 * object definition and other useful things.
24 #ifndef __GST_FFMPEG_H__
25 #define __GST_FFMPEG_H__
27 #include <libavcodec/avcodec.h>
28 #include <libavformat/avformat.h>
31 #include <gst/audio/audio.h>
32 #include <gst/video/video.h>
34 GST_DEBUG_CATEGORY_EXTERN (ffmpeg_debug);
35 #define GST_CAT_DEFAULT ffmpeg_debug
39 extern gboolean gst_ffmpegdemux_register (GstPlugin * plugin);
40 extern gboolean gst_ffmpegauddec_register (GstPlugin * plugin);
41 extern gboolean gst_ffmpegviddec_register (GstPlugin * plugin);
42 extern gboolean gst_ffmpegaudenc_register (GstPlugin * plugin);
43 extern gboolean gst_ffmpegvidenc_register (GstPlugin * plugin);
44 extern gboolean gst_ffmpegmux_register (GstPlugin * plugin);
45 extern gboolean gst_ffmpegdeinterlace_register (GstPlugin * plugin);
47 int gst_ffmpeg_avcodec_open (AVCodecContext *avctx, const AVCodec *codec);
48 int gst_ffmpeg_avcodec_close (AVCodecContext *avctx);
49 int gst_ffmpeg_av_find_stream_info(AVFormatContext *ic);
53 /* use GST_FFMPEG URL_STREAMHEADER with URL_WRONLY if the first
54 * buffer should be used as streamheader property on the pad's caps. */
55 #define GST_FFMPEG_URL_STREAMHEADER 16
57 #endif /* __GST_FFMPEG_H__ */