#include <stdarg.h>
#include "dshow.h"
#include "wine/strmbase.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (strmbase) |
|
HRESULT WINAPI | CopyMediaType (AM_MEDIA_TYPE *dest, const AM_MEDIA_TYPE *src) |
|
void WINAPI | FreeMediaType (AM_MEDIA_TYPE *pMediaType) |
|
AM_MEDIA_TYPE *WINAPI | CreateMediaType (AM_MEDIA_TYPE const *pSrc) |
|
void WINAPI | DeleteMediaType (AM_MEDIA_TYPE *pMediaType) |
|
static IEnumMediaTypesImpl * | impl_from_IEnumMediaTypes (IEnumMediaTypes *iface) |
|
HRESULT WINAPI | EnumMediaTypes_Construct (BasePin *basePin, BasePin_GetMediaType enumFunc, BasePin_GetMediaTypeVersion versionFunc, IEnumMediaTypes **ppEnum) |
|
static HRESULT WINAPI | IEnumMediaTypesImpl_QueryInterface (IEnumMediaTypes *iface, REFIID riid, void **ret_iface) |
|
static ULONG WINAPI | IEnumMediaTypesImpl_AddRef (IEnumMediaTypes *iface) |
|
static ULONG WINAPI | IEnumMediaTypesImpl_Release (IEnumMediaTypes *iface) |
|
static HRESULT WINAPI | IEnumMediaTypesImpl_Next (IEnumMediaTypes *iface, ULONG cMediaTypes, AM_MEDIA_TYPE **ppMediaTypes, ULONG *pcFetched) |
|
static HRESULT WINAPI | IEnumMediaTypesImpl_Skip (IEnumMediaTypes *iface, ULONG cMediaTypes) |
|
static HRESULT WINAPI | IEnumMediaTypesImpl_Reset (IEnumMediaTypes *iface) |
|
static HRESULT WINAPI | IEnumMediaTypesImpl_Clone (IEnumMediaTypes *iface, IEnumMediaTypes **ppEnum) |
|
◆ COBJMACROS
◆ ENUMMEDIADETAILS
◆ IEnumMediaTypesImpl
◆ CopyMediaType()
◆ CreateMediaType()
◆ DeleteMediaType()
◆ EnumMediaTypes_Construct()
Definition at line 108 of file mediatype.c.
109{
113
115
116 if (!pEnumMediaTypes)
118
121 pEnumMediaTypes->
uIndex = 0;
125 pEnumMediaTypes->
basePin = basePin;
126
128 while (enumFunc(basePin,
i, &amt) ==
S_OK)
129 {
132 }
133
138 {
140
142 {
145 }
146 }
150}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by BasePinImpl_EnumMediaTypes(), IEnumMediaTypesImpl_Clone(), and Parser_PullPin_EnumMediaTypes().
◆ FreeMediaType()
◆ IEnumMediaTypesImpl_AddRef()
Definition at line 171 of file mediatype.c.
172{
175
176 TRACE(
"(%p)->(): new ref = %u\n", iface,
ref);
177
179}
#define InterlockedIncrement
◆ IEnumMediaTypesImpl_Clone()
Definition at line 289 of file mediatype.c.
290{
293
294 TRACE(
"(%p)->(%p)\n", iface, ppEnum);
295
299 return IEnumMediaTypes_Skip(*ppEnum,
This->uIndex);
300}
◆ IEnumMediaTypesImpl_Next()
Definition at line 200 of file mediatype.c.
201{
204
205 TRACE(
"(%p)->(%u, %p, %p)\n", iface, cMediaTypes, ppMediaTypes, pcFetched);
206
207 cFetched =
min(
This->enumMediaDetails.cMediaTypes,
This->uIndex + cMediaTypes) -
This->uIndex;
208
209 if (
This->currentVersion !=
This->mediaVersionFunction(
This->basePin))
211
212 TRACE(
"Next uIndex: %u, cFetched: %u\n",
This->uIndex, cFetched);
213
214 if (cFetched > 0)
215 {
217 for (
i = 0;
i < cFetched;
i++)
219 {
222 *pcFetched = 0;
224 }
225 }
226
227 if ((cMediaTypes != 1) || pcFetched)
228 *pcFetched = cFetched;
229
230 This->uIndex += cFetched;
231
232 if (cFetched != cMediaTypes)
235}
#define VFW_E_ENUM_OUT_OF_SYNC
◆ IEnumMediaTypesImpl_QueryInterface()
Definition at line 152 of file mediatype.c.
153{
155
158 {
159 IEnumMediaTypes_AddRef(iface);
160 *ret_iface = iface;
162 }
163
165
167
169}
#define IsEqualIID(riid1, riid2)
◆ IEnumMediaTypesImpl_Release()
Definition at line 181 of file mediatype.c.
182{
185
186 TRACE(
"(%p)->(): new ref = %u\n", iface,
ref);
187
189 {
191 for (
i = 0;
i <
This->enumMediaDetails.cMediaTypes;
i++)
194 IPin_Release(&
This->basePin->IPin_iface);
196 }
198}
#define InterlockedDecrement
◆ IEnumMediaTypesImpl_Reset()
Definition at line 254 of file mediatype.c.
255{
259
260 TRACE(
"(%p)->()\n", iface);
261
262 for (
i = 0;
i <
This->enumMediaDetails.cMediaTypes;
i++)
265
267 while (
This->enumMediaFunction(
This->basePin,
i, &amt) ==
S_OK)
i++;
268
269 This->enumMediaDetails.cMediaTypes =
i;
271 for (
i = 0;
i <
This->enumMediaDetails.cMediaTypes;
i++)
272 {
273 This->enumMediaFunction(
This->basePin,
i,&amt);
275 {
280 }
281 }
282
283 This->currentVersion =
This->mediaVersionFunction(
This->basePin);
285
287}
◆ IEnumMediaTypesImpl_Skip()
Definition at line 237 of file mediatype.c.
238{
240
241 TRACE(
"(%p)->(%u)\n", iface, cMediaTypes);
242
243 if (
This->currentVersion !=
This->mediaVersionFunction(
This->basePin))
245
246 if (
This->uIndex + cMediaTypes < This->enumMediaDetails.cMediaTypes)
247 {
248 This->uIndex += cMediaTypes;
250 }
252}
◆ impl_from_IEnumMediaTypes()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
strmbase |
| ) |
|
◆ IEnumMediaTypesImpl_Vtbl
static const IEnumMediaTypesVtbl IEnumMediaTypesImpl_Vtbl |
|
static |