Welcome to mirror list, hosted at ThFree Co, Russian Federation.

IDirectVobSub.h « vsfilter « transform « filters « src - github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a789c5a662e445fbb07861499b57e070fced4dd9 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
/* 
 *	Copyright (C) 2003-2006 Gabest
 *	http://www.gabest.org
 *
 *  This Program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *   
 *  This Program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *   
 *  You should have received a copy of the GNU General Public License
 *  along with GNU Make; see the file COPYING.  If not, write to
 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
 *  http://www.gnu.org/copyleft/gpl.html
 *
 */

#pragma once

#include "../../../subtitles/STS.h"

#ifdef __cplusplus
extern "C" {
#endif

    [uuid("EBE1FB08-3957-47ca-AF13-5827E5442E56")]
	interface IDirectVobSub : public IUnknown 
    {
        STDMETHOD(get_FileName) (THIS_
                    WCHAR* fn	// fn should point to a buffer allocated to at least the length of MAX_PATH (=260)
                 ) PURE;

        STDMETHOD(put_FileName) (THIS_
                    WCHAR* fn
                 ) PURE;

		STDMETHOD(get_LanguageCount) (THIS_
					int* nLangs
                 ) PURE;

		STDMETHOD(get_LanguageName) (THIS_
					int iLanguage, 
					WCHAR** ppName	// the returned *ppName is allocated with CoTaskMemAlloc
                 ) PURE;

		STDMETHOD(get_SelectedLanguage) (THIS_
					int* iSelected
                 ) PURE;

        STDMETHOD(put_SelectedLanguage) (THIS_
					int iSelected
                 ) PURE;

        STDMETHOD(get_HideSubtitles) (THIS_
                    bool* fHideSubtitles
                 ) PURE;

        STDMETHOD(put_HideSubtitles) (THIS_
                    bool fHideSubtitles
                 ) PURE;

        STDMETHOD(get_PreBuffering) (THIS_
					bool* fDoPreBuffering
                 ) PURE;

        STDMETHOD(put_PreBuffering) (THIS_
					bool fDoPreBuffering
                 ) PURE;

        STDMETHOD(get_Placement) (THIS_
					bool* fOverridePlacement,
					int* xperc,
					int* yperc
                 ) PURE;

        STDMETHOD(put_Placement) (THIS_
					bool fOverridePlacement,
					int xperc,
					int yperc
                 ) PURE;

        STDMETHOD(get_VobSubSettings) (THIS_
					bool* fBuffer,
					bool* fOnlyShowForcedSubs,
					bool* fPolygonize
                 ) PURE;

        STDMETHOD(put_VobSubSettings) (THIS_
					bool fBuffer,
					bool fOnlyShowForcedSubs,
					bool fPolygonize
                 ) PURE;

        STDMETHOD(get_TextSettings) (THIS_
					void* lf,
					int lflen, // depending on lflen, lf must point to LOGFONTA or LOGFONTW
					COLORREF* color,
					bool* fShadow,
					bool* fOutline,
					bool* fAdvancedRenderer
                 ) PURE;

        STDMETHOD(put_TextSettings) (THIS_
					void* lf,
					int lflen,
					COLORREF color,
					bool fShadow,
					bool fOutline,
					bool fAdvancedRenderer
                 ) PURE;

        STDMETHOD(get_Flip) (THIS_
                    bool* fPicture,
                    bool* fSubtitles
                 ) PURE;

        STDMETHOD(put_Flip) (THIS_
                    bool fPicture,
                    bool fSubtitles
                 ) PURE;

        STDMETHOD(get_OSD) (THIS_
					bool* fOSD
                 ) PURE;

        STDMETHOD(put_OSD) (THIS_
					bool fOSD
                 ) PURE;

        STDMETHOD(get_SaveFullPath) (THIS_
					bool* fSaveFullPath
                 ) PURE;

        STDMETHOD(put_SaveFullPath) (THIS_
					bool fSaveFullPath
                 ) PURE;

        STDMETHOD(get_SubtitleTiming) (THIS_
					int* delay,
					int* speedmul,
					int* speeddiv
                 ) PURE;

        STDMETHOD(put_SubtitleTiming) (THIS_
					int delay,
					int speedmul,
					int speeddiv
                 ) PURE;

        STDMETHOD(get_MediaFPS) (THIS_
					bool* fEnabled,
					double* fps
                 ) PURE;

        STDMETHOD(put_MediaFPS) (THIS_
					bool fEnabled,
					double fps
                 ) PURE;

		// no longer supported

        STDMETHOD(get_ColorFormat) (THIS_
					int* iPosition
                 ) PURE;

        STDMETHOD(put_ColorFormat) (THIS_
					int iPosition
                 ) PURE;

		//

        STDMETHOD(get_ZoomRect) (THIS_
					NORMALIZEDRECT* rect
                 ) PURE;

        STDMETHOD(put_ZoomRect) (THIS_
					NORMALIZEDRECT* rect
                 ) PURE;

		//

        STDMETHOD(UpdateRegistry) (THIS_
                 ) PURE;

		//

		STDMETHOD(HasConfigDialog) (THIS_
					int iSelected
				) PURE;

		STDMETHOD(ShowConfigDialog) (THIS_	// if available, this will popup a child dialog allowing the user to edit the style options
					int iSelected, 
					HWND hWndParent
				) PURE; 

		//

        STDMETHOD(IsSubtitleReloaderLocked) (THIS_
					bool* fLocked
                 ) PURE;

        STDMETHOD(LockSubtitleReloader) (THIS_
					bool fLock
                 ) PURE;

		STDMETHOD(get_SubtitleReloader) (THIS_
					bool* fDisabled
                 ) PURE;

        STDMETHOD(put_SubtitleReloader) (THIS_
					bool fDisable
                 ) PURE;

		//

        STDMETHOD(get_ExtendPicture) (THIS_
					int* horizontal, // 0 - disabled, 1 - mod32 extension (width = (width+31)&~31)
					int* vertical, // 0 - disabled, 1 - 16:9, 2 - 4:3, 0x80 - crop (use crop together with 16:9 or 4:3, eg 0x81 will crop to 16:9 if the picture was taller)
					int* resx2, // 0 - disabled, 1 - enabled, 2 - depends on the original resolution
					int* resx2minw, // resolution doubler will be used if width*height <= resx2minw*resx2minh (resx2minw*resx2minh equals to 384*288 by default)
					int* resx2minh 
                 ) PURE;

        STDMETHOD(put_ExtendPicture) (THIS_
					int horizontal,
					int vertical,
					int resx2,
					int resx2minw,
					int resx2minh
                 ) PURE;

        STDMETHOD(get_LoadSettings) (THIS_
					int* level, // 0 - when needed, 1 - always, 2 - disabled
					bool* fExternalLoad,
					bool* fWebLoad, 
					bool* fEmbeddedLoad
                 ) PURE;

        STDMETHOD(put_LoadSettings) (THIS_
					int level,
					bool fExternalLoad,
					bool fWebLoad, 
					bool fEmbeddedLoad
				) PURE;
	};

    [uuid("FE6EC6A0-21CA-4970-9EF0-B296F7F38AF0")]
	interface ISubClock : public IUnknown
	{
        STDMETHOD(SetTime)(REFERENCE_TIME rt) PURE;
        STDMETHOD_(REFERENCE_TIME, GetTime)() PURE;
	};

    [uuid("0665B760-FBC1-46C3-A35F-E471527C96A4")]
	interface ISubClock2 : public ISubClock
	{
        STDMETHOD(SetAvgTimePerFrame)(REFERENCE_TIME rt) PURE;
        STDMETHOD(GetAvgTimePerFrame)(REFERENCE_TIME* prt) PURE; // return S_OK only if *prt was set and is valid
	};

    [uuid("AB52FC9C-2415-4dca-BC1C-8DCC2EAE8150")]
	interface IDirectVobSub2 : public IDirectVobSub
	{
        STDMETHOD(AdviseSubClock) (THIS_
                    ISubClock* pSubClock
				) PURE;

		STDMETHOD_(bool, get_Forced) (THIS_
				) PURE;

        STDMETHOD(put_Forced) (THIS_
                    bool fForced
				) PURE;

		STDMETHOD(get_TextSettings) (THIS_
					STSStyle* pDefStyle
				) PURE;

		STDMETHOD(put_TextSettings) (THIS_
					STSStyle* pDefStyle
				) PURE;

		STDMETHOD(get_AspectRatioSettings) (THIS_
					CSimpleTextSubtitle::EPARCompensationType* ePARCompensationType
				) PURE;

		STDMETHOD(put_AspectRatioSettings) (THIS_
					CSimpleTextSubtitle::EPARCompensationType* ePARCompensationType
				) PURE;
	};


#ifdef __cplusplus
}
#endif