12345678910111213141516171819202122232425262728293031 |
- #ifndef VIDEOHORFLIP_H
- #define VIDEOHORFLIP_H
- #pragma once
- #ifdef __cplusplus
- extern "C" {
- #endif
- #ifdef LIBVIDEOHORFLIP_EXPORTS
- #define VIDEOHORFLIP_API(type) _declspec(dllexport) type __stdcall
- #else
- #define VIDEOHORFLIP_API(type) _declspec(dllimport) type __stdcall
- #endif
- VIDEOHORFLIP_API(void*) videohorflip_create_filter();
- // format : 2 for RGB24, 1 for I420
- VIDEOHORFLIP_API(int) videohorflip_transform(unsigned char *data[], int linesize[], int cxImage, int cyImage, int format);
- VIDEOHORFLIP_API(void) videohorflip_fast_copy(void *dst, const void *src, int size);
- VIDEOHORFLIP_API(void*) videohorflip_create_grabber_render(void (*on_sample)(void *user_data, void *data), void *user_data);
- // for RGB24 currently
- // rotate: 1 for 90 degree, -1 for -90 degree
- VIDEOHORFLIP_API(int) videohorflip_rotate(const unsigned char *src_data, int width, int height, unsigned char *dst_data, int rotation);
- #ifdef __cplusplus
- } // extern "C" {
- #endif
- #endif // VIDEOHORFLIP_H
|