2 * video processing hooks
3 * copyright (c) 2000, 2001 Fabrice Bellard
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.
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.
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
24 * Prototypes for interface to .so that implement a video processing hook
29 /* Function must be called 'Configure' */
30 typedef int (FrameHookConfigure)(void **ctxp, int argc, char *argv[]);
31 typedef FrameHookConfigure *FrameHookConfigureFn;
32 extern FrameHookConfigure Configure;
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;
39 /* Function must be called 'Release' */
40 typedef void (FrameHookRelease)(void *ctx);
41 typedef FrameHookRelease *FrameHookReleaseFn;
42 extern FrameHookRelease Release;
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);