YARP  2.3.68+283-20170530.4+git10f9853
Yet Another Robot Platform
VfwGrabber.cpp File Reference
#include <windows.h>
#include <VfwGrabber.h>
#include <stdio.h>
#include <vfw.h>
#include <yarp/sig/Image.h>
+ Include dependency graph for VfwGrabber.cpp:

Go to the source code of this file.

Classes

struct  CvCaptureCAM_VFW
 

Macros

#define HELPER(x)   (*((CvCaptureCAM_VFW *)(x)))
 

Typedefs

typedef yarp::sig::ImageOf< yarp::sig::PixelBgrImage
 
typedef struct CvCaptureCAM_VFW CvCaptureCAM_VFW
 

Functions

static LRESULT PASCAL FrameCallbackProc (HWND hWnd, VIDEOHDR *hdr)
 
static int icvOpenCAM_VFW (CvCaptureCAM_VFW *capture, int wIndex)
 
static void icvCloseCAM_VFW (CvCaptureCAM_VFW *capture)
 
static int icvGrabFrameCAM_VFW (CvCaptureCAM_VFW *capture)
 
static BITMAPINFOHEADER icvBitmapHeader (int width, int height, int bpp, int compression=BI_RGB)
 
static ImageicvRetrieveFrameCAM_VFW (CvCaptureCAM_VFW *capture)
 

Macro Definition Documentation

◆ HELPER

#define HELPER (   x)    (*((CvCaptureCAM_VFW *)(x)))

Definition at line 274 of file VfwGrabber.cpp.

Typedef Documentation

◆ CvCaptureCAM_VFW

◆ Image

Examples:
imagemagick/main.cpp.

Definition at line 74 of file VfwGrabber.cpp.

Function Documentation

◆ FrameCallbackProc()

static LRESULT PASCAL FrameCallbackProc ( HWND  hWnd,
VIDEOHDR hdr 
)
static

Definition at line 88 of file VfwGrabber.cpp.

◆ icvBitmapHeader()

static BITMAPINFOHEADER icvBitmapHeader ( int  width,
int  height,
int  bpp,
int  compression = BI_RGB 
)
static

Definition at line 189 of file VfwGrabber.cpp.

◆ icvCloseCAM_VFW()

static void icvCloseCAM_VFW ( CvCaptureCAM_VFW capture)
static

Definition at line 157 of file VfwGrabber.cpp.

◆ icvGrabFrameCAM_VFW()

static int icvGrabFrameCAM_VFW ( CvCaptureCAM_VFW capture)
static

Definition at line 178 of file VfwGrabber.cpp.

◆ icvOpenCAM_VFW()

static int icvOpenCAM_VFW ( CvCaptureCAM_VFW capture,
int  wIndex 
)
static

Definition at line 107 of file VfwGrabber.cpp.

◆ icvRetrieveFrameCAM_VFW()

static Image* icvRetrieveFrameCAM_VFW ( CvCaptureCAM_VFW capture)
static

Definition at line 203 of file VfwGrabber.cpp.