]> git.vomp.tv Git - vompclient.git/blob - osdvectortypes.h
Fix subs running during pause - after a jump then quick pause
[vompclient.git] / osdvectortypes.h
1 /*
2     Copyright 2014 Marten Richter
3
4     This file is part of VOMP.
5
6     VOMP is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     VOMP is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with VOMP.  If not, see <https://www.gnu.org/licenses/>.
18 */
19
20 #ifndef OSDVECTORTYPES_H
21 #define OSDVECTORTYPES_H
22
23 #include "defines.h"
24
25 typedef void* LoadingIndex;
26 typedef VectorHandle VectorHandleImage;
27
28 class PictureDecoder;
29 struct PictureInfo
30 {
31   enum PictType
32   {
33     RGBAMemBlock,
34     EGLImage,
35     D2DBitmap
36   };
37   PictType type;
38   ULONG width;
39   ULONG height;
40   LoadingIndex lindex;
41   union
42   {
43     const void* image;
44     unsigned int handle;
45   };
46   void* reference;
47   PictureDecoder* decoder;
48 };
49
50 enum Corner
51 {
52   TopLeft,
53   TopRight,
54   BottomLeft,
55   BottomRight,
56   TopMiddle,
57   BottomMiddle,
58   TopLeftLimited
59 };
60
61 #endif