ReactOS 0.4.15-dev-8235-gcd88a97
qualityforward.cpp File Reference
#include "precomp.h"
Include dependency graph for qualityforward.cpp:

Go to the source code of this file.

Classes

class  CKsQualityForwarder
 

Macros

#define IID_IKsQualityForwarder   KSCATEGORY_QUALITY
 

Functions

HRESULT WINAPI CKsQualityForwarder_Constructor (IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv)
 

Macro Definition Documentation

◆ IID_IKsQualityForwarder

#define IID_IKsQualityForwarder   KSCATEGORY_QUALITY

Definition at line 11 of file qualityforward.cpp.

Function Documentation

◆ CKsQualityForwarder_Constructor()

HRESULT WINAPI CKsQualityForwarder_Constructor ( IUnknown pUnkOuter,
REFIID  riid,
LPVOID ppv 
)

Definition at line 94 of file qualityforward.cpp.

98{
99 HRESULT hr;
101
102#ifdef KSPROXY_TRACE
103 OutputDebugStringW(L"CKsQualityForwarder_Constructor\n");
104#endif
105
106 // open default clock
108
109 if (hr != NOERROR)
110 {
111#ifdef KSPROXY_TRACE
112 OutputDebugString("CKsClockForwarder_Constructor failed to open device\n");
113#endif
114 return hr;
115 }
116
118
119 if (!quality)
120 {
121 // free clock handle
123 return E_OUTOFMEMORY;
124 }
125
126 if (FAILED(quality->QueryInterface(riid, ppv)))
127 {
128 /* not supported */
129 delete quality;
130 return E_NOINTERFACE;
131 }
132
133 return NOERROR;
134}
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define CloseHandle
Definition: compat.h:739
#define GENERIC_READ
Definition: compat.h:135
void WINAPI SHIM_OBJ_NAME() OutputDebugStringW(LPCWSTR lpOutputString)
Definition: ignoredbgout.c:23
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define FAILED(hr)
Definition: intsafe.h:51
int quality
Definition: jpeglib.h:992
#define KSCATEGORY_QUALITY
Definition: ks.h:225
KSDDKAPI HRESULT WINAPI KsOpenDefaultDevice(REFGUID Category, ACCESS_MASK Access, PHANDLE DeviceHandle)
Definition: ksproxy.cpp:101
#define GENERIC_WRITE
Definition: nt_native.h:90
#define L(x)
Definition: ntvdm.h:50
HRESULT hr
Definition: shlfolder.c:183
#define OutputDebugString
Definition: winbase.h:3890
#define E_NOINTERFACE
Definition: winerror.h:2364
#define NOERROR
Definition: winerror.h:2354