]> git.sesse.net Git - ffmpeg/blob - libavformat/framehook.h
Add official LGPL license headers to the files that were missing them.
[ffmpeg] / libavformat / framehook.h
1 /*
2  * video processing hooks
3  * copyright (c) 2000, 2001 Fabrice Bellard
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19
20 #ifndef _FRAMEHOOK_H
21 #define _FRAMEHOOK_H
22
23 /*
24  * Prototypes for interface to .so that implement a video processing hook
25  */
26
27 #include "avcodec.h"
28
29 /* Function must be called 'Configure' */
30 typedef int (FrameHookConfigure)(void **ctxp, int argc, char *argv[]);
31 typedef FrameHookConfigure *FrameHookConfigureFn;
32 extern FrameHookConfigure Configure;
33
34 /* Function must be called 'Process' */
35 typedef void (FrameHookProcess)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, int64_t pts);
36 typedef FrameHookProcess *FrameHookProcessFn;
37 extern FrameHookProcess Process;
38
39 /* Function must be called 'Release' */
40 typedef void (FrameHookRelease)(void *ctx);
41 typedef FrameHookRelease *FrameHookReleaseFn;
42 extern FrameHookRelease Release;
43
44 extern int frame_hook_add(int argc, char *argv[]);
45 extern void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height);
46 extern void frame_hook_release(void);
47
48 #endif