ReactOS 0.4.17-dev-806-gffa4164
getframe.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "vfw.h"
#include "avifile_private.h"
#include "wine/debug.h"
Include dependency graph for getframe.c:

Go to the source code of this file.

Classes

struct  _IGetFrameImpl
 

Typedefs

typedef struct _IGetFrameImpl IGetFrameImpl
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (avifile)
 
static IGetFrameImplimpl_from_IGetFrame (IGetFrame *iface)
 
static void AVIFILE_CloseCompressor (IGetFrameImpl *This)
 
static HRESULT WINAPI IGetFrame_fnQueryInterface (IGetFrame *iface, REFIID refiid, LPVOID *obj)
 
static ULONG WINAPI IGetFrame_fnAddRef (IGetFrame *iface)
 
static ULONG WINAPI IGetFrame_fnRelease (IGetFrame *iface)
 
static LPVOID WINAPI IGetFrame_fnGetFrame (IGetFrame *iface, LONG lPos)
 
static HRESULT WINAPI IGetFrame_fnBegin (IGetFrame *iface, LONG lStart, LONG lEnd, LONG lRate)
 
static HRESULT WINAPI IGetFrame_fnEnd (IGetFrame *iface)
 
static HRESULT WINAPI IGetFrame_fnSetFormat (IGetFrame *iface, LPBITMAPINFOHEADER lpbiWanted, LPVOID lpBits, INT x, INT y, INT dx, INT dy)
 
PGETFRAME AVIFILE_CreateGetFrame (PAVISTREAM pStream)
 

Variables

static const struct IGetFrameVtbl igetframeVtbl
 

Typedef Documentation

◆ IGetFrameImpl

Function Documentation

◆ AVIFILE_CloseCompressor()

static void AVIFILE_CloseCompressor ( IGetFrameImpl This)
static

Definition at line 77 of file getframe.c.

78{
79 if (This->lpInFormat != This->lpOutFormat) {
80 free(This->lpOutFormat);
81 This->lpOutFormat = NULL;
82 }
83 free(This->lpInFormat);
84 This->lpInFormat = NULL;
85 if (This->hic != NULL) {
86 if (This->bResize)
88 else
90 ICClose(This->hic);
91 This->hic = NULL;
92 }
93}
#define free
Definition: debug_ros.c:5
#define NULL
Definition: types.h:112
LRESULT WINAPI ICClose(HIC hic)
#define ICDecompressExEnd(hic)
Definition: vfw.h:522
#define ICDecompressEnd(hic)
Definition: vfw.h:404

Referenced by IGetFrame_fnGetFrame(), IGetFrame_fnRelease(), and IGetFrame_fnSetFormat().

◆ AVIFILE_CreateGetFrame()

PGETFRAME AVIFILE_CreateGetFrame ( PAVISTREAM  pStream)

Definition at line 488 of file getframe.c.

489{
490 IGetFrameImpl *pg;
491
492 /* check parameter */
493 if (pStream == NULL)
494 return NULL;
495
496 pg = calloc(1, sizeof(IGetFrameImpl));
497 if (pg != NULL) {
498 pg->IGetFrame_iface.lpVtbl = &igetframeVtbl;
499 pg->ref = 1;
500 pg->lCurrentFrame = -1;
501 pg->pStream = pStream;
502 IAVIStream_AddRef(pStream);
503 }
504
505 return &pg->IGetFrame_iface;
506}
static const struct IGetFrameVtbl igetframeVtbl
Definition: getframe.c:478
#define calloc
Definition: rosglue.h:14
IGetFrame IGetFrame_iface
Definition: getframe.c:42
LONG lCurrentFrame
Definition: getframe.c:54
PAVISTREAM pStream
Definition: getframe.c:47
#define IAVIStream_AddRef(p)
Definition: vfw.h:1176

Referenced by AVIStreamGetFrameOpen().

◆ IGetFrame_fnAddRef()

static ULONG WINAPI IGetFrame_fnAddRef ( IGetFrame *  iface)
static

Definition at line 112 of file getframe.c.

113{
116
117 TRACE("(%p)\n", iface);
118
119 return ref;
120}
#define InterlockedIncrement
Definition: armddk.h:53
static IGetFrameImpl * impl_from_IGetFrame(IGetFrame *iface)
Definition: getframe.c:72
#define TRACE(s)
Definition: solgame.cpp:4
Definition: send.c:48
uint32_t ULONG
Definition: typedefs.h:59

◆ IGetFrame_fnBegin()

static HRESULT WINAPI IGetFrame_fnBegin ( IGetFrame *  iface,
LONG  lStart,
LONG  lEnd,
LONG  lRate 
)
static

Definition at line 262 of file getframe.c.

264{
266
267 TRACE("(%p,%ld,%ld,%ld)\n", iface, lStart, lEnd, lRate);
268
269 This->bFixedStream = TRUE;
270
271 return (IGetFrame_GetFrame(iface, lStart) ? AVIERR_OK : AVIERR_ERROR);
272}
#define TRUE
Definition: types.h:120
#define AVIERR_ERROR
Definition: vfw.h:1761
#define IGetFrame_GetFrame(p, a)
Definition: vfw.h:1721
#define AVIERR_OK
Definition: vfw.h:1740

◆ IGetFrame_fnEnd()

static HRESULT WINAPI IGetFrame_fnEnd ( IGetFrame *  iface)
static

Definition at line 274 of file getframe.c.

275{
277
278 TRACE("(%p)\n", iface);
279
280 This->bFixedStream = FALSE;
281
282 return AVIERR_OK;
283}
#define FALSE
Definition: types.h:117

◆ IGetFrame_fnGetFrame()

static LPVOID WINAPI IGetFrame_fnGetFrame ( IGetFrame *  iface,
LONG  lPos 
)
static

Definition at line 142 of file getframe.c.

143{
145
146 LONG readBytes;
147 LONG readSamples;
148
149 TRACE("(%p,%ld)\n", iface, lPos);
150
151 /* We don't want negative start values! -- marks invalid buffer content */
152 if (lPos < 0)
153 return NULL;
154
155 /* check state */
156 if (This->pStream == NULL)
157 return NULL;
158 if (This->lpInFormat == NULL)
159 return NULL;
160
161 /* Could stream have changed? */
162 if (! This->bFixedStream) {
163 AVISTREAMINFOW sInfo;
164
165 IAVIStream_Info(This->pStream, &sInfo, sizeof(sInfo));
166
167 if (sInfo.dwEditCount != This->dwEditCount) {
168 This->dwEditCount = sInfo.dwEditCount;
169 This->lCurrentFrame = -1;
170 }
171
172 if (sInfo.dwFormatChangeCount != This->dwFormatChangeCount) {
173 /* stream has changed */
174 if (This->lpOutFormat != NULL) {
176
177 bi = *This->lpOutFormat;
179
180 if (FAILED(IGetFrame_SetFormat(iface, &bi, NULL, 0, 0, -1, -1))) {
181 if (FAILED(IGetFrame_SetFormat(iface, NULL, NULL, 0, 0, -1, -1)))
182 return NULL;
183 }
184 } else if (FAILED(IGetFrame_SetFormat(iface, NULL, NULL, 0, 0, -1, -1)))
185 return NULL;
186 }
187 }
188
189 if (lPos != This->lCurrentFrame) {
190 LONG lNext = IAVIStream_FindSample(This->pStream,lPos,FIND_KEY|FIND_PREV);
191
192 if (lNext == -1)
193 return NULL; /* frame doesn't exist */
194 if (lNext <= This->lCurrentFrame && This->lCurrentFrame < lPos)
195 lNext = This->lCurrentFrame + 1;
196
197 for (; lNext <= lPos; lNext++) {
198 /* new format for this frame? */
199 if (This->bFormatChanges) {
200 IAVIStream_ReadFormat(This->pStream, lNext,
201 This->lpInFormat, &This->cbInFormat);
202 if (This->lpOutFormat != NULL) {
203 if (This->lpOutFormat->biBitCount <= 8)
204 ICDecompressGetPalette(This->hic, This->lpInFormat,
205 This->lpOutFormat);
206 }
207 }
208
209 /* read input frame */
210 while (FAILED(AVIStreamRead(This->pStream, lNext, 1, This->lpInBuffer,
211 This->cbInBuffer, &readBytes, &readSamples))) {
212 /* not enough memory for input buffer? */
213 readBytes = 0;
214 if (FAILED(AVIStreamSampleSize(This->pStream, lNext, &readBytes)))
215 return NULL; /* bad thing, but bad things will happen */
216 if (readBytes <= 0) {
217 ERR(": IAVIStream::Read doesn't return needed bytes!\n");
218 return NULL;
219 }
220
221 /* IAVIStream::Read failed because of other reasons not buffersize? */
222 if (This->cbInBuffer >= readBytes)
223 break;
224 This->cbInBuffer = This->cbInFormat + readBytes;
225 This->lpInFormat = realloc(This->lpInFormat, This->cbInBuffer);
226 if (This->lpInFormat == NULL)
227 return NULL; /* out of memory */
228 This->lpInBuffer = (BYTE*)This->lpInFormat + This->cbInFormat;
229 }
230
231 if (readSamples != 1) {
232 ERR(": no frames read\n");
233 return NULL;
234 }
235 if (readBytes != 0) {
236 This->lpInFormat->biSizeImage = readBytes;
237
238 /* nothing to decompress? */
239 if (This->hic == NULL) {
240 This->lCurrentFrame = lPos;
241 return This->lpInFormat;
242 }
243
244 if (This->bResize) {
245 ICDecompressEx(This->hic,0,This->lpInFormat,This->lpInBuffer,0,0,
246 This->lpInFormat->biWidth,This->lpInFormat->biHeight,
247 This->lpOutFormat,This->lpOutBuffer,This->x,This->y,
248 This->dx,This->dy);
249 } else {
250 ICDecompress(This->hic, 0, This->lpInFormat, This->lpInBuffer,
251 This->lpOutFormat, This->lpOutBuffer);
252 }
253 }
254 } /* for (lNext < lPos) */
255 } /* if (This->lCurrentFrame != lPos) */
256
257 This->lCurrentFrame = lPos;
258
259 return (This->hic == NULL ? This->lpInFormat : This->lpOutFormat);
260}
#define ERR(fmt,...)
Definition: precomp.h:57
#define realloc
Definition: debug_ros.c:6
HRESULT WINAPI AVIStreamRead(PAVISTREAM pstream, LONG start, LONG samples, LPVOID buffer, LONG buffersize, LPLONG bytesread, LPLONG samplesread)
Definition: api.c:577
static void AVIFILE_CloseCompressor(IGetFrameImpl *This)
Definition: getframe.c:77
#define FAILED(hr)
Definition: intsafe.h:51
DWORD VFWAPIV ICDecompress(HIC hic, DWORD dwFlags, LPBITMAPINFOHEADER lpbiFormat, LPVOID lpData, LPBITMAPINFOHEADER lpbi, LPVOID lpBits)
Definition: msvideo_main.c:827
long LONG
Definition: pedump.c:60
DWORD dwEditCount
Definition: avifil32.idl:44
DWORD dwFormatChangeCount
Definition: avifil32.idl:45
static LRESULT VFWAPI ICDecompressEx(_In_ HIC hic, _In_ DWORD dwFlags, _In_ LPBITMAPINFOHEADER lpbiSrc, _In_reads_bytes_(lpbiSrc->biSizeImage) LPVOID lpSrc, _In_ int xSrc, _In_ int ySrc, _In_ int dxSrc, _In_ int dySrc, _In_ LPBITMAPINFOHEADER lpbiDst, _Out_writes_bytes_(lpbiDst->biSizeImage) LPVOID lpDst, _In_ int xDst, _In_ int yDst, _In_ int dxDst, _In_ int dyDst)
Definition: vfw.h:417
#define ICDecompressGetPalette(hic, lpbiInput, lpbiOutput)
Definition: vfw.h:392
#define IGetFrame_SetFormat(p, a, b, c, d, e, f)
Definition: vfw.h:1724
#define FIND_PREV
Definition: vfw.h:1119
#define AVIStreamSampleSize(pavi, pos, psize)
Definition: vfw.h:1440
#define IAVIStream_ReadFormat(p, a, b, c)
Definition: vfw.h:1182
#define FIND_KEY
Definition: vfw.h:1123
#define IAVIStream_Info(p, a, b)
Definition: vfw.h:1180
#define IAVIStream_FindSample(p, a, b)
Definition: vfw.h:1181
unsigned char BYTE
Definition: xxhash.c:193

◆ IGetFrame_fnQueryInterface()

static HRESULT WINAPI IGetFrame_fnQueryInterface ( IGetFrame *  iface,
REFIID  refiid,
LPVOID obj 
)
static

Definition at line 95 of file getframe.c.

97{
99
100 TRACE("(%p,%s,%p)\n", This, debugstr_guid(refiid), obj);
101
102 if (IsEqualGUID(&IID_IUnknown, refiid) ||
103 IsEqualGUID(&IID_IGetFrame, refiid)) {
104 *obj = iface;
105 IGetFrame_AddRef(iface);
106 return S_OK;
107 }
108
109 return OLE_E_ENUM_NOMORE;
110}
const GUID IID_IUnknown
#define S_OK
Definition: intsafe.h:52
#define debugstr_guid
Definition: kernel32.h:35
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define IGetFrame_AddRef(p)
Definition: vfw.h:1718
#define OLE_E_ENUM_NOMORE
Definition: winerror.h:3727

◆ IGetFrame_fnRelease()

static ULONG WINAPI IGetFrame_fnRelease ( IGetFrame *  iface)
static

Definition at line 122 of file getframe.c.

123{
126
127 TRACE("(%p)\n", iface);
128
129 if (!ref) {
131 if (This->pStream != NULL) {
132 IAVIStream_Release(This->pStream);
133 This->pStream = NULL;
134 }
135
136 free(iface);
137 }
138
139 return ref;
140}
#define InterlockedDecrement
Definition: armddk.h:52
#define IAVIStream_Release(p)
Definition: vfw.h:1177

◆ IGetFrame_fnSetFormat()

static HRESULT WINAPI IGetFrame_fnSetFormat ( IGetFrame *  iface,
LPBITMAPINFOHEADER  lpbiWanted,
LPVOID  lpBits,
INT  x,
INT  y,
INT  dx,
INT  dy 
)
static

Definition at line 285 of file getframe.c.

289{
291
292 AVISTREAMINFOW sInfo;
293 LPBITMAPINFOHEADER lpbi = lpbiWanted;
294 BOOL bBestDisplay = FALSE;
295
296 TRACE("(%p,%p,%p,%d,%d,%d,%d)\n", iface, lpbiWanted, lpBits,
297 x, y, dx, dy);
298
299 if (This->pStream == NULL)
300 return AVIERR_ERROR;
301
303 lpbi = NULL;
304 bBestDisplay = TRUE;
305 }
306
307 IAVIStream_Info(This->pStream, &sInfo, sizeof(sInfo));
308 if (sInfo.fccType != streamtypeVIDEO)
309 return AVIERR_UNSUPPORTED;
310
311 This->bFormatChanges = (sInfo.dwFlags & AVISTREAMINFO_FORMATCHANGES) != 0;
312 This->dwFormatChangeCount = sInfo.dwFormatChangeCount;
313 This->dwEditCount = sInfo.dwEditCount;
314 This->lCurrentFrame = -1;
315
316 /* get input format from stream */
317 if (This->lpInFormat == NULL) {
318 HRESULT hr;
319
320 This->cbInBuffer = (LONG)sInfo.dwSuggestedBufferSize;
321 if (This->cbInBuffer == 0)
322 This->cbInBuffer = 1024;
323
324 IAVIStream_ReadFormat(This->pStream, sInfo.dwStart,
325 NULL, &This->cbInFormat);
326
327 This->lpInFormat = malloc(This->cbInFormat + This->cbInBuffer);
328 if (This->lpInFormat == NULL) {
330 return AVIERR_MEMORY;
331 }
332
333 hr = IAVIStream_ReadFormat(This->pStream, sInfo.dwStart, This->lpInFormat, &This->cbInFormat);
334 if (FAILED(hr)) {
336 return hr;
337 }
338
339 This->lpInBuffer = ((LPBYTE)This->lpInFormat) + This->cbInFormat;
340 }
341
342 /* check input format */
343 if (This->lpInFormat->biClrUsed == 0 && This->lpInFormat->biBitCount <= 8)
344 This->lpInFormat->biClrUsed = 1u << This->lpInFormat->biBitCount;
345 if (This->lpInFormat->biSizeImage == 0 &&
346 This->lpInFormat->biCompression == BI_RGB) {
347 This->lpInFormat->biSizeImage =
348 DIBWIDTHBYTES(*This->lpInFormat) * This->lpInFormat->biHeight;
349 }
350
351 /* only to pass through? */
352 if (This->lpInFormat->biCompression == BI_RGB && lpBits == NULL) {
353 if (lpbi == NULL ||
354 (lpbi->biCompression == BI_RGB &&
355 lpbi->biWidth == This->lpInFormat->biWidth &&
356 lpbi->biHeight == This->lpInFormat->biHeight &&
357 lpbi->biBitCount == This->lpInFormat->biBitCount)) {
358 This->lpOutFormat = This->lpInFormat;
359 This->lpOutBuffer = DIBPTR(This->lpInFormat);
360 return AVIERR_OK;
361 }
362 }
363
364 /* need memory for output format? */
365 if (This->lpOutFormat == NULL) {
366 This->lpOutFormat = malloc(sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD));
367 if (This->lpOutFormat == NULL) {
369 return AVIERR_MEMORY;
370 }
371 }
372
373 /* need handle to video compressor */
374 if (This->hic == NULL) {
375 FOURCC fccHandler;
376
377 if (This->lpInFormat->biCompression == BI_RGB)
378 fccHandler = comptypeDIB;
379 else if (This->lpInFormat->biCompression == BI_RLE8)
380 fccHandler = mmioFOURCC('R','L','E',' ');
381 else
382 fccHandler = sInfo.fccHandler;
383
384 if (lpbi != NULL) {
385 if (lpbi->biWidth == 0)
386 lpbi->biWidth = This->lpInFormat->biWidth;
387 if (lpbi->biHeight == 0)
388 lpbi->biHeight = This->lpInFormat->biHeight;
389 }
390
391 This->hic = ICLocate(ICTYPE_VIDEO, fccHandler, This->lpInFormat, lpbi, ICMODE_DECOMPRESS);
392 if (This->hic == NULL) {
394 return AVIERR_NOCOMPRESSOR;
395 }
396 }
397
398 /* output format given? */
399 if (lpbi != NULL) {
400 /* check the given output format ... */
401 if (lpbi->biClrUsed == 0 && lpbi->biBitCount <= 8)
402 lpbi->biClrUsed = 1u << lpbi->biBitCount;
403
404 /* ... and remember it */
405 memcpy(This->lpOutFormat, lpbi,
406 lpbi->biSize + lpbi->biClrUsed * sizeof(RGBQUAD));
407 if (lpbi->biBitCount <= 8)
408 ICDecompressGetPalette(This->hic, This->lpInFormat, This->lpOutFormat);
409 } else {
410 if (bBestDisplay) {
411 ICGetDisplayFormat(This->hic, This->lpInFormat,
412 This->lpOutFormat, 0, dx, dy);
413 } else if (ICDecompressGetFormat(This->hic, This->lpInFormat,
414 This->lpOutFormat) < 0) {
416 return AVIERR_NOCOMPRESSOR;
417 }
418 }
419
420 /* check output format */
421 if (This->lpOutFormat->biClrUsed == 0 &&
422 This->lpOutFormat->biBitCount <= 8)
423 This->lpOutFormat->biClrUsed = 1u << This->lpOutFormat->biBitCount;
424 if (This->lpOutFormat->biSizeImage == 0 &&
425 This->lpOutFormat->biCompression == BI_RGB) {
426 This->lpOutFormat->biSizeImage =
427 DIBWIDTHBYTES(*This->lpOutFormat) * This->lpOutFormat->biHeight;
428 }
429
430 if (lpBits == NULL) {
431 DWORD size = This->lpOutFormat->biClrUsed * sizeof(RGBQUAD);
432
433 size += This->lpOutFormat->biSize + This->lpOutFormat->biSizeImage;
434 This->lpOutFormat = realloc(This->lpOutFormat, size);
435 if (This->lpOutFormat == NULL) {
437 return AVIERR_MEMORY;
438 }
439 This->lpOutBuffer = DIBPTR(This->lpOutFormat);
440 } else
441 This->lpOutBuffer = lpBits;
442
443 /* for user size was irrelevant */
444 if (dx == -1)
445 dx = This->lpOutFormat->biWidth;
446 if (dy == -1)
447 dy = This->lpOutFormat->biHeight;
448
449 /* need to resize? */
450 if (x != 0 || y != 0) {
451 if (dy == This->lpOutFormat->biHeight &&
452 dx == This->lpOutFormat->biWidth)
453 This->bResize = FALSE;
454 else
455 This->bResize = TRUE;
456 }
457
458 if (This->bResize) {
459 This->x = x;
460 This->y = y;
461 This->dx = dx;
462 This->dy = dy;
463
464 if (ICDecompressExBegin(This->hic,0,This->lpInFormat,This->lpInBuffer,0,
465 0,This->lpInFormat->biWidth,
466 This->lpInFormat->biHeight,This->lpOutFormat,
467 This->lpOutBuffer, x, y, dx, dy) == ICERR_OK)
468 return AVIERR_OK;
469 } else if (ICDecompressBegin(This->hic, This->lpInFormat,
470 This->lpOutFormat) == ICERR_OK)
471 return AVIERR_OK;
472
474
475 return AVIERR_COMPRESSOR;
476}
#define DIBPTR(lp)
#define DIBWIDTHBYTES(bi)
#define streamtypeVIDEO
Definition: aviriff.h:92
#define malloc
Definition: debug_ros.c:4
HRESULT hr
Definition: delayimp.cpp:582
DWORD FOURCC
Definition: dmdls.h:25
ULONG RGBQUAD
Definition: precomp.h:47
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLsizeiptr size
Definition: glext.h:5919
GLint dy
Definition: linetemp.h:97
if(dx< 0)
Definition: linetemp.h:194
GLint dx
Definition: linetemp.h:97
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define ICTYPE_VIDEO
Definition: mmreg.h:531
#define mmioFOURCC(c0, c1, c2, c3)
Definition: mmsystem.h:38
HIC VFWAPI ICLocate(DWORD type, DWORD handler, BITMAPINFOHEADER *in, BITMAPINFOHEADER *out, WORD mode)
Definition: msvideo_main.c:633
HIC VFWAPI ICGetDisplayFormat(HIC hic, BITMAPINFOHEADER *in, BITMAPINFOHEADER *out, int depth, int width, int height)
Definition: msvideo_main.c:699
DWORD biCompression
Definition: amvideo.idl:35
DWORD dwSuggestedBufferSize
Definition: avifil32.idl:40
DWORD fccHandler
Definition: avifil32.idl:30
unsigned char * LPBYTE
Definition: typedefs.h:53
#define BI_RGB
Definition: uefivid.c:46
#define comptypeDIB
Definition: vfw.h:147
#define ICMODE_DECOMPRESS
Definition: vfw.h:269
#define AVIERR_NOCOMPRESSOR
Definition: vfw.h:1755
#define AVISTREAMINFO_FORMATCHANGES
Definition: vfw.h:1049
#define AVIERR_UNSUPPORTED
Definition: vfw.h:1743
#define ICERR_OK
Definition: vfw.h:50
#define ICDecompressBegin(hic, lpbiInput, lpbiOutput)
Definition: vfw.h:371
#define AVIGETFRAMEF_BESTDISPLAYFMT
Definition: vfw.h:1001
#define ICDecompressGetFormat(hic, lpbiInput, lpbiOutput)
Definition: vfw.h:383
static LRESULT VFWAPI ICDecompressExBegin(_In_ HIC hic, _In_ DWORD dwFlags, _In_ LPBITMAPINFOHEADER lpbiSrc, _In_opt_ LPVOID lpSrc, _In_ int xSrc, _In_ int ySrc, _In_ int dxSrc, _In_ int dySrc, _In_ LPBITMAPINFOHEADER lpbiDst, _Out_opt_ LPVOID lpDst, _In_ int xDst, _In_ int yDst, _In_ int dxDst, _In_ int dyDst)
Definition: vfw.h:453
#define AVIERR_COMPRESSOR
Definition: vfw.h:1754
#define AVIERR_MEMORY
Definition: vfw.h:1745
#define BI_RLE8
Definition: wingdi.h:35

◆ impl_from_IGetFrame()

static IGetFrameImpl * impl_from_IGetFrame ( IGetFrame *  iface)
inlinestatic

Definition at line 72 of file getframe.c.

73{
74 return CONTAINING_RECORD(iface, IGetFrameImpl, IGetFrame_iface);
75}
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260

Referenced by IGetFrame_fnAddRef(), IGetFrame_fnBegin(), IGetFrame_fnEnd(), IGetFrame_fnGetFrame(), IGetFrame_fnQueryInterface(), IGetFrame_fnRelease(), and IGetFrame_fnSetFormat().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( avifile  )

Variable Documentation

◆ igetframeVtbl

const struct IGetFrameVtbl igetframeVtbl
static
Initial value:
= {
}
static HRESULT WINAPI IGetFrame_fnBegin(IGetFrame *iface, LONG lStart, LONG lEnd, LONG lRate)
Definition: getframe.c:262
static ULONG WINAPI IGetFrame_fnAddRef(IGetFrame *iface)
Definition: getframe.c:112
static HRESULT WINAPI IGetFrame_fnEnd(IGetFrame *iface)
Definition: getframe.c:274
static ULONG WINAPI IGetFrame_fnRelease(IGetFrame *iface)
Definition: getframe.c:122
static HRESULT WINAPI IGetFrame_fnQueryInterface(IGetFrame *iface, REFIID refiid, LPVOID *obj)
Definition: getframe.c:95
static LPVOID WINAPI IGetFrame_fnGetFrame(IGetFrame *iface, LONG lPos)
Definition: getframe.c:142
static HRESULT WINAPI IGetFrame_fnSetFormat(IGetFrame *iface, LPBITMAPINFOHEADER lpbiWanted, LPVOID lpBits, INT x, INT y, INT dx, INT dy)
Definition: getframe.c:285

Definition at line 478 of file getframe.c.

Referenced by AVIFILE_CreateGetFrame().