Hello All,
For enthusiasts and not only, here is a sample for writting your own camera software:
http://www.teksoftco.com/radu/posts/post002/
tekcamera.cab.zip contains cab files for WM2005 devices (wont work on 2003, sorry)
tekcamera.pc.zip contains an .exe that can be run on the PC and will install the cab automatically via active sync.
Please read the readme.txt before installing.
Cheers,
Radu
- It is currently Sat May 25, 2013 1:34 pm • All times are UTC + 2 hours
non-HTC camera software
7 posts
• Page 1 of 1
Hi! I tried your application
First of all, I'm working on windows mobile 5, to make work camera with directshow.
I managed to create an application that launches the camera preview (like you) but it's upside down and in fullscreen. And In your application it's also upside down. Have you ever thought of implementing a flip custom filter?
ps: I'm working on it without success...
I managed to create an application that launches the camera preview (like you) but it's upside down and in fullscreen. And In your application it's also upside down. Have you ever thought of implementing a flip custom filter?
ps: I'm working on it without success...
- lazmous
- TEK-Newbie

- Posts: 2
- Joined: Fri Jul 21, 2006 6:29 pm
There was no need for implementing such a filter as that was only a sample.
This task shouldnt be that difficult, as all one needs to do is to change the pixels in a matrix of pixels so it would turn upside down.
My sample works with HBITMAPs for storing the images, so a simple GetDibSection and some basic math for switching the pixel matrix should do the trick. I might post some code for that on this thread later.
This task shouldnt be that difficult, as all one needs to do is to change the pixels in a matrix of pixels so it would turn upside down.
My sample works with HBITMAPs for storing the images, so a simple GetDibSection and some basic math for switching the pixel matrix should do the trick. I might post some code for that on this thread later.
- radhoo
- TEK-Insider

- Posts: 640
- Joined: Fri Mar 17, 2006 2:47 am
Hi Radhoo,
Firstly concerning your app:
I see in your sample that you save each frame of your preview in a jpeg file and then load each jpeg on screen!
Why don't you try to display a more fluid preview? Using DirectShow?
Secondly concerning mine:
I don't manage to add a custom filter to my directshow graph (in my application).
I've already created and registered my dll.
But in my application when I call CoCreateInstance with the right CLSID
I did put some breakpoints in my dll functions like entrypoint and CreateInstance and these bpoints are reached. After CreateInstance, it seems to go in an infinite loop.
Have you got an idea of what's happening?
Have you got any code sample that uses Directshow and a custom filter to provide me ?
Firstly concerning your app:
I see in your sample that you save each frame of your preview in a jpeg file and then load each jpeg on screen!
Why don't you try to display a more fluid preview? Using DirectShow?
Secondly concerning mine:
I don't manage to add a custom filter to my directshow graph (in my application).
I've already created and registered my dll.
But in my application when I call CoCreateInstance with the right CLSID
I did put some breakpoints in my dll functions like entrypoint and CreateInstance and these bpoints are reached. After CreateInstance, it seems to go in an infinite loop.
Have you got an idea of what's happening?
Have you got any code sample that uses Directshow and a custom filter to provide me ?
- lazmous
- TEK-Newbie

- Posts: 2
- Joined: Fri Jul 21, 2006 6:29 pm
lazmous wrote:Hi Radhoo,
Firstly concerning your app:
I see in your sample that you save each frame of your preview in a jpeg file and then load each jpeg on screen!
Why don't you try to display a more fluid preview? Using DirectShow?
Secondly concerning mine:
I don't manage to add a custom filter to my directshow graph (in my application).
I've already created and registered my dll.
But in my application when I call CoCreateInstance with the right CLSID
I did put some breakpoints in my dll functions like entrypoint and CreateInstance and these bpoints are reached. After CreateInstance, it seems to go in an infinite loop.
Have you got an idea of what's happening?
Have you got any code sample that uses Directshow and a custom filter to provide me ?
We didnt target the fluidity for this sample. The code was used in another project that needed each frame as a jpeg snapshot. We decided to make this public but we didnt make any major modifications.
Regarding your problem, you could post your code and we will try to find the problem.
Regards,
Radu
- radhoo
- TEK-Insider

- Posts: 640
- Joined: Fri Mar 17, 2006 2:47 am
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest