msrle32: Use the same default quality as native.
This commit is contained in:
parent
99ef0d6ff0
commit
1ed45a7416
|
@ -34,7 +34,7 @@
|
||||||
#define IDS_DESCRIPTION 101
|
#define IDS_DESCRIPTION 101
|
||||||
#define IDS_ABOUT 102
|
#define IDS_ABOUT 102
|
||||||
|
|
||||||
#define MSRLE32_DEFAULTQUALITY (75 * ICQUALITY_HIGH) / 100
|
#define MSRLE32_DEFAULTQUALITY (85 * ICQUALITY_HIGH) / 100
|
||||||
|
|
||||||
#define FOURCC_RLE mmioFOURCC('R','L','E',' ')
|
#define FOURCC_RLE mmioFOURCC('R','L','E',' ')
|
||||||
#define FOURCC_RLE4 mmioFOURCC('R','L','E','4')
|
#define FOURCC_RLE4 mmioFOURCC('R','L','E','4')
|
||||||
|
|
|
@ -20,11 +20,13 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <vfw.h>
|
#include <vfw.h>
|
||||||
#include <aviriff.h>
|
#include <aviriff.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
|
|
||||||
static void test_encode(void)
|
static void test_encode(void)
|
||||||
{
|
{
|
||||||
|
DWORD quality;
|
||||||
ICINFO info;
|
ICINFO info;
|
||||||
HIC hic;
|
HIC hic;
|
||||||
LRESULT res;
|
LRESULT res;
|
||||||
|
@ -39,6 +41,11 @@ static void test_encode(void)
|
||||||
todo_wine ok(info.dwFlags == (VIDCF_QUALITY|VIDCF_CRUNCH|VIDCF_TEMPORAL), "dwFlags = %x\n", info.dwFlags);
|
todo_wine ok(info.dwFlags == (VIDCF_QUALITY|VIDCF_CRUNCH|VIDCF_TEMPORAL), "dwFlags = %x\n", info.dwFlags);
|
||||||
ok(info.dwVersionICM == ICVERSION, "dwVersionICM = %d\n", info.dwVersionICM);
|
ok(info.dwVersionICM == ICVERSION, "dwVersionICM = %d\n", info.dwVersionICM);
|
||||||
|
|
||||||
|
quality = 0xdeadbeef;
|
||||||
|
res = ICSendMessage(hic, ICM_GETDEFAULTQUALITY, (DWORD_PTR)&quality, 0);
|
||||||
|
ok(res == ICERR_OK, "ICSendMessage(ICM_GETDEFAULTQUALITY) failed: %ld\n", res);
|
||||||
|
ok(quality == 8500, "quality = %d\n", quality);
|
||||||
|
|
||||||
ICClose(hic);
|
ICClose(hic);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue