Increase ParseScript cache from 30 to 90 seconds
[xy_vsfilter.git] / src / subpic / ISubRender.h
blobad97b385bed7a0af2c89d65c79e7a37f972a327d
1 /*
2 * $Id: ISubRender.h 2786 2010-12-17 16:42:55Z XhmikosR $
4 * (C) 2003-2006 Gabest
5 * (C) 2006-2010 see AUTHORS
7 * This Program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
12 * This Program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Make; see the file COPYING. If not, write to
19 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
20 * http://www.gnu.org/copyleft/gpl.html
24 #pragma once
26 #include <d3d9.h>
28 interface __declspec(uuid("CD6D2AA5-20D3-4ebe-A8A9-34D3B00CC253"))
29 ISubRenderCallback :
30 public IUnknown {
31 // NULL means release current device, textures and other resources
32 STDMETHOD(SetDevice)(IDirect3DDevice9 *dev) = 0;
34 // destination video rectangle, will be inside (0, 0)-(width, height)
35 // width,height is the size of the entire output window
36 STDMETHOD(Render)(REFERENCE_TIME rtStart,
37 int left, int top, int bottom, int right,
38 int width, int height) = 0;
41 interface __declspec(uuid("E602585E-C05A-4828-AC69-AF92997F2E0C"))
42 ISubRenderCallback2 :
43 public ISubRenderCallback {
44 STDMETHOD(RenderEx)(REFERENCE_TIME rtStart, REFERENCE_TIME rtStop,
45 REFERENCE_TIME AvgTimePerFrame,
46 int left, int top, int right, int bottom,
47 int width, int height) = 0;
50 interface __declspec(uuid("9CC7F9F7-3ED1-493c-AF65-527EA1D9947F"))
51 ISubRender :
52 public IUnknown {
53 STDMETHOD(SetCallback)(ISubRenderCallback *cb) = 0;