A place to keep aliases to built-in constants when needed
[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 #if defined HAVE_LIBAVFORMAT_AVFORMAT_H
28 # include <libavformat/avformat.h>
29 #elif defined HAVE_FFMPEG_AVFORMAT_H
30 # include <ffmpeg/avformat.h>
31 #elif defined HAVE_AVFORMAT_H
32 # include <avformat.h>
33 #endif
34
35 /* Newer ffmpeg do not declare this macro... */
36 #ifndef DECLARE_ALIGNED
37 #ifdef __ICC
38     #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
39 #elif defined(__GNUC__)
40     #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
41 #elif defined(HAVE_INLINE_ASM)
42     #error The asm code needs alignment, but we do not know how to do it for this compiler.
43 #else
44     #define DECLARE_ALIGNED(n,t,v)      t v
45 #endif
46 #endif
47
48 extern char *media_ffmpeg_streaminfo(Lisp_Media_Stream*);
49
50 extern Lisp_Object Qffmpeg;
51 extern Lisp_Object media_ffmpeg_available_formats(void);
52
53 DECLARE_MEDIA_DRIVER(media_ffmpeg);
54 DECLARE_MEDIA_DRIVER(new_media_ffmpeg);
55
56 #endif  /* INCLUDED_media_ffmpeg_h_ */