You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
601B

  1. #ifndef _FRAMEHOOK_H
  2. #define _FRAMEHOOK_H
  3. /*
  4. * Prototypes for interface to .so that implement a video processing hook
  5. */
  6. #include "avcodec.h"
  7. /* Function must be called 'Configure' */
  8. typedef int (*FrameHookConfigureFn)(void **ctxp, int argc, char *argv[]);
  9. /* Function must be called 'Process' */
  10. typedef void (*FrameHookProcessFn)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, INT64 pts);
  11. extern int frame_hook_add(int argc, char *argv[]);
  12. extern void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height);
  13. #endif