libavformat/framehook.h
04d7f601
 /*
  * video processing hooks
  * copyright (c) 2000, 2001 Fabrice Bellard
  *
b78e7197
  * This file is part of FFmpeg.
  *
  * FFmpeg is free software; you can redistribute it and/or
04d7f601
  * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
b78e7197
  * version 2.1 of the License, or (at your option) any later version.
04d7f601
  *
b78e7197
  * FFmpeg is distributed in the hope that it will be useful,
04d7f601
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
b78e7197
  * License along with FFmpeg; if not, write to the Free Software
04d7f601
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
98790382
 #ifndef AVFORMAT_FRAMEHOOK_H
 #define AVFORMAT_FRAMEHOOK_H
3b2cbbed
 
f7f8b4d2
 #warning VHOOK is deprecated. Please help finishing libavfilter instead of wasting your time writing new filters for this crappy filter system.
61f676e1
 
3b2cbbed
 /*
115329f1
  * Prototypes for interface to .so that implement a video processing hook
3b2cbbed
  */
 
245976da
 #include "libavcodec/avcodec.h"
3b2cbbed
 
 /* Function must be called 'Configure' */
042f2465
 typedef int (FrameHookConfigure)(void **ctxp, int argc, char *argv[]);
 typedef FrameHookConfigure *FrameHookConfigureFn;
 extern FrameHookConfigure Configure;
3b2cbbed
 
 /* Function must be called 'Process' */
0c1a9eda
 typedef void (FrameHookProcess)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, int64_t pts);
042f2465
 typedef FrameHookProcess *FrameHookProcessFn;
 extern FrameHookProcess Process;
 
 /* Function must be called 'Release' */
 typedef void (FrameHookRelease)(void *ctx);
 typedef FrameHookRelease *FrameHookReleaseFn;
 extern FrameHookRelease Release;
3b2cbbed
 
9686df2b
 int frame_hook_add(int argc, char *argv[]);
 void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, int64_t pts);
 void frame_hook_release(void);
3b2cbbed
 
98790382
 #endif /* AVFORMAT_FRAMEHOOK_H */