ReactOS  0.4.14-dev-376-gaedba84
writer.c File Reference
#include "wmvcore.h"
#include "wmsdkidl.h"
#include "wine/debug.h"
#include "wine/heap.h"
Include dependency graph for writer.c:

Go to the source code of this file.

Classes

struct  WMWriter
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (wmvcore)
 
static WMWriterimpl_from_IWMWriter (IWMWriter *iface)
 
static HRESULT WINAPI WMWriter_QueryInterface (IWMWriter *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI WMWriter_AddRef (IWMWriter *iface)
 
static ULONG WINAPI WMWriter_Release (IWMWriter *iface)
 
static HRESULT WINAPI WMWriter_SetProfileByID (IWMWriter *iface, REFGUID guidProfile)
 
static HRESULT WINAPI WMWriter_SetProfile (IWMWriter *iface, IWMProfile *profile)
 
static HRESULT WINAPI WMWriter_SetOutputFilename (IWMWriter *iface, const WCHAR *filename)
 
static HRESULT WINAPI WMWriter_GetInputCount (IWMWriter *iface, DWORD *pcInputs)
 
static HRESULT WINAPI WMWriter_GetInputProps (IWMWriter *iface, DWORD dwInputNum, IWMInputMediaProps **input)
 
static HRESULT WINAPI WMWriter_SetInputProps (IWMWriter *iface, DWORD dwInputNum, IWMInputMediaProps *input)
 
static HRESULT WINAPI WMWriter_GetInputFormatCount (IWMWriter *iface, DWORD dwInputNumber, DWORD *pcFormat)
 
static HRESULT WINAPI WMWriter_GetInputFormat (IWMWriter *iface, DWORD dwInputNumber, DWORD dwFormatNumber, IWMInputMediaProps **props)
 
static HRESULT WINAPI WMWriter_BeginWriting (IWMWriter *iface)
 
static HRESULT WINAPI WMWriter_EndWriting (IWMWriter *iface)
 
static HRESULT WINAPI WMWriter_AllocateSample (IWMWriter *iface, DWORD size, INSSBuffer **sample)
 
static HRESULT WINAPI WMWriter_WriteSample (IWMWriter *iface, DWORD dwInputNum, QWORD cnsSampleTime, DWORD flags, INSSBuffer *sample)
 
static HRESULT WINAPI WMWriter_Flush (IWMWriter *iface)
 
static WMWriterimpl_from_IWMWriterAdvanced3 (IWMWriterAdvanced3 *iface)
 
static HRESULT WINAPI WMWriterAdvanced_QueryInterface (IWMWriterAdvanced3 *iface, REFIID riid, void **ppv)
 
static ULONG WINAPI WMWriterAdvanced_AddRef (IWMWriterAdvanced3 *iface)
 
static ULONG WINAPI WMWriterAdvanced_Release (IWMWriterAdvanced3 *iface)
 
static HRESULT WINAPI WMWriterAdvanced_GetSinkCount (IWMWriterAdvanced3 *iface, DWORD *sinks)
 
static HRESULT WINAPI WMWriterAdvanced_GetSink (IWMWriterAdvanced3 *iface, DWORD sink_num, IWMWriterSink **sink)
 
static HRESULT WINAPI WMWriterAdvanced_AddSink (IWMWriterAdvanced3 *iface, IWMWriterSink *sink)
 
static HRESULT WINAPI WMWriterAdvanced_RemoveSink (IWMWriterAdvanced3 *iface, IWMWriterSink *sink)
 
static HRESULT WINAPI WMWriterAdvanced_WriteStreamSample (IWMWriterAdvanced3 *iface, WORD stream_num, QWORD sample_time, DWORD sample_send_time, QWORD sample_duration, DWORD flags, INSSBuffer *sample)
 
static HRESULT WINAPI WMWriterAdvanced_SetLiveSource (IWMWriterAdvanced3 *iface, BOOL is_live_source)
 
static HRESULT WINAPI WMWriterAdvanced_IsRealTime (IWMWriterAdvanced3 *iface, BOOL *real_time)
 
static HRESULT WINAPI WMWriterAdvanced_GetWriterTime (IWMWriterAdvanced3 *iface, QWORD *current_time)
 
static HRESULT WINAPI WMWriterAdvanced_GetStatistics (IWMWriterAdvanced3 *iface, WORD stream_num, WM_WRITER_STATISTICS *stats)
 
static HRESULT WINAPI WMWriterAdvanced_SetSyncTolerance (IWMWriterAdvanced3 *iface, DWORD window)
 
static HRESULT WINAPI WMWriterAdvanced_GetSyncTolerance (IWMWriterAdvanced3 *iface, DWORD *window)
 
static HRESULT WINAPI WMWriterAdvanced2_GetInputSetting (IWMWriterAdvanced3 *iface, DWORD input_num, const WCHAR *name, WMT_ATTR_DATATYPE *time, BYTE *value, WORD *length)
 
static HRESULT WINAPI WMWriterAdvanced2_SetInputSetting (IWMWriterAdvanced3 *iface, DWORD input_num, const WCHAR *name, WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
 
static HRESULT WINAPI WMWriterAdvanced3_GetStatisticsEx (IWMWriterAdvanced3 *iface, WORD stream_num, WM_WRITER_STATISTICS_EX *stats)
 
static HRESULT WINAPI WMWriterAdvanced3_SetNonBlocking (IWMWriterAdvanced3 *iface)
 
HRESULT WINAPI WMCreateWriter (IUnknown *reserved, IWMWriter **writer)
 
HRESULT WINAPI WMCreateWriterPriv (IWMWriter **writer)
 

Variables

static const IWMWriterVtbl WMWriterVtbl
 
static const IWMWriterAdvanced3Vtbl WMWriterAdvanced3Vtbl
 

Function Documentation

◆ impl_from_IWMWriter()

static WMWriter* impl_from_IWMWriter ( IWMWriter iface)
inlinestatic

Definition at line 33 of file writer.c.

34 {
35  return CONTAINING_RECORD(iface, WMWriter, IWMWriter_iface);
36 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560

Referenced by WMWriter_AddRef(), WMWriter_AllocateSample(), WMWriter_BeginWriting(), WMWriter_EndWriting(), WMWriter_Flush(), WMWriter_GetInputCount(), WMWriter_GetInputFormat(), WMWriter_GetInputFormatCount(), WMWriter_GetInputProps(), WMWriter_QueryInterface(), WMWriter_Release(), WMWriter_SetInputProps(), WMWriter_SetOutputFilename(), WMWriter_SetProfile(), WMWriter_SetProfileByID(), and WMWriter_WriteSample().

◆ impl_from_IWMWriterAdvanced3()

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( wmvcore  )

◆ WMCreateWriter()

HRESULT WINAPI WMCreateWriter ( IUnknown reserved,
IWMWriter **  writer 
)

Definition at line 356 of file writer.c.

357 {
358  WMWriter *ret;
359 
360  TRACE("(%p %p)\n", reserved, writer);
361 
362  ret = heap_alloc(sizeof(*ret));
363  if(!ret)
364  return E_OUTOFMEMORY;
365 
366  ret->IWMWriter_iface.lpVtbl = &WMWriterVtbl;
367  ret->IWMWriterAdvanced3_iface.lpVtbl = &WMWriterAdvanced3Vtbl;
368  ret->ref = 1;
369 
370  *writer = &ret->IWMWriter_iface;
371  return S_OK;
372 }
static const IWMWriterVtbl WMWriterVtbl
Definition: writer.c:183
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
static const IWMWriterAdvanced3Vtbl WMWriterAdvanced3Vtbl
Definition: writer.c:335
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
r reserved
Definition: btrfs.c:2865
#define TRACE(s)
Definition: solgame.cpp:4
int ret
#define S_OK
Definition: intsafe.h:59

Referenced by test_wmwriter_interfaces(), and WMCreateWriterPriv().

◆ WMCreateWriterPriv()

HRESULT WINAPI WMCreateWriterPriv ( IWMWriter **  writer)

Definition at line 374 of file writer.c.

375 {
376  return WMCreateWriter(NULL, writer);
377 }
HRESULT WINAPI WMCreateWriter(IUnknown *reserved, IWMWriter **writer)
Definition: writer.c:356
smooth NULL
Definition: ftsmooth.c:416

Referenced by test_WMCreateWriterPriv().

◆ WMWriter_AddRef()

static ULONG WINAPI WMWriter_AddRef ( IWMWriter iface)
static

Definition at line 67 of file writer.c.

68 {
71 
72  TRACE("(%p) ref=%d\n", This, ref);
73 
74  return ref;
75 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53

◆ WMWriter_AllocateSample()

static HRESULT WINAPI WMWriter_AllocateSample ( IWMWriter iface,
DWORD  size,
INSSBuffer **  sample 
)
static

Definition at line 161 of file writer.c.

162 {
164  FIXME("(%p)->(%d %p)\n", This, size, sample);
165  return E_NOTIMPL;
166 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
GLsizeiptr size
Definition: glext.h:5919
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_BeginWriting()

static HRESULT WINAPI WMWriter_BeginWriting ( IWMWriter iface)
static

Definition at line 147 of file writer.c.

148 {
150  FIXME("(%p)\n", This);
151  return E_NOTIMPL;
152 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_EndWriting()

static HRESULT WINAPI WMWriter_EndWriting ( IWMWriter iface)
static

Definition at line 154 of file writer.c.

155 {
157  FIXME("(%p)\n", This);
158  return E_NOTIMPL;
159 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_Flush()

static HRESULT WINAPI WMWriter_Flush ( IWMWriter iface)
static

Definition at line 176 of file writer.c.

177 {
179  FIXME("(%p)\n", This);
180  return E_NOTIMPL;
181 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_GetInputCount()

static HRESULT WINAPI WMWriter_GetInputCount ( IWMWriter iface,
DWORD pcInputs 
)
static

Definition at line 111 of file writer.c.

112 {
114  FIXME("(%p)->(%p)\n", This, pcInputs);
115  return E_NOTIMPL;
116 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_GetInputFormat()

static HRESULT WINAPI WMWriter_GetInputFormat ( IWMWriter iface,
DWORD  dwInputNumber,
DWORD  dwFormatNumber,
IWMInputMediaProps **  props 
)
static

Definition at line 139 of file writer.c.

141 {
143  FIXME("(%p)->(%d %d %p)\n", This, dwInputNumber, dwFormatNumber, props);
144  return E_NOTIMPL;
145 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
static const WCHAR props[]
Definition: wbemdisp.c:288

◆ WMWriter_GetInputFormatCount()

static HRESULT WINAPI WMWriter_GetInputFormatCount ( IWMWriter iface,
DWORD  dwInputNumber,
DWORD pcFormat 
)
static

Definition at line 132 of file writer.c.

133 {
135  FIXME("(%p)->(%d %p)\n", This, dwInputNumber, pcFormat);
136  return E_NOTIMPL;
137 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_GetInputProps()

static HRESULT WINAPI WMWriter_GetInputProps ( IWMWriter iface,
DWORD  dwInputNum,
IWMInputMediaProps **  input 
)
static

Definition at line 118 of file writer.c.

119 {
121  FIXME("(%p)->(%d %p)\n", This, dwInputNum, input);
122  return E_NOTIMPL;
123 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
GLenum GLenum GLenum input
Definition: glext.h:9031
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_QueryInterface()

static HRESULT WINAPI WMWriter_QueryInterface ( IWMWriter iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 38 of file writer.c.

39 {
41 
43  TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
44  *ppv = &This->IWMWriter_iface;
45  }else if(IsEqualGUID(&IID_IWMWriter, riid)) {
46  TRACE("(%p)->(IID_IWMWriter %p)\n", This, ppv);
47  *ppv = &This->IWMWriter_iface;
48  }else if(IsEqualGUID(&IID_IWMWriterAdvanced, riid)) {
49  TRACE("(%p)->(IID_IWMWriterAdvanced %p)\n", This, ppv);
50  *ppv = &This->IWMWriterAdvanced3_iface;
51  }else if(IsEqualGUID(&IID_IWMWriterAdvanced2, riid)) {
52  TRACE("(%p)->(IID_IWMWriterAdvanced2 %p)\n", This, ppv);
53  *ppv = &This->IWMWriterAdvanced3_iface;
54  }else if(IsEqualGUID(&IID_IWMWriterAdvanced3, riid)) {
55  TRACE("(%p)->(IID_IWMWriterAdvanced3 %p)\n", This, ppv);
56  *ppv = &This->IWMWriterAdvanced3_iface;
57  }else {
58  FIXME("Unsupported iface %s\n", debugstr_guid(riid));
59  *ppv = NULL;
60  return E_NOINTERFACE;
61  }
62 
63  IUnknown_AddRef((IUnknown*)*ppv);
64  return S_OK;
65 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define FIXME(fmt,...)
Definition: debug.h:110
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ WMWriter_Release()

static ULONG WINAPI WMWriter_Release ( IWMWriter iface)
static

Definition at line 77 of file writer.c.

78 {
81 
82  TRACE("(%p) ref=%d\n", This, ref);
83 
84  if(!ref)
85  heap_free(This);
86 
87  return ref;
88 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
Definition: send.c:47
long LONG
Definition: pedump.c:60
GLenum GLint ref
Definition: glext.h:6028
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedDecrement
Definition: armddk.h:52
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ WMWriter_SetInputProps()

static HRESULT WINAPI WMWriter_SetInputProps ( IWMWriter iface,
DWORD  dwInputNum,
IWMInputMediaProps input 
)
static

Definition at line 125 of file writer.c.

126 {
128  FIXME("(%p)->(%d %p)\n", This, dwInputNum, input);
129  return E_NOTIMPL;
130 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
GLenum GLenum GLenum input
Definition: glext.h:9031
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_SetOutputFilename()

static HRESULT WINAPI WMWriter_SetOutputFilename ( IWMWriter iface,
const WCHAR filename 
)
static

Definition at line 104 of file writer.c.

105 {
107  FIXME("(%p)->(%s)\n", This, debugstr_w(filename));
108  return E_NOTIMPL;
109 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
const char * filename
Definition: ioapi.h:135
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_SetProfile()

static HRESULT WINAPI WMWriter_SetProfile ( IWMWriter iface,
IWMProfile profile 
)
static

Definition at line 97 of file writer.c.

98 {
100  FIXME("(%p)->(%p)\n", This, profile);
101  return E_NOTIMPL;
102 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
#define profile
Definition: kernel32.h:12

◆ WMWriter_SetProfileByID()

static HRESULT WINAPI WMWriter_SetProfileByID ( IWMWriter iface,
REFGUID  guidProfile 
)
static

Definition at line 90 of file writer.c.

91 {
93  FIXME("(%p)->(%s)\n", This, debugstr_guid(guidProfile));
94  return E_NOTIMPL;
95 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_guid
Definition: kernel32.h:35
GUID guidProfile
Definition: msctf.idl:607
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriter_WriteSample()

static HRESULT WINAPI WMWriter_WriteSample ( IWMWriter iface,
DWORD  dwInputNum,
QWORD  cnsSampleTime,
DWORD  flags,
INSSBuffer sample 
)
static

Definition at line 168 of file writer.c.

170 {
172  FIXME("(%p)->(%d %s %x %p)\n", This, dwInputNum, wine_dbgstr_longlong(cnsSampleTime), flags, sample);
173  return E_NOTIMPL;
174 }
static WMWriter * impl_from_IWMWriter(IWMWriter *iface)
Definition: writer.c:33
#define FIXME(fmt,...)
Definition: debug.h:110
GLbitfield flags
Definition: glext.h:7161
#define E_NOTIMPL
Definition: ddrawi.h:99
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
Definition: compat.h:41

◆ WMWriterAdvanced2_GetInputSetting()

static HRESULT WINAPI WMWriterAdvanced2_GetInputSetting ( IWMWriterAdvanced3 iface,
DWORD  input_num,
const WCHAR name,
WMT_ATTR_DATATYPE time,
BYTE value,
WORD length 
)
static

Definition at line 304 of file writer.c.

306 {
308  FIXME("(%p)->(%u %s %p %p %p)\n", This, input_num, debugstr_w(name), time, value, length);
309  return E_NOTIMPL;
310 }
__u16 time
Definition: mkdosfs.c:366
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: name.c:36

◆ WMWriterAdvanced2_SetInputSetting()

static HRESULT WINAPI WMWriterAdvanced2_SetInputSetting ( IWMWriterAdvanced3 iface,
DWORD  input_num,
const WCHAR name,
WMT_ATTR_DATATYPE  type,
const BYTE value,
WORD  length 
)
static

Definition at line 312 of file writer.c.

314 {
316  FIXME("(%p)->(%u %s %d %p %u)\n", This, input_num, debugstr_w(name), type, value, length);
317  return E_NOTIMPL;
318 }
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: name.c:36

◆ WMWriterAdvanced3_GetStatisticsEx()

static HRESULT WINAPI WMWriterAdvanced3_GetStatisticsEx ( IWMWriterAdvanced3 iface,
WORD  stream_num,
WM_WRITER_STATISTICS_EX stats 
)
static

Definition at line 320 of file writer.c.

322 {
324  FIXME("(%p)->(%u %p)\n", This, stream_num, stats);
325  return E_NOTIMPL;
326 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced3_SetNonBlocking()

static HRESULT WINAPI WMWriterAdvanced3_SetNonBlocking ( IWMWriterAdvanced3 iface)
static

Definition at line 328 of file writer.c.

329 {
331  FIXME("(%p)\n", This);
332  return E_NOTIMPL;
333 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_AddRef()

static ULONG WINAPI WMWriterAdvanced_AddRef ( IWMWriterAdvanced3 iface)
static

Definition at line 213 of file writer.c.

214 {
216  return IWMWriter_AddRef(&This->IWMWriter_iface);
217 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202

◆ WMWriterAdvanced_AddSink()

static HRESULT WINAPI WMWriterAdvanced_AddSink ( IWMWriterAdvanced3 iface,
IWMWriterSink sink 
)
static

Definition at line 239 of file writer.c.

240 {
242  FIXME("(%p)->(%p)\n", This, sink);
243  return E_NOTIMPL;
244 }
GLsizei GLenum GLboolean sink
Definition: glext.h:5672
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_GetSink()

static HRESULT WINAPI WMWriterAdvanced_GetSink ( IWMWriterAdvanced3 iface,
DWORD  sink_num,
IWMWriterSink **  sink 
)
static

Definition at line 232 of file writer.c.

233 {
235  FIXME("(%p)->(%u %p)\n", This, sink_num, sink);
236  return E_NOTIMPL;
237 }
GLsizei GLenum GLboolean sink
Definition: glext.h:5672
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_GetSinkCount()

static HRESULT WINAPI WMWriterAdvanced_GetSinkCount ( IWMWriterAdvanced3 iface,
DWORD sinks 
)
static

Definition at line 225 of file writer.c.

226 {
228  FIXME("(%p)->(%p)\n", This, sinks);
229  return E_NOTIMPL;
230 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_GetStatistics()

static HRESULT WINAPI WMWriterAdvanced_GetStatistics ( IWMWriterAdvanced3 iface,
WORD  stream_num,
WM_WRITER_STATISTICS stats 
)
static

Definition at line 283 of file writer.c.

284 {
286  FIXME("(%p)->(%u %p)\n", This, stream_num, stats);
287  return E_NOTIMPL;
288 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_GetSyncTolerance()

static HRESULT WINAPI WMWriterAdvanced_GetSyncTolerance ( IWMWriterAdvanced3 iface,
DWORD window 
)
static

Definition at line 297 of file writer.c.

298 {
300  FIXME("(%p)->(%p)\n", This, window);
301  return E_NOTIMPL;
302 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
static IHTMLWindow2 * window
Definition: events.c:77
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_GetWriterTime()

static HRESULT WINAPI WMWriterAdvanced_GetWriterTime ( IWMWriterAdvanced3 iface,
QWORD current_time 
)
static

Definition at line 276 of file writer.c.

277 {
279  FIXME("(%p)->(%p)\n", This, current_time);
280  return E_NOTIMPL;
281 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_IsRealTime()

static HRESULT WINAPI WMWriterAdvanced_IsRealTime ( IWMWriterAdvanced3 iface,
BOOL real_time 
)
static

Definition at line 269 of file writer.c.

270 {
272  FIXME("(%p)->(%p)\n", This, real_time);
273  return E_NOTIMPL;
274 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_QueryInterface()

static HRESULT WINAPI WMWriterAdvanced_QueryInterface ( IWMWriterAdvanced3 iface,
REFIID  riid,
void **  ppv 
)
static

Definition at line 207 of file writer.c.

208 {
210  return IWMWriter_QueryInterface(&This->IWMWriter_iface, riid, ppv);
211 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202

◆ WMWriterAdvanced_Release()

static ULONG WINAPI WMWriterAdvanced_Release ( IWMWriterAdvanced3 iface)
static

Definition at line 219 of file writer.c.

220 {
222  return IWMWriter_Release(&This->IWMWriter_iface);
223 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202

◆ WMWriterAdvanced_RemoveSink()

static HRESULT WINAPI WMWriterAdvanced_RemoveSink ( IWMWriterAdvanced3 iface,
IWMWriterSink sink 
)
static

Definition at line 246 of file writer.c.

247 {
249  FIXME("(%p)->(%p)\n", This, sink);
250  return E_NOTIMPL;
251 }
GLsizei GLenum GLboolean sink
Definition: glext.h:5672
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_SetLiveSource()

static HRESULT WINAPI WMWriterAdvanced_SetLiveSource ( IWMWriterAdvanced3 iface,
BOOL  is_live_source 
)
static

Definition at line 262 of file writer.c.

263 {
265  FIXME("(%p)->(%x)\n", This, is_live_source);
266  return E_NOTIMPL;
267 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_SetSyncTolerance()

static HRESULT WINAPI WMWriterAdvanced_SetSyncTolerance ( IWMWriterAdvanced3 iface,
DWORD  window 
)
static

Definition at line 290 of file writer.c.

291 {
293  FIXME("(%p)->(%u)\n", This, window);
294  return E_NOTIMPL;
295 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
static IHTMLWindow2 * window
Definition: events.c:77
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ WMWriterAdvanced_WriteStreamSample()

static HRESULT WINAPI WMWriterAdvanced_WriteStreamSample ( IWMWriterAdvanced3 iface,
WORD  stream_num,
QWORD  sample_time,
DWORD  sample_send_time,
QWORD  sample_duration,
DWORD  flags,
INSSBuffer sample 
)
static

Definition at line 253 of file writer.c.

255 {
257  FIXME("(%p)->(%u %s %u %s %x %p)\n", This, stream_num, wine_dbgstr_longlong(sample_time),
258  sample_send_time, wine_dbgstr_longlong(sample_duration), flags, sample);
259  return E_NOTIMPL;
260 }
static WMWriter * impl_from_IWMWriterAdvanced3(IWMWriterAdvanced3 *iface)
Definition: writer.c:202
#define FIXME(fmt,...)
Definition: debug.h:110
GLbitfield flags
Definition: glext.h:7161
#define E_NOTIMPL
Definition: ddrawi.h:99
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
Definition: compat.h:41

Variable Documentation

◆ WMWriterAdvanced3Vtbl

const IWMWriterAdvanced3Vtbl WMWriterAdvanced3Vtbl
static
Initial value:
= {
}
static HRESULT WINAPI WMWriterAdvanced_IsRealTime(IWMWriterAdvanced3 *iface, BOOL *real_time)
Definition: writer.c:269
static HRESULT WINAPI WMWriterAdvanced_SetSyncTolerance(IWMWriterAdvanced3 *iface, DWORD window)
Definition: writer.c:290
static HRESULT WINAPI WMWriterAdvanced_GetSyncTolerance(IWMWriterAdvanced3 *iface, DWORD *window)
Definition: writer.c:297
static HRESULT WINAPI WMWriterAdvanced_AddSink(IWMWriterAdvanced3 *iface, IWMWriterSink *sink)
Definition: writer.c:239
static HRESULT WINAPI WMWriterAdvanced_RemoveSink(IWMWriterAdvanced3 *iface, IWMWriterSink *sink)
Definition: writer.c:246
static HRESULT WINAPI WMWriterAdvanced_WriteStreamSample(IWMWriterAdvanced3 *iface, WORD stream_num, QWORD sample_time, DWORD sample_send_time, QWORD sample_duration, DWORD flags, INSSBuffer *sample)
Definition: writer.c:253
static HRESULT WINAPI WMWriterAdvanced3_GetStatisticsEx(IWMWriterAdvanced3 *iface, WORD stream_num, WM_WRITER_STATISTICS_EX *stats)
Definition: writer.c:320
static HRESULT WINAPI WMWriterAdvanced_QueryInterface(IWMWriterAdvanced3 *iface, REFIID riid, void **ppv)
Definition: writer.c:207
static ULONG WINAPI WMWriterAdvanced_AddRef(IWMWriterAdvanced3 *iface)
Definition: writer.c:213
static HRESULT WINAPI WMWriterAdvanced3_SetNonBlocking(IWMWriterAdvanced3 *iface)
Definition: writer.c:328
static HRESULT WINAPI WMWriterAdvanced_SetLiveSource(IWMWriterAdvanced3 *iface, BOOL is_live_source)
Definition: writer.c:262
static HRESULT WINAPI WMWriterAdvanced_GetSink(IWMWriterAdvanced3 *iface, DWORD sink_num, IWMWriterSink **sink)
Definition: writer.c:232
static HRESULT WINAPI WMWriterAdvanced_GetWriterTime(IWMWriterAdvanced3 *iface, QWORD *current_time)
Definition: writer.c:276
static HRESULT WINAPI WMWriterAdvanced_GetSinkCount(IWMWriterAdvanced3 *iface, DWORD *sinks)
Definition: writer.c:225
static HRESULT WINAPI WMWriterAdvanced_GetStatistics(IWMWriterAdvanced3 *iface, WORD stream_num, WM_WRITER_STATISTICS *stats)
Definition: writer.c:283
static ULONG WINAPI WMWriterAdvanced_Release(IWMWriterAdvanced3 *iface)
Definition: writer.c:219
static HRESULT WINAPI WMWriterAdvanced2_GetInputSetting(IWMWriterAdvanced3 *iface, DWORD input_num, const WCHAR *name, WMT_ATTR_DATATYPE *time, BYTE *value, WORD *length)
Definition: writer.c:304
static HRESULT WINAPI WMWriterAdvanced2_SetInputSetting(IWMWriterAdvanced3 *iface, DWORD input_num, const WCHAR *name, WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
Definition: writer.c:312

Definition at line 335 of file writer.c.

Referenced by WMCreateWriter().

◆ WMWriterVtbl

const IWMWriterVtbl WMWriterVtbl
static
Initial value:
= {
}
static HRESULT WINAPI WMWriter_QueryInterface(IWMWriter *iface, REFIID riid, void **ppv)
Definition: writer.c:38
static HRESULT WINAPI WMWriter_SetOutputFilename(IWMWriter *iface, const WCHAR *filename)
Definition: writer.c:104
static ULONG WINAPI WMWriter_Release(IWMWriter *iface)
Definition: writer.c:77
static HRESULT WINAPI WMWriter_GetInputFormatCount(IWMWriter *iface, DWORD dwInputNumber, DWORD *pcFormat)
Definition: writer.c:132
static HRESULT WINAPI WMWriter_EndWriting(IWMWriter *iface)
Definition: writer.c:154
static HRESULT WINAPI WMWriter_WriteSample(IWMWriter *iface, DWORD dwInputNum, QWORD cnsSampleTime, DWORD flags, INSSBuffer *sample)
Definition: writer.c:168
static HRESULT WINAPI WMWriter_SetInputProps(IWMWriter *iface, DWORD dwInputNum, IWMInputMediaProps *input)
Definition: writer.c:125
static HRESULT WINAPI WMWriter_GetInputCount(IWMWriter *iface, DWORD *pcInputs)
Definition: writer.c:111
static HRESULT WINAPI WMWriter_Flush(IWMWriter *iface)
Definition: writer.c:176
static HRESULT WINAPI WMWriter_GetInputProps(IWMWriter *iface, DWORD dwInputNum, IWMInputMediaProps **input)
Definition: writer.c:118
static ULONG WINAPI WMWriter_AddRef(IWMWriter *iface)
Definition: writer.c:67
static HRESULT WINAPI WMWriter_SetProfileByID(IWMWriter *iface, REFGUID guidProfile)
Definition: writer.c:90
static HRESULT WINAPI WMWriter_BeginWriting(IWMWriter *iface)
Definition: writer.c:147
static HRESULT WINAPI WMWriter_SetProfile(IWMWriter *iface, IWMProfile *profile)
Definition: writer.c:97
static HRESULT WINAPI WMWriter_GetInputFormat(IWMWriter *iface, DWORD dwInputNumber, DWORD dwFormatNumber, IWMInputMediaProps **props)
Definition: writer.c:139
static HRESULT WINAPI WMWriter_AllocateSample(IWMWriter *iface, DWORD size, INSSBuffer **sample)
Definition: writer.c:161

Definition at line 183 of file writer.c.

Referenced by WMCreateWriter().