基于qt,msvc2017-64bits,ffmpeg.opengl的播放器
zhangmeng
2021-03-03 4a6d9312cc1c9d62d66c4def71246d9faae29edb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef TYPES_H
#define TYPES_H
 
#include <stdio.h>
#include <stdint.h>
 
#if defined(WIN32)
    #include <WinSock2.h>
    #include <Windows.h>
    #include <direct.h>
    #include <io.h> //C (Windows)    access
#else
    #include <sys/time.h>
    #include <stdio.h>
    #include <unistd.h>
#endif
 
enum VideoPlayerState
{
    VideoPlayer_Playing,
    VideoPlayer_Pause,
    VideoPlayer_Stop
};
 
#if defined(WIN32)
#else
    void Sleep(long mSeconds);
#endif
 
void mSleep(int mSecond);
 
int64_t getTimeStamp_MilliSecond();
 
#endif // TYPES_H