include: Assorted spelling fixes.
[wine] / dlls / strmbase / strmbase_private.h
1 /*
2  * Header file for private strmbase implementations
3  *
4  * Copyright 2012 Aric Stewart, CodeWeavers
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 /* Quality Control */
22 typedef struct QualityControlImpl {
23     IQualityControl IQualityControl_iface;
24     IPin *input;
25     IBaseFilter *self;
26     IQualityControl *tonotify;
27
28     /* Render stuff */
29     IReferenceClock *clock;
30     REFERENCE_TIME last_in_time, last_left, avg_duration, avg_pt, avg_render, start, stop;
31     REFERENCE_TIME current_jitter, current_rstart, current_rstop, clockstart;
32     double avg_rate;
33     LONG64 rendered, dropped;
34     BOOL qos_handled, is_dropped;
35 } QualityControlImpl;
36
37 HRESULT QualityControlImpl_Create(IPin *input, IBaseFilter *self, QualityControlImpl **ppv);
38 HRESULT QualityControlImpl_Destroy(QualityControlImpl *This);
39 HRESULT WINAPI QualityControlImpl_QueryInterface(IQualityControl *iface, REFIID riid, void **ppv);
40 ULONG WINAPI QualityControlImpl_AddRef(IQualityControl *iface);
41 ULONG WINAPI QualityControlImpl_Release(IQualityControl *iface);
42 HRESULT WINAPI QualityControlImpl_Notify(IQualityControl *iface, IBaseFilter *sender, Quality qm);
43 HRESULT WINAPI QualityControlImpl_SetSink(IQualityControl *iface, IQualityControl *tonotify);
44
45 void QualityControlRender_Start(QualityControlImpl *This, REFERENCE_TIME tStart);
46 void QualityControlRender_SetClock(QualityControlImpl *This, IReferenceClock *clock);
47 HRESULT QualityControlRender_WaitFor(QualityControlImpl *This, IMediaSample *sample, HANDLE ev);
48 void QualityControlRender_DoQOS(QualityControlImpl *priv);
49 void QualityControlRender_BeginRender(QualityControlImpl *This);
50 void QualityControlRender_EndRender(QualityControlImpl *This);