videohorflip.h 980 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef VIDEOHORFLIP_H
  2. #define VIDEOHORFLIP_H
  3. #pragma once
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. #ifdef LIBVIDEOHORFLIP_EXPORTS
  8. #define VIDEOHORFLIP_API(type) _declspec(dllexport) type __stdcall
  9. #else
  10. #define VIDEOHORFLIP_API(type) _declspec(dllimport) type __stdcall
  11. #endif
  12. VIDEOHORFLIP_API(void*) videohorflip_create_filter();
  13. // format : 2 for RGB24, 1 for I420
  14. VIDEOHORFLIP_API(int) videohorflip_transform(unsigned char *data[], int linesize[], int cxImage, int cyImage, int format);
  15. VIDEOHORFLIP_API(void) videohorflip_fast_copy(void *dst, const void *src, int size);
  16. VIDEOHORFLIP_API(void*) videohorflip_create_grabber_render(void (*on_sample)(void *user_data, void *data), void *user_data);
  17. // for RGB24 currently
  18. // rotate: 1 for 90 degree, -1 for -90 degree
  19. VIDEOHORFLIP_API(int) videohorflip_rotate(const unsigned char *src_data, int width, int height, unsigned char *dst_data, int rotation);
  20. #ifdef __cplusplus
  21. } // extern "C" {
  22. #endif
  23. #endif // VIDEOHORFLIP_H