1 #ifndef WAAVE_LIBRARY_H
2 #define WAAVE_LIBRARY_H
5 #include <libavutil/pixfmt.h>
31 #define WV_STATIC_GET 0
33 #define WV_DYNAMIC_GET 1
39 #define WV_ASYNC_GLR 1
43 #define WV_THREAD_SAFE 1
45 #define WV_NO_THREAD_SAFE 0
375 #define WV_PLAYING_SEEK 0
377 #define WV_BLOCKING_SEEK 1
381 #define WV_BLOCKING_STREAM 0
383 #define WV_LOOPING_STREAM 1
558 #define WV_STREAM_TYPE_NONE 0
559 #define WV_STREAM_TYPE_AUDIO 1
560 #define WV_STREAM_TYPE_VIDEO 2
561 #define WV_STREAM_TYPE_AUDIOVIDEO 3
564 #define WV_NEUTRAL_PLAY 0
565 #define WV_LOOPING_PLAY 1
568 #define WV_SEEK_BACKWARD -1
569 #define WV_SEEK_FORWARD 1
574 typedef struct WVStream WVStream;
577 typedef int (*WVEOFSignalCall)(
struct WVStream* stream,
void* param);
580 #define WAAVE_INIT_NONE 0
581 #define WAAVE_INIT_AUDIO 1
582 #define WAAVE_INIT_VIDEO 2
760 #if SDL_VERSION_ATLEAST(2,0,0)
762 extern int dynamic_wv_refresh_event;
763 #define WV_REFRESH_EVENT dynamic_wv_refresh_event
767 #define WV_REFRESH_EVENT SDL_NUMEVENTS - 1
878 #if SDL_VERSION_ATLEAST(2,0,0)
880 extern int dynamic_wv_eof_event;
881 #define WV_EOF_EVENT dynamic_wv_eof_event
885 #define WV_EOF_EVENT SDL_NUMEVENTS - 2
1115 int WV_rseekStream(WVStream* stream, uint32_t seekShift,
int seekDirection);