Make #'require's NOERROR arg do its job properly.
[sxemacs] / src / media / media-ffmpeg.h
1 /* media-ffmpeg.h - analyse all kinds of streams
2
3    Copyright (C) 2006 Sebastian Freundt
4
5 This file is part of SXEmacs
6
7 SXEmacs is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 SXEmacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
19
20
21 /* Synched up with: Not in FSF. */
22
23 #ifndef INCLUDED_media_ffmpeg_h_
24 #define INCLUDED_media_ffmpeg_h_
25
26 #include "media.h"
27
28 #if defined HAVE_LIBAVFORMAT_AVFORMAT_H
29 # include <libavformat/avformat.h>
30 #elif defined HAVE_FFMPEG_AVFORMAT_H
31 # include <ffmpeg/avformat.h>
32 #elif defined HAVE_AVFORMAT_H
33 # include <avformat.h>
34 #endif
35
36 #if defined HAVE_LIBAVCODEC_AVCODEC_H
37 # include <libavcodec/avcodec.h>
38 #elif defined HAVE_FFMPEG_AVCODEC_H
39 # include <ffmpeg/avcodec.h>
40 #elif defined HAVE_AVCODEC_H
41 # include <avcodec.h>
42 #endif
43
44 #if defined HAVE_LIBAVUTIL_DICT_H
45 # include <libavutil/dict.h>
46 #elif defined HAVE_FFMPEG_DICT_H
47 # include <ffmpeg/dict.h>
48 #endif
49
50 #if defined HAVE_LIBAVUTIL_TIME_H
51 # include <libavutil/time.h>
52 #elif defined HAVE_FFMPEG_TIME_H
53 # include <ffmpeg/time.h>
54 #endif
55
56 /* Newer ffmpeg do not declare this macro... */
57 #ifndef DECLARE_ALIGNED
58 #ifdef __ICC
59     #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
60 #elif defined(__GNUC__)
61     #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
62 #elif defined(HAVE_INLINE_ASM)
63     #error The asm code needs alignment, but we do not know how to do it for this compiler.
64 #else
65     #define DECLARE_ALIGNED(n,t,v)      t v
66 #endif
67 #endif
68
69 extern char *media_ffmpeg_streaminfo(Lisp_Media_Stream*);
70
71 extern Lisp_Object Qffmpeg;
72 extern Lisp_Object media_ffmpeg_available_formats(void);
73
74 DECLARE_MEDIA_DRIVER(media_ffmpeg);
75 DECLARE_MEDIA_DRIVER(new_media_ffmpeg);
76
77 #endif  /* INCLUDED_media_ffmpeg_h_ */