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.

49 lines
1.7KB

  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. #ifndef _FRAMEHOOK_H
  20. #define _FRAMEHOOK_H
  21. /*
  22. * Prototypes for interface to .so that implement a video processing hook
  23. */
  24. #include "avcodec.h"
  25. /* Function must be called 'Configure' */
  26. typedef int (FrameHookConfigure)(void **ctxp, int argc, char *argv[]);
  27. typedef FrameHookConfigure *FrameHookConfigureFn;
  28. extern FrameHookConfigure Configure;
  29. /* Function must be called 'Process' */
  30. typedef void (FrameHookProcess)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, int64_t pts);
  31. typedef FrameHookProcess *FrameHookProcessFn;
  32. extern FrameHookProcess Process;
  33. /* Function must be called 'Release' */
  34. typedef void (FrameHookRelease)(void *ctx);
  35. typedef FrameHookRelease *FrameHookReleaseFn;
  36. extern FrameHookRelease Release;
  37. extern int frame_hook_add(int argc, char *argv[]);
  38. extern void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height);
  39. extern void frame_hook_release(void);
  40. #endif