[FFmpeg-devel] [PATCH] VFW capture support

Víctor Paesa wzrlpy
Mon Mar 3 10:58:54 CET 2008


Hi,

M?ns Rullg?rd said:
> Ramiro Polla <ramiro at lisha.ufsc.br> writes:
[...]

>> #include "avformat.h"
>> #include <vfw.h>
>> #include <windows.h>
>>
>> /* Defines for VFW missing from MinGW.
>>  * Remove this when MinGW incorporates them. */
>> #define WM_CAP_START                (0x0400)
>> #define WM_CAP_SET_CALLBACK_FRAME   (WM_CAP_START + 5)
>> #define WM_CAP_GET_USER_DATA        (WM_CAP_START + 8)
>> #define WM_CAP_SET_USER_DATA        (WM_CAP_START + 9)
>> #define WM_CAP_DRIVER_CONNECT       (WM_CAP_START + 10)
>> #define WM_CAP_DRIVER_DISCONNECT    (WM_CAP_START + 11)
>> #define WM_CAP_GRAB_FRAME           (WM_CAP_START + 60)
>> #define WM_CAP_GET_VIDEOFORMAT      (WM_CAP_START + 44)
>> #define WM_CAP_SET_PREVIEW          (WM_CAP_START + 50)
>> #define WM_CAP_SET_OVERLAY          (WM_CAP_START + 51)
>>
>> #define HWND_MESSAGE                ((HWND)-3)
>>
>> typedef struct videohdr_tag {
>>     LPBYTE      lpData;
>>     DWORD       dwBufferLength;
>>     DWORD       dwBytesUsed;
>>     DWORD       dwTimeCaptured;
>>     DWORD       dwUser;
>>     DWORD       dwFlags;
>>     DWORD_PTR   dwReserved[4];
>> } VIDEOHDR, NEAR *PVIDEOHDR, FAR * LPVIDEOHDR;
>> /* End of missing MinGW defines */
>
> Does cygwin have these?

Same situation on Cygwin, they are not defined in the vfw.h from the
latest (3.11-1) w32api package.

Regards,
V?ctor






More information about the ffmpeg-devel mailing list