基于qt,msvc2017-64bits,ffmpeg.opengl的播放器
chenshijun
2020-12-03 9e8804424408db79fcdb229a016ac87952e4e0f6
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