annotate framehook.h @ 1306:8bf9be9bb107 libavformat

Add official LGPL license headers to the files that were missing them.
author diego
date Sun, 10 Sep 2006 14:02:42 +0000
parents da1d5db0ce5c
children 0899bfe4105c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1306
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
1 /*
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
2 * video processing hooks
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
3 * copyright (c) 2000, 2001 Fabrice Bellard
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
4 *
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
5 * This library is free software; you can redistribute it and/or
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
6 * modify it under the terms of the GNU Lesser General Public
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
7 * License as published by the Free Software Foundation; either
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
8 * version 2 of the License, or (at your option) any later version.
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
9 *
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
10 * This library is distributed in the hope that it will be useful,
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
13 * Lesser General Public License for more details.
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
14 *
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
15 * You should have received a copy of the GNU Lesser General Public
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
16 * License along with this library; if not, write to the Free Software
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
18 */
8bf9be9bb107 Add official LGPL license headers to the files that were missing them.
diego
parents: 885
diff changeset
19
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
20 #ifndef _FRAMEHOOK_H
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
21 #define _FRAMEHOOK_H
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
22
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
23 /*
885
da1d5db0ce5c COSMETICS: Remove all trailing whitespace.
diego
parents: 396
diff changeset
24 * Prototypes for interface to .so that implement a video processing hook
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
25 */
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
26
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
27 #include "avcodec.h"
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
28
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
29 /* Function must be called 'Configure' */
4
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
30 typedef int (FrameHookConfigure)(void **ctxp, int argc, char *argv[]);
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
31 typedef FrameHookConfigure *FrameHookConfigureFn;
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
32 extern FrameHookConfigure Configure;
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
33
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
34 /* Function must be called 'Process' */
65
a58a8a53eb46 * UINTX -> uintx_t INTX -> intx_t
kabi
parents: 4
diff changeset
35 typedef void (FrameHookProcess)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, int64_t pts);
4
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
36 typedef FrameHookProcess *FrameHookProcessFn;
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
37 extern FrameHookProcess Process;
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
38
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
39 /* Function must be called 'Release' */
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
40 typedef void (FrameHookRelease)(void *ctx);
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
41 typedef FrameHookRelease *FrameHookReleaseFn;
dcc03a32d1bb Added support for a realease function to eliminate the context blocks used
philipjsg
parents: 0
diff changeset
42 extern FrameHookRelease Release;
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
43
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
44 extern int frame_hook_add(int argc, char *argv[]);
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
45 extern void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height);
396
96f8086bc2ba warning patrol
mellum
parents: 65
diff changeset
46 extern void frame_hook_release(void);
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
47
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
48 #endif