46{
51 HIC hic;
53
55 input_header = { {
sizeof(
BITMAPINFOHEADER), 32, 1, 1, 8, 0, 32*8, 0, 0, 256, 256},
56 {{255,0,0}, {0,255,0}, {0,0,255}, {255,255,255}}};
57
58 static BYTE input1[32] = {1,2,3,3,3,3,2,3,1};
59 static const BYTE output1[] = {1,1,1,2,4,3,0,3,2,3,1,0,23,0,0,0,0,1};
60
62 ok(hic !=
NULL,
"ICOpen failed\n");
63
67 ok(
info.fccHandler ==
FCC(
'M',
'R',
'L',
'E'),
"fccHandler = %x\n",
info.fccHandler);
70
73 ok(
res ==
ICERR_OK,
"ICSendMessage(ICM_GETDEFAULTQUALITY) failed: %ld\n",
res);
75
80
84
86 ok(output_size == 1064,
"output_size = %d\n", output_size);
87
90
92 res =
ICCompress(hic,
ICCOMPRESS_KEYFRAME,
output_header,
buf, &input_header.header, input1, 0, &
flags, 0, 0, 0,
NULL,
NULL);
96
98
100}
#define FCC(ch0, ch1, ch2, ch3)
static int output_header(const WCHAR *prop, ULONG column_width)
#define HeapFree(x, y, z)
GLenum GLuint GLenum GLsizei const GLchar * buf
static void test_output(const BYTE *output, int out_size, const BYTE *expect, int size)
HIC VFWAPI ICOpen(DWORD fccType, DWORD fccHandler, UINT wMode)
LRESULT VFWAPI ICSendMessage(HIC hic, UINT msg, DWORD_PTR lParam1, DWORD_PTR lParam2)
LRESULT VFWAPI ICGetInfo(HIC hic, ICINFO *picinfo, DWORD cb)
DWORD VFWAPIV ICCompress(HIC hic, DWORD dwFlags, LPBITMAPINFOHEADER lpbiOutput, LPVOID lpData, LPBITMAPINFOHEADER lpbiInput, LPVOID lpBits, LPDWORD lpckid, LPDWORD lpdwFlags, LONG lFrameNum, DWORD dwFrameSize, DWORD dwQuality, LPBITMAPINFOHEADER lpbiPrev, LPVOID lpPrev)
LRESULT WINAPI ICClose(HIC hic)
#define ICCompressGetFormat(hic, lpbiInput, lpbiOutput)
#define ICERR_UNSUPPORTED
#define ICCOMPRESS_KEYFRAME
#define ICM_GETDEFAULTQUALITY
#define ICCompressGetFormatSize(hic, lpbi)