#include "VFWCapture.h"
#include "Image/ByteImage.h"
#include "Image/ImageProcessor.h"
#include "Helpers/helpers.h"
#include <vfw.h>
#include <wingdi.h>
Go to the source code of this file.
|
| #define | BI_I420 0x30323449 |
| |
| #define | BI_YUY2 0x32595559 |
| |
| #define | myClip(x) (((x) > 255) ? 255 : ((x) < 0) ? 0 : (unsigned char) (x)) |
| |
|
| static void | yuv2rgb (unsigned char y, unsigned char u, unsigned char v, unsigned char *out) |
| |
| static LRESULT CALLBACK | CallbackProc (HWND hWnd, LPVIDEOHDR lpVHdr) |
| |
| #define BI_I420 0x30323449 |
| #define BI_YUY2 0x32595559 |
| #define myClip |
( |
|
x | ) |
(((x) > 255) ? 255 : ((x) < 0) ? 0 : (unsigned char) (x)) |
| static LRESULT CALLBACK CallbackProc |
( |
HWND |
hWnd, |
|
|
LPVIDEOHDR |
lpVHdr |
|
) |
| |
|
static |
| static void yuv2rgb |
( |
unsigned char |
y, |
|
|
unsigned char |
u, |
|
|
unsigned char |
v, |
|
|
unsigned char * |
out |
|
) |
| |
|
inlinestatic |
| CRITICAL_SECTION critical_section |