GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 17-Jun-2004, 00:59
Melvin Lin Melvin Lin is offline
New Member
 
Join Date: Mar 2004
Posts: 16
Melvin Lin is on a distinguished road

Help!!! A Problem with Camera Resolution


I have a problem with camera resolution.
During runtime, my application must run with 320*240 camera resolution.
If a client user always uses 640*480 as his/her default camera resolution.
How should I change the camera resolution 640*480 into 320*240 by "in process"?
  #2  
Old 17-Jun-2004, 02:49
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
...I have no idea :-P
__________________
-Aaron
  #3  
Old 17-Jun-2004, 08:01
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Quote:
Originally Posted by Melvin Lin
I have a problem with camera resolution.
During runtime, my application must run with 320*240 camera resolution.
If a client user always uses 640*480 as his/her default camera resolution.
How should I change the camera resolution 640*480 into 320*240 by "in process"?

?? - This doesn't really sound like a C/C++ question. If it isn't you should try posting in the hardware forums here. If it is a C/C++ question could you clarify what you are looking for? Do you want to write a program that will reduce a 640x480 jpg to a 320x240 jpg?
  #4  
Old 17-Jun-2004, 16:05
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
Nah... someone else was doing some camera stuff awhile ago, and I'm pretty sure there's some code process that changes the camera recording resolution from 640*480 to 320*240.
__________________
-Aaron
  #5  
Old 17-Jun-2004, 21:26
Melvin Lin Melvin Lin is offline
New Member
 
Join Date: Mar 2004
Posts: 16
Melvin Lin is on a distinguished road

Clarify My Question


Quote:
Originally Posted by dsmith
?? - This doesn't really sound like a C/C++ question. If it isn't you should try posting in the hardware forums here. If it is a C/C++ question could you clarify what you are looking for? Do you want to write a program that will reduce a 640x480 jpg to a 320x240 jpg?

Thanks dsmith!
Because I use C++ for my programming language. So this is a question
with C++ programming technique. However, the important thing is to clarify
my question. This is not a question with "reducing a 640x480 jpg to a 320x240 jpg?" Reducing a 640x480 jpg to a 320x240 jpg is a question on
"image processing". What I want to question is a "camera display resolution".
I recently created a program for education. During the initializing of my app,
the runtime envronment should be 320*240 resolution to display camera image. But if a user usually use 640*480 or other resolution not 320*240,
my app will not allow such envrinment to run and will be termated.
How should I change camera resulotion, during my app runtime,
into 320*240 without any notification for user(that is in process) if the user is not using 320*240?
Thanks dsmith!
  #6  
Old 17-Jun-2004, 21:30
Melvin Lin Melvin Lin is offline
New Member
 
Join Date: Mar 2004
Posts: 16
Melvin Lin is on a distinguished road

Give Me a Hint


Quote:
Originally Posted by aaroncohn
Nah... someone else was doing some camera stuff awhile ago, and I'm pretty sure there's some code process that changes the camera recording resolution from 640*480 to 320*240.

Thanks aaroncohn!
You can have a reference to my reply to dsmith about clarifying my question.
If there's process code to handle such question domain, please give me a hint or instruction or reference or even source code, anyway.
Thanks aaroncohn!
  #7  
Old 18-Jun-2004, 02:02
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
http://www.gidforums.com/t-2569.html

I remember that you posted this awhile ago, and it appears to contain a function call to initialize the camera with a certain size.

CPP / C++ / C Code:
BOOL Init(HWND hwnd, int width=320, int height=240);
This appears to do what you want to do. I don't see anything wrong with shutting down the camera and reinitializing it just to change the capture resolution.
__________________
-Aaron
Last edited by JdS : 20-Jun-2004 at 04:55. Reason: Please insert [thread]thread number[/thread] tags to create links to other threads here
  #8  
Old 18-Jun-2004, 02:44
Melvin Lin Melvin Lin is offline
New Member
 
Join Date: Mar 2004
Posts: 16
Melvin Lin is on a distinguished road
Quote:
Originally Posted by aaroncohn
http://www.gidforums.com/t-2569.html

I remember that you posted this awhile ago, and it appears to contain a function call to initialize the camera with a certain size.

CPP / C++ / C Code:
BOOL Init(HWND hwnd, int width=320, int height=240);
This appears to do what you want to do. I don't see anything wrong with shutting down the camera and reinitializing it just to change the capture resolution.

Thanks aaroncohn!
Yes! I had posted such program code like:

BOOL Init(HWND hwnd, int width=320, int height=240);

But the purpose of this code is to DISPLAY camera image with 320*240 and to run my app normally "but not to CHANGE camera resolution into 320*240 under the circumstance of user who do not use 320*240 as his/her camera default resolution."

My question is:

If a user usually use 640*480 or other resolution not 320*240,
my app will not allow such envrinment to run and will be terminated.
How should I "CHANGE" camera resulotion, during my app runtime,
into 320*240 without any notification for user(that is in process) if the user is not using 320*240?
  #9  
Old 18-Jun-2004, 22:36
aaroncohn's Avatar
aaroncohn aaroncohn is offline
Regular Member
 
Join Date: Feb 2004
Location: Bay Area, CA.
Posts: 564
aaroncohn is a jewel in the roughaaroncohn is a jewel in the roughaaroncohn is a jewel in the rough
uhh... refer to my first post... the one near the top
__________________
-Aaron
 
 

Recent GIDBlogToyota - 2008 November Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Problem with Microsoft VFW.dll Melvin Lin C++ Forum 0 15-Jun-2004 00:27
C I/O problem kelly80 C Programming Language 4 27-Apr-2004 21:15
Another FX 5600 problem (but with details that might shed light on this) BobDaDuck Computer Hardware Forum 2 16-Apr-2004 08:53
unwanted scrollbar problem kelly001 Web Design Forum 3 24-Oct-2003 11:44
screen resolution zuzupus Web Design Forum 0 29-Jul-2003 03:50

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:23.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.