problem with setting Autofocus, Zoom via DirectShow on HTC Touch HD2 - Windows Mobile Software Development

Hi every body
I am using direct show to access to camera on HTC touch HD.
Ie have succeed to access to the camera and to have very nice flow But I can't set Focus neither Zoom:
To have autofocus and zoom thre are 2 ways with Direct show:
2-a) Classic method: AMCameraControl:
Api : pAMCameraControl->Set(long CameraControlProperty , long lValue, long tagCameraControlFlags ); (AMCameraControl is got from the Video capture filter (CLSID_VideoCapture ))
CameraControlProperty = {......CameraControl_Zoom = 3,...CameraControl_Focus = 6,...}
tagCameraControlFlags = { CameraControl_Flags_Auto = 0x1,CameraControl_Flags_Manual = 0x2}
lValue: in général 0,1,2 or 3, but I tried lot of values from -10000 to 10000.
2-b) IKSProperty mothod:
After looking at Camera.exe traces we have tried this method below that seems to be used by Camera.exe
Api pKSPropertyKs->Set(guidPropSet,Property , NULL, 0,&pValue, sizeof(DWORD)); (pKSPropertyKs is got from the Video capture filter (CLSID_VideoCapture ))
guidPropSet: we tried PROPSETID_VIDCAP_CAMERACONTROL, AMPROPSETID_Pin ...
Property= 4139 for Zoom according to Camera.exe traces.
pValue = from 1 to 20 according to Camera.exe traces.
In the both cases the camera does not do neither autofocus, neither Zoom .
Does some one knows how to get parameters values with which one of these functions must be called to do autofocus, and Zoom ? Please Help.
Thanks.

Hi rerrazi,
I am facing the same problem. did you manage to solve it? if yes can you please post the solution
Regards,

I'm trying too to change the zoom property, without success... But I'm pretty sure that the only way to make it is to use IKSPropertySet, since they haven't implemented the AMCameraControl interface. (if you take a look inside Camera.exe, you can also find references to a certain CGraphManager::SetPropertyViaIKsPropertySet method)
We "only" have to find the good props to use as parameters...

Related

BA Screen Resolution Hack (960 X 1280 dpi) at 268288 colors

Oh **** ... it didnt get in ....
sorry folk i forgot to zip it up before attaching.
there you go ...
btw ... i'm already using the hack ... no side effects at all ... just a more beautiful screen !!!!
Tis is how i got the numbers
16 bit = 64K = 65536 colors
1 bit = 65536/64 = 1024 colors
18 bit = 262K = 268288 colors (262 X 1024)
Does it work for Blue Angels
Re: Does it work on Blue Angels ?
The answer is "YES !"
I am using a Blue Angel with This Hack and I'm very happy about the result !!!
Try .... If u wanna revert just jot down the values so u can key them back in.
I never thot it was possible but by heaven's will I chanced upon the genius who discovered it .... i lost the link but lucky i saved it as mht. file.
Now i want u all Blue Angels out there to have the same beautiful screen i am enjoying !!!
Cheers Mates
One for all and all for One !!!
Danger !
Please don't try going above resolutions more than 18 Bit
Although it is possible to do it ... there's no guarantee that the hardware can support resolutions that high .... if your pixels start dying it's your own fault.
18 Bit is safe and good enough .... don't kill the screen by overdosing it !!!
___________________________________________________
One for all and all for one
Would someone be kind enough to post a guide on how to do this in their own words?
I've tried both apps suggested and also replaced the files but nothing seems to work.
ozVGA's files already exist in /windows and wont let me overwrite them, and when I start up SE_VGA it opens a dialog box without any text and when you close it the closes the app.
Biohead said:
Would someone be kind enough to post a guide on how to do this in their own words?
I've tried both apps suggested and also replaced the files but nothing seems to work.
ozVGA's files already exist in /windows and wont let me overwrite them, and when I start up SE_VGA it opens a dialog box without any text and when you close it the closes the app.
Click to expand...
Click to collapse
I agree with Biohead, instead of reading long info from the link on you rar file, why don't you just give us step by step how you make it worked on yours.
TX
here it goes .....
HKEY_LOCAL_MACHINE\Drivers\ Display\Active\Built In LCD
In "LCDcolors" Enter Decimal Value 268288
HKEY_LOCAL_MACHINE\Drivers\ Display\Citizen
In "CxScreen" Enter Hexadecimal Value 30
In "CyScreen" Enter Hexadecimal Value 30
Install OzVGA
These are the settings I use ...
ozVGA
MEnu&Bar Font 650 (Checked)
System Font 700 (Checked)
Hor. Scrollbar 10
Ver. Scrollbar 10
Min Scrl Thumb 10
Fonts Arrays :
SEvga : 500,600,650,800,1000
SEvga : 750,900,975,1200,1500
oz=SE* Ratio 2
Soft Reset
Goto Start/Settings/System/Screen
Set the font size to (Smallest)
As has already been pointed out, a lot of applications don't take into account the system-level font sizes in the Registry. Also, the vast majority of them doesn't check for the actual size of the screen to give you exactly the same view in VGA and in QVGA. (The most notable exception is the excellent document reader application, µBook , which offers the same resolution in both QVGA and VGA modes.)
View the screenshots below for an idea of wat it'll look like.
:shock: Can Someone please tell me why my screenshots don't show up in this page ?????
:shock:
:?: :shock: This Page Does Not support JPG files ????? :shock:
Today Screen
hardware?
friends, do our blueangels' lcd hardware support that resolution? Or is it just a programm tweak and is not a real resolution enhance?
i have no idea at all whether the hardware supports the resolution ... but the OS definitely allows for different resolutions.
Does anyone have any idea how to check if it is real ???
The only way i know how is to compare the same screen with same brightness settings against another device which is 18bit screen ... like the BenQ P50.
If anyone can do it ... please post your findings Thanks
I can only afford 1 device ... I am Poor
Thanks for the setp by step info...Iam going to try it...so it is safe to modify all the setting right?
yes it is absolutely safe ... just remember your original settings so you can key them back in if you want.
Hi Ivan, I have try it, not working so good, and the text are mixed up, even after changing the setting to the smallest, and the resolution remain the same, yes I follow your step by step, Thanks anyway.
Oh dear ... Sorry about that ... But the prospect of having an 18bit resolution blue angel would really have been a dream cum true ...
I'll experiment some other settings and post it for u guys can try ...
Will it work with a Blueangel running WM5?
Thanks.
I got no Guts to flash my ROM ... So I dunnoe if it work on WM5
But it seems quite safe to change the values back and forth ... it only affects how your screen displays stuff ... if you don't like still can go back to original settings ... I'm still experimenting
Need someone with WM5 to have the guts to try it and tell us his views.
I'll do it, but someone will REALLY have to create a really basic guide. I've never really gotten into modifying the Windows Mobile thing so I'm not 100% whether I'm doing it right.
If someone creates a 100% step by step guide then I'dbe more than happy to try it out. I understand WHAT I have to do, its just HOW to do it.

Camera 4.02 (from Dopod 810) with External BT GPS , Work fine on WM6 !

Version 4.02 from Dopod work fine with BT External GPS:
http://forum.xda-developers.com/showthread.php?t=299097
http://forum.xda-developers.com/attachment.php?attachmentid=36005&d=1174934374
I have installed this on SD without remove the original version (4.00).
Copy or rename Camera.exe.040c.mui to Camera.exe.0409.mui (or Camera.exe.0410.mui)
Configure on Setting GPSID (External GPS):
GPS Program Port = GPD8
GPS Hardware Port = (the port of GPS BT Paired ,ie..COM0)
Verify EXIF data with Picasa2.
TyTN with WM6 lvsw 20070315 .
Yeah I'm running that myself. It's nice to have the GPS feature. It also lets you take photos using the front camera as well as the back (finally a built in use other then video calls) though the pictures aren't great so I use the 2mp cam instead. Still nice to have it. Also, new overlay templetes. The only thing I need to change on it is reports the photo as being taken on a Dopod (gotta fix it to read Hermes or TyTN) - haven't looked - it was probably in the registery entries I imported and didn't even bother to look
chymmylt said:
... it was probably in the registery ...
Click to expand...
Click to collapse
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\Captparam\ExifInfo]
"Model"="DopodD810"
"Make"="Dopod"
emme said:
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\Captparam\ExifInfo]
"Model"="DopodD810"
"Make"="Dopod"
Click to expand...
Click to collapse
Posting it inspired me to go look and was actually changing it when I saw you posted this Thanks!!!
http://forum.xda-developers.com/atta...5&d=1174934374
404 - Not Found did i miss anything?
Hi guys at last some body talking about the camera, what I took notes about apart from the not a very good focus camera on the Tytn, I don't know if is a problem with the flash that is not synchronized with the shutter ,because if you take a picture ,has got the same light ,like it was before the high intensity beam that shine when some body press the camera button.If some of you gurus came have a .cab or fix were we can adjust the synchronization of the shutter with the beam will be wonderful.Thanks
here's the link:
http://forum.xda-developers.com/attachment.php?attachmentid=36005&d=1174934374
When I choose 2nd camera on Dopod 838PRO, it will hang all times. How should I do? Can the new camera program version take photo by 2nd camera on Herms?
hatori said:
When I choose 2nd camera on Dopod 838PRO, it will hang all times. How should I do? Can the new camera program version take photo by 2nd camera on Herms?
Click to expand...
Click to collapse
It did that for me too when I was trying to run it from my SDCard. When I replaced the internal version with it, it worked no problem. Dont forget to import the new reg settings!
The worst is this version cann't use FLASH Light because it's from D810.....
Anybody can help
hatori said:
When I choose 2nd camera on Dopod 838PRO, it will hang all times. How should I do? Can the new camera program version take photo by 2nd camera on Herms?
Click to expand...
Click to collapse
I have the same problem too...
trevortang said:
I have the same problem too...
Click to expand...
Click to collapse
haiya.. import the registry ma..
no strobe light function.
Hmm - never noticed - the flash is so weak I never use it - practically useless (imho). As a (lame) work around, if you really need a flash, you could use VJ canella to turn it on, take the pic and then turn it off?
chymmylt said:
Hmm - never noticed - the flash is so weak I never use it - practically useless (imho). As a (lame) work around, if you really need a flash, you could use VJ canella to turn it on, take the pic and then turn it off?
Click to expand...
Click to collapse
I extracted the camera application from the latest Trinity ROM and it got several problems so I give it up. For example, Video function doesn't run and the photos taken with MMS mode are full of garbage. I believe that the Trinity camera is physically diferent to the Hermes one and the DLL's cannot be shared.
This version from Dopod got the same problems so I don't reccomend it. At least, if you use the files from the Trinity, you can use the flash.
The file is not working
I downloaded this file on 3 dif computers and they all say the zipped file is corrupt, is there something im missing?
Hi,
I’ve just upgraded my SPV 3100 with Camera 4.02, seams that something is wrong witch colors !
To get near to real colors, I must set contrast, hue to max setting ??!!! and the colors are far from those which I got in previous version of camera software.
BTW the sepia effect is BLUE ???!!! & it’s impossible to use front camera
Did anyone got similar problems ??
Is there somewhere “old” HTC camera software available ???
I prefer avoid of hard reset
tomsok said:
... “old” HTC camera software available ??? ..
Click to expand...
Click to collapse
If you have installed the 4.02 version on SD the previous version 4,00 she still works like before.
Simply launch the program camera.exe from \windows.
The two versions coexist.
BTW : Camera400.zip from LVSW 20070408.
I think it is not possible, coz vcandella uses driver/hardware to put light on, but at the same time is not possible to do this on two programs. you can use light with vcandella or with original camera application. try to use vcandella and run camera - I think error message will appear - hardware is used or something like that...
chymmylt said:
you could use VJ canella to turn it on, take the pic and then turn it off?
Click to expand...
Click to collapse
computerlove87 said:
I downloaded this file on 3 dif computers and they all say the zipped file is corrupt, is there something im missing?
Click to expand...
Click to collapse
Yes, you're missing a normal archiving program. I'm guessing you use Windows' builtin "Compressed Folder" crap - it doesn't work with all ZIP files. Try WinZip or WinRAR or IZArc, the latter being completely free (I use it).

Microsoft Portrait v 3.0

when i installed this version the remote video appears on my imate jasjam not clear picture but it is divided into 3 parts and every part is lines not a picture .any one knows why and how can i fix this.
thnx in advance
Same here. I am still trying to figure out what the problem is. Do you have the option of selecting the camera? Mine shows only one.
Best,
Marcelo
no too the program make the choice ,i installed another version of the software the device cam was not supportes and there was no sound
Installed it on black2.5 but it would not open. Then screen just gets bright like using VLtool then M$portrait closes.

CoolCamera

Hey Guys,
anyone ever tried CoolCamera ? I just installed on my B+B4.0 and it runs very fast. It's not that comfortable to use....but it's very fast if you compare with the htc camera 4.x in B+B. It's still beta so we can hope it's getting more comfortable to use.... just give it a try
View attachment CoolCamera.cab
Great Work
Thanx, this is great, it works very wel, I can take picture faster, and, more important, I can make Movie at a grater resolution. This software is the best. I am wondering if there isn't some registry tweak to make HTC Camera to let me pick higher resolution for movie.
maybe im not good to set that program...but for me dont work well at all
i will try again then
Camera
You have to modify the parameres, first at Settings, Adv. Settings, Pixel Order must be Reversed. If not, the image will be bad. At movie you cannot film more than 5 seconds, This is not good, but the quality of the movie is much better.
Take photos by the camera button
Hi guys,
is there any possibility in the coolcamera to take photos by pressing the camera button like in the original camera app? I didn't find anything for it...
zsitvayb said:
Hi guys,
is there any possibility in the coolcamera to take photos by pressing the camera button like in the original camera app? I didn't find anything for it...
Click to expand...
Click to collapse
Indeed a great app, although its unregistered and therefore i cant record for more then 5 secs.
The shutterbutton can only be configurated to hardware buttons 1-4 (define keys) but the camerabutton on the artemis is number 5. Where tot change this, cant find anything in the coolcamera folder or registry.
Change in settings\buttons - button 5 select coolcamera
meschle said:
Change in settings\buttons - button 5 select coolcamera
Click to expand...
Click to collapse
Thats not what i meant! Already have that working, but need to alter the settings to take the picture when coolcamera is activated...
It is possible to take a picture by touching the touchscreen.
Just go to Define Keys, Touchscreen en choose Make Photo.
On HD2 it's not working the interface...
There is no hard buttons to support the application ...

[Q] AudioRecord on Galaxy S

Hi,
I developped a dictaphone on android that records mp3, ogg, wav files ...
It works on HTC, nexus, ... but I have some problems with Galaxy S compatibility.
I saw that some other developper using AudiRecord faced the same problem too and resolved it, but I found nothing on internet on there solution.
As I can't afford to buy a Galaxy, I ask your help here
Here is a piece of my code :
int bufferSize = AudioRecord.getMinBufferSize(f, c, e);
AudioRecord recordInstance = new AudioRecord(MediaRecorder.AudioSource.MIC, f, c, e, bufferSize);
byte[] tempBuffer = new byte[bufferSize];
recordInstance.startRecording();
while (...)
{ buffer = recordInstance.read(tempBuffer, 0, bufferSize);
}
recordInstance.stop();
recordInstance.release();
I tried all these values :
for f : 8000, 11025, 22050, 44100
for c : AudioFormat.CHANNEL_IN_MONO, AudioFormat.CHANNEL_IN_STEREO
for e : AudioFormat.ENCODING_PCM_16BIT
I ve seen, that getMinBufferSize (on Galaxy) always return 640 and that Stereo isn't used.
I don't know where my code fails. Did someone had the same problem ?
Did you reslve it ?
Thanks in advance,
Dje073.
Since audio recorded with the SGS is just a piece of crap, nobody is going to use it anyway
But of course, if you really want your application to work on the SGS I don't think I have to complain.
Is there a way to fix the audio quality? It is really awful.
You may not be wrong, but as Galaxy users ruins my stats rating my apps 1 star on 5, I have to do something
If not recording in 3gp format, the sound may be correct, no ?
I'd like to provide you an app to demonstrate it, but I don't want to buy a SGS for it ^^
I don't think that will make a difference. As a temporary solution you can edit the description of your app and tell the SGS-owners you are working on a solution. If they still keep ruining your stats they're just assholes
Already done, but not very effective for the moment
I'm sure audio quality is not as bad if you record in raw pcm.
Why Samsung did there own implementation of AudioRecord ? :/
japperrrr said:
I don't think that will make a difference. As a temporary solution you can edit the description of your app and tell the SGS-owners you are working on a solution. If they still keep ruining your stats they're just assholes
Click to expand...
Click to collapse
I don't think this kind of comments will encourage the programmers working for a specific device voluntarily.
I've use TapeMachine on my SGS and the recording quality is excellent. It does ogg,wav but no longer does mp3 due to a licensing issue. I don't understand where this idea comes from that the SGS audio quality is poor. For info, I'm a musician, I use it for recording guitar/voice demos and I find it astoundly good for a phone.
You may want to check out TapeMachine.
dje073 said:
Hi,
I developped a dictaphone on android that records mp3, ogg, wav files ...
It works on HTC, nexus, ... but I have some problems with Galaxy S compatibility.
I saw that some other developper using AudiRecord faced the same problem too and resolved it, but I found nothing on internet on there solution.
As I can't afford to buy a Galaxy, I ask your help here
Here is a piece of my code :
int bufferSize = AudioRecord.getMinBufferSize(f, c, e);
AudioRecord recordInstance = new AudioRecord(MediaRecorder.AudioSource.MIC, f, c, e, bufferSize);
byte[] tempBuffer = new byte[bufferSize];
recordInstance.startRecording();
while (...)
{ buffer = recordInstance.read(tempBuffer, 0, bufferSize);
}
recordInstance.stop();
recordInstance.release();
I tried all these values :
for f : 8000, 11025, 22050, 44100
for c : AudioFormat.CHANNEL_IN_MONO, AudioFormat.CHANNEL_IN_STEREO
for e : AudioFormat.ENCODING_PCM_16BIT
I ve seen, that getMinBufferSize (on Galaxy) always return 640 and that Stereo isn't used.
I don't know where my code fails. Did someone had the same problem ?
Did you reslve it ?
Thanks in advance,
Dje073.
Click to expand...
Click to collapse
Hey Mate, has you released your apps?
Whats the name? I would love to buy one. Mine is Samsung galaxy SPICA
doc_v15 said:
Hey Mate, has you released your apps?
Whats the name? I would love to buy one. Mine is Samsung galaxy SPICA
Click to expand...
Click to collapse
You can find my application on the market making a search on "AudioRecorder"
Well I'm not a developer, but I do have Galaxy S, so if help needed from user side, drop me a pm.
Thank you Soniboy
I tried with some friend, but not very effective without being in debug mode on the device.
More, It seems that this bug does not exist any more on Samsung Galaxy S with Froyo.
Thank you very much for your help
dje073 said:
Hi,
I developped a dictaphone on android that records mp3, ogg, wav files ...
It works on HTC, nexus, ... but I have some problems with Galaxy S compatibility.
I saw that some other developper using AudiRecord faced the same problem too and resolved it, but I found nothing on internet on there solution.
As I can't afford to buy a Galaxy, I ask your help here
Here is a piece of my code :
int bufferSize = AudioRecord.getMinBufferSize(f, c, e);
AudioRecord recordInstance = new AudioRecord(MediaRecorder.AudioSource.MIC, f, c, e, bufferSize);
byte[] tempBuffer = new byte[bufferSize];
recordInstance.startRecording();
while (...)
{ buffer = recordInstance.read(tempBuffer, 0, bufferSize);
}
recordInstance.stop();
recordInstance.release();
I tried all these values :
for f : 8000, 11025, 22050, 44100
for c : AudioFormat.CHANNEL_IN_MONO, AudioFormat.CHANNEL_IN_STEREO
for e : AudioFormat.ENCODING_PCM_16BIT
I ve seen, that getMinBufferSize (on Galaxy) always return 640 and that Stereo isn't used.
I don't know where my code fails. Did someone had the same problem ?
Did you reslve it ?
Thanks in advance,
Dje073.
Click to expand...
Click to collapse
I have same problem. I think it is the problem of read method. If your problem is solved than help me.

Categories

Resources