Re: winmm: Change default driver order to be alsa,coreaudio,oss - try2

2007-08-19 Thread Maarten Lankhorst
Vitaliy Margolen schreef: > Isn't this a bit premature? ALSA still does not support proper sound > capture, working mixer, and not stable enough on some configurations. Mixer works properly, as you saw for yourself. Only thing that is different is just that the alsa accelerated capture code is new

Re: Greek resource file for comctl final

2007-08-18 Thread Maarten Lankhorst
Dj Apal [GR] schreef: > > OK changed the copyright and added the diff file for the rsrc.rc file > so as to be included. > > Thnx for noticing that! > > I think that we are OK now. Sorry for all this mess but it was my > first time posting a patch! Just curious, are files supposed to have dos line t

Re: [PATCH 3/6] winealsa: Implement IDsCaptureDriverImpl_Open

2007-08-17 Thread Maarten Lankhorst
Hi Tomas, Tomas Carnecky schreef: > Is alloca() not allowed in wine? (asking because you allocate hw_params > on the stack, but it's freed if the function exits, so it's only used > inside this one function). > Last time I tried using alloca in alsa volume control it was rejected, so I'm just w

Re: dsound: Use wine dxguid rather then mingw dxguid

2007-08-16 Thread Maarten Lankhorst
Roderick Colenbrander schreef: > On Thursday 16 August 2007 12:06, Maarten Lankhorst wrote: > >> Makes it cross-compilable to produce a windows binary. >> > I don't think this is the right way. It appears that native dxguid doesn't > define some

Re: Poll: where do you have certs installed?

2007-08-15 Thread Maarten Lankhorst
Juan Lang schreef: > Could some of you check where you have, say, OpenSSL's CA certificates > installed, and email me what distro you're running, and the path? > > E.g., I'm running Goobuntu, and I have them installed in > /etc/ssl/certs/ca-certificates.crt. > > Thanks, > --Juan > Seems same for

Re: AMD64 package broken on Ubuntu Gutsy

2007-08-15 Thread Maarten Lankhorst
Scott Ritchie schreef: > The Wine package in Ubuntu Gutsy is currently failing to build on the > AMD 64 arch, and I'm not sure why. I don't have a gutsy 64 system to > play around with at the moment, but you can see the package error log > here: > > http://launchpadlibrarian.net/8598218/buildlog_u

Re: dpnlobby.dll implementation

2007-07-31 Thread Maarten Lankhorst
Luis C. Busquets Pérez schreef: > File that just forwards one function included for compatibility issues Hi, I think you're missing a few files here, are you sure you've added the files from dlls/dpnlobby? Cheers, Maarten

Re: winealsa/dsound: Testers asked for capture patch

2007-07-08 Thread Maarten Lankhorst
As I don't have that game, can you e-mail me a WINEDEBUG=+wave,+dsound log? The problem is probably somewhere else then. There should probably be a small performance hit, but nothing to the extent that currently happens.

winealsa/dsound: Testers asked for capture patch

2007-07-04 Thread Maarten Lankhorst
>From 7593fcf19ba306d0024048e7a49e87b7c8d5c318 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst <[EMAIL PROTECTED]> Date: Thu, 5 Jul 2007 00:41:59 +0200 Subject: [PATCH] winealsa: Increase performance of wavein getposition --- dlls/winealsa.drv/wavein.c | 12 +++- 1 files changed, 3 in

dsound: Disable property sets if hardware doesn't support it

2007-07-04 Thread Maarten Lankhorst
2007/7/4, Robert Reif <[EMAIL PROTECTED]>: This patch: http://www.winehq.org/pipermail/wine-patches/2007-June/039942.html causes RightMark3DSound.exe (http://audio.rightmark.org/products/rm3ds.shtml) to crash. It appears that the code always expects a property set interface to succeed and crashe

Re: winealsa.drv: Tell the user how big his period size is.

2007-07-03 Thread Maarten Lankhorst
I would rather have that it's only reported in case of period size = 1024 (default dmix) and as a WARN that says 'use 512' instead, since dmix apparantly doesn't always work well with 256 after all on my other pc. Maarten

Re: The: "Wine Status - ChangeLog"

2007-06-29 Thread Maarten Lankhorst
[EMAIL PROTECTED] schreef: > This page has been dead since October 1. > > Since I'm not producing code for the Wine project, this is an area I'd like to > contribute to. (I'm already taking screenshots of the API status page to see > what happens from release to release :)) > > Is there some WineHQ

Re: Problem with patch "dsound: Simplify mixing by removing remixing support, and fix its waveout breakage"

2007-06-27 Thread Maarten Lankhorst
Chris Rankin schreef: > Hi, > > This patch has killed the sound on World of Warcraft. Instead, I now get > silence and a stream of > errors like this: > Don't #if 0 out the code there Change it to something like this: if (pmix > This->buflen) WARN("Mixing further ahead then buffer is long\n")

Re: winealsa.drv: Fix missing unlock on the error path. Found by Smatch.

2007-06-22 Thread Maarten Lankhorst
That fix is correct, This->pcm is only ever changed inside the critical section Thanks, Maarten 2007/6/22, Michael Stefaniuc <[EMAIL PROTECTED]>: > Maarten, > > is this the right fix or can the lock be moved below the > if (!This->pcm) > check? > > bye > michael > --- > dlls/wineals

Re: Failing assertion in dsound test, please confirm

2007-06-22 Thread Maarten Lankhorst
Alex Villací­s Lasso schreef: > I am experiencing a failing assertion in a dsound test. Could you > please confirm if it is just me (and then it would be a configuration > issue), or if anybody else is experiencing failing assertions: Confirmed, I' ll take a closer look at it. Maarten

CryptAcquireContext can have multiple flags defined at the same time, V2

2007-06-11 Thread Maarten Lankhorst
Hello, After retrying, I tried the same function arguments that msn messenger 7.5 passes to advapi32. It seems that function _is_ allowed to define the flags CRYPT_NEWKEYSET and CRYPT_VERIFYCONTEXT at the same time. I tried the same flags for advapi32 crosstest 'crypt' in linux and windows. Linu

Re: Happy SOC'ing all.

2007-05-28 Thread Maarten Lankhorst
John Klehm schreef: > Hey Maarten and all, > > Good idea about publishing the changes. I was thinking to use > Google's project hosting thing for mine I think it supports SVN or > something though. Guess I can try and figure out a git feed on a > different server too, we'll see. Git is the reposi

Happy SOC'ing all.

2007-05-28 Thread Maarten Lankhorst
For all other students joining SummerOfCode, I think it's a good idea if we have a public place where we can see each other's changes. I set up my own fork, sound.git at http://repo.or.cz/w/wine.git - if others want to do the same I encourage them to do so, it's easy when you figure out how to git

Re: rsaenh: AcquireContext can have multiple flags defined at the same time

2007-05-25 Thread Maarten Lankhorst
Mounir IDRASSI schreef: > Hi, > Your patch is wrong: the flags CRYPT_NEWKEYSET and CRYPT_VERIFYCONTEXT > can't be mixed and if they are set together like in your patch > AcquireContext should return NTE_BAD_FLAGS. You can check that using the > MS implementation under windows. It's also clearly sta

Re: Alarming number of users getting hardlocks with Wine

2007-05-24 Thread Maarten Lankhorst
Marcus Meissner schreef: > It is likely ATI or NVIDIA. > But yes, a broken graphics driver can cause user apps to deadlock the > machine. > > Ciao, Marcus Most likely, I get hard locks too when closing a d3d app by using control c, and my system hangs if I kill a wine process with xkill, both than

Re: problems regression testing/compiling wine

2007-05-13 Thread Maarten Lankhorst
EA Durbin schreef: > I'm having problems regression testing between 0.9.15 and 0.9.37. On > 3+ bisects I keep getting the following error and wine won't compile. Most of the time when this happens you forget to do a make distclean first. It is recommended to use ccache and do a 'make distclean' ev

Fast events

2007-05-12 Thread Maarten Lankhorst
back to a win32 implementation. What are your thoughts on this? Maarten fevent patch attached. >From 5e5cb0a326f51dc2edef245fcaab4a071f9e0c42 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst <[EMAIL PROTECTED]> Date: Sat, 12 May 2007 15:19:45 +0200 Subject: [PATCH] wine headers: in

Re: Initial Mixer support on Mac OS X (1/7)

2007-05-06 Thread Maarten Lankhorst
"Emmanuel Maillard" <[EMAIL PROTECTED]> wrote: > Changelog : > - inital Mixer support on Mac OS X > - find all lines and initialize controls Looking through it you seemed to have used OSS as base, which means some of the comments on my earlier code also apply to your code: - 64 bits safety (use DW

Re: rsaenh: fix bugs in RSAENH_CPAcquireContext and RSAENH_CPGetProvParam

2007-05-05 Thread Maarten Lankhorst
Mounir IDRASSI schreef: > We have found few bugs in the MS Enhanced CSP implementation in wine > (rsaenh.dll) and you'll find attached a patch that corrects them. Hello Mounir, Bug fixes are always welcome in wine. But fixing bugs is one thing, but it is also very recommended to add tests to verif

Re: winmm: Use a pipe for timer

2007-05-05 Thread Maarten Lankhorst
Steven Edwards schreef: > Hi, > > Even though backward compatibility is kept I worry about a couple of > things. A lot of work was done on WinMM to make it portable to windows > for testing and I don't like seeing new code to tie it back to unix > even with the old code left in place. Also shouldn'

Re: [PATCH] Make wine build with the Intel CC

2007-04-21 Thread Maarten Lankhorst
Jonathan Schleifer schreef: > Maarten Lankhorst <[EMAIL PROTECTED]> wrote: > >> Wine could build fine without c++, not sure why everything has to >> link against the c++ library as it will probably only be needed in >> winegcc. Also these compiling flags seem kind

Re: [PATCH] Make wine build with the Intel CC

2007-04-21 Thread Maarten Lankhorst
Jonathan Schleifer schreef: > Hi! > > This patch makes it possible to build an run wine with the Intel > compiler. > > Here are the environment variables I used to build: > > export CFLAGS="-O3 -xP -msse3 -parallel" > export CXX="icc" > export CXXFLAGS="-O3 -xP -msse3 -parallel" > export LDFLAGS="-

Re: dsound: Make sure we're holding the lock on Drop And Stop , try 2

2007-04-21 Thread Maarten Lankhorst
Peter Beutner schreef: > ok that makes sense. Definitely something wrong in dsound. > > But I still think that ALSA_DestroyRingMessage should signal any message left > in the queue. Imo it just calls for trouble to expect that messages always > are added in the right order. DestroyRingMessage is ca

Re: winmm: Allow a FORCE_SHUTDOWN on driver close?

2007-04-21 Thread Maarten Lankhorst
Peter Beutner schreef: > AFAIK you get the DRVM_EXIT message only when winmm is unloading. > Alternatively you could do it in response to the DRV_CLOSE message which winmm > sends just before it tries to unload the driver. > > That said I don't see how your code in ALSA_MixerExit() could deadlock.

Re: dsound: Make sure we're holding the lock on Drop And Stop , try 2

2007-04-21 Thread Maarten Lankhorst
Peter Beutner schreef: > But this only works if DSOUND_Stop and DSOUND_Release are called from > different threads, right? It is during shutdown, DSOUND has an internal timer/thread called the mixer, it calls DSOUND_Stop because we signalled it to stop playbacking, then the program calls idirectsou

Re: gethostbyname(my_name) and IL2-Sturmovik CONTINUED

2007-04-21 Thread Maarten Lankhorst
Kai Blin schreef: > I'm not really surprised. That's the reason why gethostbyname is deprecated, > if I read MSDN correctly. Anyhow, it looks like Windows doesn't return > 127.0.0.1 unless it doesn't have any other IP address to return. Programs > can't count on which NIC's IP that will be, tho

winmm: Allow a FORCE_SHUTDOWN on driver close?

2007-04-20 Thread Maarten Lankhorst
After trying to implement the alsa mixer I came across a problem: If winmm is unloading, a deadlock could occur if during unloading it's waiting for another thread. In winmm itself this isn't much of a problem: there aren't any threads. However, the drivers used by winmm may have threads, and if

Towards getting the top ten requested apps running...

2007-04-14 Thread Maarten Lankhorst
2007/4/14, Martin Owens <[EMAIL PROTECTED]>: but we have a flash 9 player... At the time of the survey there wasn't a sign of it. I remember that, flash player has been only added recently. Flash 7.0 was horrible Maarten

Re: Removal of unused audio drivers

2007-04-12 Thread Maarten Lankhorst
Christoph Frick schreef: > why do you compile the drivers in - or why do have the files around for > them? my audio dialog just shows oss and alsa; the others get dropped at > compile time. also there might be other platforms that have to use those > audio drivers - why drop something that works? I

Removal of unused audio drivers

2007-04-12 Thread Maarten Lankhorst
There are 5 different audio drivers for linux, I think this is a bit overkill, so I propose to remove the esd and nas drivers, I don't think anyone uses esd, especially that since for that task alsa can be used now since dmix addon. I'm not sure what nas is for, but it seems to be 'network audio s

Re: [winealsa] add support for mixer devices

2007-04-11 Thread Maarten Lankhorst
Dmitry Timoshkov schreef: > "Maarten Lankhorst" <[EMAIL PROTECTED]> wrote: > >> +/** >> >> + *mxdMessage (WINEALSA.3) >> + */ >> +DWORD WINAPI

Re: wine latest packages for feisty

2007-04-11 Thread Maarten Lankhorst
Philip A. Marshall schreef: > For what it's worth, I added the Edgy wine repository and used the Edgy > packages for wine 0.9.34 under Feisty. It seems to work, so I'll > probably use the Edgy repository until the Feisty repository starts up. > I did the same, it doesn't seem to mind, only diff

Re: wine-patches

2007-04-10 Thread Maarten Lankhorst
EA Durbin schreef: > Why do the patches I send to wine-patches never show up in the list? > Are they being received? Try subscribing to the wine-patches mailing list, if you're only interested in sending patches you can turn off receiving messages from that list.

Re: configure using deprecated alsa header.. ?

2007-04-09 Thread Maarten Lankhorst
Tom Spear schreef: > I just downloaded and configured wine 0.9.34 and looking thru the > config.log (didnt do this on prior versions, so I'm pretty sure it's > not a regression), there is a warning about needing to use > alsa/asoundlib.h instead of sys/asoundlib.h .. I made bug 7997 about > it: ht

Re: Fwd: "Out of Tree" DLLs

2007-03-24 Thread Maarten Lankhorst
Kai Blin schreef: > Hi folks, > > Tim asked me about this on IRC today, and I didn't have any good idea about > it, so I'll just forward it to you people. > > Cheers, > Kai > > > > > Onderwerp: > "Out of Tree" DLLs > Van:

Re: Want to be a Wine mentor for Google Summer of Code 2007?

2007-03-15 Thread Maarten Lankhorst
Kai Blin schreef: > On Tuesday 13 March 2007 08:29, Dan Kegel wrote: > >> I'm looking for active Wine developers to act >> as mentors for Google Summer of Code 2007. >> If you're interested, please let me know quickly; >> the list has to be finalized in the next half-day >> or so. (Sorry for th

My plans for SOC

2007-03-13 Thread Maarten Lankhorst
For the summer of code I'm planning to improve the dsound code and alsa code, to make alsa finally better then OSS, in a way that has a will get accepted into the wine tree, for that I'm thinking of improving on the following fronts: Winealsa: - Add mixer device and aux controls - Implement dsound

Re: Add Xcursor support

2007-03-10 Thread Maarten Lankhorst
Adam Petaccia schreef: > This patch makes the Guild Wars show up in all its glory. Did I miss something shaped like a patch?

Looking for sound testers

2006-12-28 Thread Maarten Lankhorst
nmm/winealsa/audio.c +++ b/dlls/winmm/winealsa/audio.c @@ -6,6 +6,7 @@ * Copyright2002 Eric Pouech * 2002 Marco Pietrobono * 2003 Christian Costa : WaveIn support + * 2006 Maarten Lankhorst * * This library is free software; you can redistribute it

Re: [Winmm/winealsa] Don't use asynchronous callbacks in dsound any more

2006-12-26 Thread Maarten Lankhorst
copy the code 1:1 from the LGPL alsa sound library. However I saw no need for it and to keep the code simple I just used snd_pcm_wait. See alsa-lib/src/pcm/pcm.c for how snd_pcm_wait is implemented: It just uses poll() Maarten Lankhorst a écrit : > Instead of using asynchronous callbacks that uses s

WineAlsa mmap patch

2006-12-21 Thread Maarten Lankhorst
This changes the winealsa dsound driver to stop using asynchronous callbacks and use snd_pcm_wait instead, I'm welcoming testing. For me this fixes the mmap_crst deadlock. I don't know what caused the deadlock in the first place, but this seems to have fixed it somehow. My test was basically runn

Re: [Tools/Wine.inf] Set Internet Explorer version

2006-06-29 Thread Maarten Lankhorst
Sven Paschukat schreef: Maarten Lankhorst schrieb: Windows seems to set internet explorer only during a new installation or upgrade of internet explorer, so I put it in wine.inf, which seemed appropriate. Changelog: Set version strings for Internet Explorer so programs dependent on it can

Re: [Dlls/Cryptnet] Implement a stub cryptnet

2006-06-28 Thread Maarten Lankhorst
2006/6/28, Dmitry Timoshkov <[EMAIL PROTECTED]>: "Maarten Lankhorst" <[EMAIL PROTECTED]> wrote: > +static HINSTANCE ghInst = NULL; > + > +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) > +{ > + TRACE("(0x%p, %ld

AlphaBlend crashing msn messenger

2005-11-16 Thread Maarten Lankhorst
Fix AlphaBlend() to extract the right part of the source DIB. (http://www.winehq.com/hypermail/wine-patches/2005/08/0331.html) After some regression testing, It looks like this patch is the one that breaks signing into msn messenger. I m not sure why, so Im interested in finding out why it happens

Re: Wrapping around stdcall

2005-07-07 Thread Maarten Lankhorst
To suppress warnings from my thiscall wrapped stuff, I came up with this solution, playing around a little with #define's: #ifdef __i386__ /* thiscall functions are i386-specific */ #ifdef __GNUC__ /* GCC erroneously warns that the newly wrapped function * isn't used, lets help it out of it's t

Re: Wrapping around stdcall

2005-07-05 Thread Maarten Lankhorst
#x27;s I already have and set attribute 'used' to avoid compiler warnings. But I still wonder what I have to do to call a 'thiscall' function, since I probably need it in ITextHost. Maarten Lankhorst

Wrapping around stdcall

2005-07-05 Thread Maarten Lankhorst
I have been trying to get some work done on a class returned by CreateTextServices, but the differences between windows' stdcall and linux' are giving me a few headaches. right now I've done it pretty much like this: /* These macros are taken from wine/dlls/msvcrt/cpp.c */ #ifdef __i386__ /* this

Re: MSN Messenger builtin progress

2005-06-18 Thread Maarten Lankhorst
Krzysztof Foltman schreef: Maarten Lankhorst wrote: Ah ok, it would have been a nice project for summer of code, unfortunately i never applied for it, else I'd try to get it working.. Yes, that's a potentially nice "sponsorable" project. as far as i can tell onl

Re: MSN Messenger builtin progress

2005-06-18 Thread Maarten Lankhorst
Krzysztof Foltman wrote: Maarten Lankhorst wrote: I'll try playing around a bit with CreateTextServices and see how far I will come, it seems to be tricky, I can't find any useful information about it. My opinion - forget it. It'd require a major rework of the RICHEDIT2

MSN Messenger builtin progress

2005-06-15 Thread Maarten Lankhorst
MSN Messenger 6.2 (!!) seems to run fairly well with only builtin dll's, from what I can tell the only real thing missing is CreateTextServices in riched20.dll, SSL support and urlmon's obtainuseragent (or something), webcams will work without any additional native dll now, if my patch for msvfw32

qcap/avicap and driver models

2005-05-21 Thread Maarten Lankhorst
Hi Alexandre, I implemented a driver model in qcap now, but avicap32 still uses my old #ifdef LINUX_VIDEODEV_H, since some people might be interested in writing capcreatecapturewindow, I think we should move out the drivers from qcap to our own vfwwine dll/driver, windows uses a similar model

Re: [QCAP] Final patch

2005-05-20 Thread Maarten Lankhorst
Dimi Paun wrote: On Fri, 2005-05-20 at 12:26 +0200, Maarten Lankhorst wrote: What do you suggest then ... fprintf(stderr? Absolutely not. :) But there are other options available: TRACE/WARN/FIXME. There's also MESSAGE, but it should be used *very* little. Also remember that most p

Re: [QCAP] Final patch

2005-05-20 Thread Maarten Lankhorst
Dimi Paun wrote: On Fri, 2005-05-20 at 00:42 +0200, Maarten Lankhorst wrote: m3h, v4l driver for vfwcapture.. please leave the ERR notice on initialisation intact, thank you :) I think you've overusing ERR(). ERR() should be called to signal an internal error such as inconsistent

Re: MSN Webcam

2005-05-18 Thread Maarten Lankhorst
MediaHost (TM) wrote: Looks interesting! Any idea, when your patches get committed into the "official" releases? Maarten Lankhorst wrote: Status: Nearly complete, need testers. http://wiki.winehq.org/MSN_Messenger_webcam_support You need the native quartz dll, which get installed wit

MSN Webcam

2005-05-17 Thread Maarten Lankhorst
Status: Nearly complete, need testers. http://wiki.winehq.org/MSN_Messenger_webcam_support You need the native quartz dll, which get installed with internet explorer, as the builtin quartz doesn't work properly when changing media format on initialisation. IFilterGraph Reconnect isn't implemente

Re: Video Capturing under Wine

2005-05-14 Thread Maarten Lankhorst
James Hawkins wrote: On 5/14/05, Maarten Lankhorst <[EMAIL PROTECTED]> wrote: We are not windows, using HKLM/SYSTEM/.../msvideo would not be an option imho, because when should we write it? And what if you just connected your webcam and modprobe'd the drivers for it, it would make

Re: Video Capturing under Wine

2005-05-14 Thread Maarten Lankhorst
he rest of the stuff I worked upon until now was well documented, but I doubt winmm is... Maarten Lankhorst

qcap

2005-05-09 Thread Maarten Lankhorst
this is my qcap dll in its current state, because i dont have much time in the next couple of weeks I' d thought I'd post it, perhaps someone can make it work with the new qcap dll implementation, what i have here is a pretty much complete version of qcap + a near complete version of V4l implem

Re: resizing?

2005-05-06 Thread Maarten Lankhorst
Robert Shearman wrote: Maarten Lankhorst wrote: I want to copy from a raw bitmap stream which is (capBox->width) x (capBox->height) (24 bits) to (capBox->outputwidth) x (capBox->outputheight) (also 24 bits), if you can argue about HAVE_V4L2 this should be easy :) I *really* need thi

resizing?

2005-05-05 Thread Maarten Lankhorst
static void Resize(CaptureBox * capBox, LPBYTE output, LPBYTE input) { if (!capBox->swresize) { int depth = capBox->bitDepth / 8; int inoffset = 0, outoffset = (capBox->height-1) * capBox->width * depth; int ow = capBox->width * depth; while (outoffset >= 0) { int x;

Re: Missing HAVE_V4L2 check

2005-05-05 Thread Maarten Lankhorst
James Hawkins wrote: On 5/5/05, Maarten Lankhorst <[EMAIL PROTECTED]> wrote: HAVE_V4L2 is not declared in wine itself, but by /usr/include/linux/videodev.h, which includes videodev2.h and defines HAVE_V4L2 if V4L2 is available, so in my opinion it doesn't need fixing.. Maybe

Re: Missing HAVE_V4L2 check

2005-05-05 Thread Maarten Lankhorst
Francois Gouget wrote: Maarten, could you fix the following winapi_check warnings: dlls/avicap32/avicap32_main.c: HAVE_V4L2 is not declared as a conditional dlls/avicap32/avicap32_main.c: HAVE_V4L2 is not declared as a conditional The problem is that dlls/avicap32/avicap32_main.c checks for HAVE_V4

Re2: EnumMedia patch

2005-05-01 Thread Maarten Lankhorst
Robert Shearman wrote: Maarten Lankhorst wrote: This patch fixes AM_MEDIA_TYPE->pbFormat not being handled correctly, unfortunately, this also means some stuff has to be rewritten to avoid memleaks, instead of CoTaskMemFree(AM_MEDIA_TYPE), DeleteMediaType has to be used.. This also fixes

MSN Webcam patch

2005-04-28 Thread Maarten Lankhorst
I am stuck on it, it seems that if I enable WINEDEBUG=+quartz it crashes THEORETICALLY, although wrong, this should be ok, since it doesn't disrupt anything BUT I asked others to test my patch, and unfortunately THEY weren't that lucky, it crashed, wether winedebug was enabled or not... so what

Resizing an image?

2005-04-28 Thread Maarten Lankhorst
I'm trying to resize a raw image (only rgb values) and flipping it vertically i got 2 pointers, and the size they are both rgb24 I wanted to do this with stretchdibits, but it requires a device context, and I am not sure that if i create one with createcompatibledc, it will be 24 bits.. so my q

msn webcam status

2005-04-26 Thread Maarten Lankhorst
just thought I'd drop by and say how things are going.. i submitted a lot of patches already, and trying to get those commited, although they are not directly required for webcam support, they are meant to increase general stability, and fix some bugs: - dlls/avicap32: wrote a basic capgetdriver

Re: avicap32 patch

2005-04-25 Thread Maarten Lankhorst
Juan Lang wrote: Hi Maarten, You need to include "winnls.h" unconditionally, capGetDriverDescriptionW is always compiled with calls to MultiByteToWideChar. Oops, didn't see it, my fault -- fixed + sprintf(device, "/dev/video%i", devnum); Why not use snprintf(device, sizeof(device) ...) in

Some fixes for filtergraph.c (#3)

2005-04-25 Thread Maarten Lankhorst
Added critical section around the mediacontrols, also added a release for the attached filters when the filtergraph gets released, so ref count leak has decreased.. I also submitted a patch to devenum to fix another release error, as a matter of fact: fixme:quartz:ReadThread 0x7d331c20 -> Frame

VfwCapture question (and attached a v4l2 patch for msn 6.2 webcam - Attempt 1)

2005-04-19 Thread Maarten Lankhorst
ink = (239-heightidx)*320*3+width*3; +int p0ink2 = width*4+heightidx*320*4; +myData[p0ink + 2] = readbuffer[p0ink2 + 1]; +myData[p0ink + 1] = readbuffer[p0ink2 + 2]; +myData[p0ink + 0] = readbuffer[p0ink2 + 3]; + } + heightidx++; + } +

MSN Webcam patch (New: Now WITH Completely randomly transmitted images)

2005-04-17 Thread Maarten Lankhorst
pbiIn) { diff -Nru wine-old/dlls/quartz/capture.c wine-new/dlls/quartz/capture.c --- wine-old/dlls/quartz/capture.c 1970-01-01 01:00:00.0 +0100 +++ wine-new/dlls/quartz/capture.c 2005-04-17 17:32:58.00000 +0200 @@ -0,0 +1,166 @@ +/* DirectShow capture services (QUARTZ.DLL) + * + *

Re2: How to format a IMediaSample?

2005-04-13 Thread Maarten Lankhorst
Robert Shearman wrote: Maarten Lankhorst wrote: I'm having troubles sending a media sample over the graph, I'm wondering wether that is because of the receiving filter or my own fault. the thing I'm trying to send is a uncompressed 24 bit image, the bitmap info header data of it

How to format a IMediaSample?

2005-04-12 Thread Maarten Lankhorst
I'm having troubles sending a media sample over the graph, I'm wondering wether that is because of the receiving filter or my own fault. the thing I'm trying to send is a uncompressed 24 bit image, the bitmap info header data of it is pretty much as this: mediatype: BI_RGB24 Width: 320 Height:

Re: Re2: Pushing up data through the stream in quartz

2005-04-11 Thread Maarten Lankhorst
Robert Shearman wrote: Maarten Lankhorst wrote: HRESULT Capture_Run(CaptureBox * capBox, FILTER_STATE *state) { HRESULT hr; IMediaSample *pSample = NULL; LPBYTE pointer; hr = OutputPin_GetDeliveryBuffer((OutputPin *)capBox->pOut, &pSample, NULL, NULL, 0); TRACE("Meat 1: %lx

Pushing up data through the stream in quartz

2005-04-10 Thread Maarten Lankhorst
I'm trying to figure out how to do this, but I can't find anything on the subject. From what I can tell, you have to make a media sample, then use outputpin_sendsample to deliver it, so, how do I fill up a media sample with a single frame? For now, just with NULL data would be sufficient..

<    1   2   3   4   5