Jacek Caban : msrle32: Use the same default quality as native.

Alexandre Julliard julliard at winehq.org
Thu Jan 2 13:13:48 CST 2014


Module: wine
Branch: master
Commit: 1ed45a7416bd377d854c62b8f62c07ae9490c42d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1ed45a7416bd377d854c62b8f62c07ae9490c42d

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Jan  2 14:16:20 2014 +0100

msrle32: Use the same default quality as native.

---

 dlls/msrle32/msrle_private.h |    2 +-
 dlls/msrle32/tests/msrle.c   |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/dlls/msrle32/msrle_private.h b/dlls/msrle32/msrle_private.h
index bf2aed0..1ff6cbe 100644
--- a/dlls/msrle32/msrle_private.h
+++ b/dlls/msrle32/msrle_private.h
@@ -34,7 +34,7 @@
 #define IDS_DESCRIPTION 101
 #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_RLE4  mmioFOURCC('R','L','E','4')
diff --git a/dlls/msrle32/tests/msrle.c b/dlls/msrle32/tests/msrle.c
index 04cf64f..819cb34 100644
--- a/dlls/msrle32/tests/msrle.c
+++ b/dlls/msrle32/tests/msrle.c
@@ -20,11 +20,13 @@
 #include <windows.h>
 #include <vfw.h>
 #include <aviriff.h>
+#include <stdio.h>
 
 #include "wine/test.h"
 
 static void test_encode(void)
 {
+    DWORD quality;
     ICINFO info;
     HIC hic;
     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);
     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);
 }
 




More information about the wine-cvs mailing list