non-HTC camera software

This forum contains short topics that require short answers. Developers arround the world are welcomed to help the community, or to post their own questions.
[C++ development]

Moderators: Teksoft, admin

non-HTC camera software

Postby radhoo » Fri Jun 02, 2006 8:30 pm

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
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am

re:

Postby admin » Fri Jun 02, 2006 8:53 pm

The source-code is available here:

http://teksoftco.com/forum/viewtopic.php?p=225#225
admin
Editors
 
Posts: 314
Joined: Sat Mar 04, 2006 3:37 pm

Postby radhoo » Sat Jun 17, 2006 7:15 pm

Some feedback would be most welcomed ;)
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am

Hi! I tried your application

Postby lazmous » Fri Jul 21, 2006 6:41 pm

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...
lazmous
TEK-Newbie
TEK-Newbie
 
Posts: 2
Joined: Fri Jul 21, 2006 6:29 pm

Postby radhoo » Fri Jul 21, 2006 8:31 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.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am

Postby lazmous » Mon Jul 24, 2006 4:55 pm

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 ?
lazmous
TEK-Newbie
TEK-Newbie
 
Posts: 2
Joined: Fri Jul 21, 2006 6:29 pm

Postby radhoo » Wed Aug 02, 2006 5:35 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
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am


Return to Pocketpc

Who is online

Users browsing this forum: No registered users and 0 guests


cron