avdeinterlace: fix element leak
[platform/upstream/gstreamer.git] / subprojects / gst-libav / ext / libav / gstav.h
1 /* GStreamer
2  * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
3  *
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.
8  *
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.
13  *
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.
18  */
19
20 /* First, include the header file for the plugin, to bring in the
21  * object definition and other useful things.
22  */
23
24 #ifndef __GST_FFMPEG_H__
25 #define __GST_FFMPEG_H__
26
27 #include <libavcodec/avcodec.h>
28 #include <libavformat/avformat.h>
29
30 #include <gst/gst.h>
31 #include <gst/audio/audio.h>
32 #include <gst/video/video.h>
33
34 GST_DEBUG_CATEGORY_EXTERN (ffmpeg_debug);
35 #define GST_CAT_DEFAULT ffmpeg_debug
36
37 G_BEGIN_DECLS
38
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);
46
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);
50
51 G_END_DECLS
52
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
56
57 #endif /* __GST_FFMPEG_H__ */