Click here to Skip to main content
15,884,353 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: packaging and deployment, the c++ redistribution file Pin
Aescleal11-May-12 2:22
Aescleal11-May-12 2:22 
GeneralThanks all Pin
jkirkerx11-May-12 6:56
professionaljkirkerx11-May-12 6:56 
QuestionHow to Change the Blue Selection Color in Edit Control Pin
vishalgpt10-May-12 8:01
vishalgpt10-May-12 8:01 
AnswerRe: How to Change the Blue Selection Color in Edit Control Pin
David Crow10-May-12 9:45
David Crow10-May-12 9:45 
QuestionRe: How to Change the Blue Selection Color in Edit Control Pin
vishalgpt11-May-12 3:45
vishalgpt11-May-12 3:45 
AnswerRe: How to Change the Blue Selection Color in Edit Control Pin
David Crow11-May-12 3:49
David Crow11-May-12 3:49 
GeneralRe: How to Change the Blue Selection Color in Edit Control Pin
vishalgpt11-May-12 20:58
vishalgpt11-May-12 20:58 
QuestionSOLVED Is USB camera video compressed and in what format?? Pin
Vaclav_10-May-12 6:55
Vaclav_10-May-12 6:55 
SOLVED
Adding MJPEG driver to my box solved the problem.
Now I need to clean up the test mess I have added to my app!
Moral of the story - when working with OpenCV beware of lack of commnets in the code and always check the logic, it is not the best. I actually feel this is a (logical ) bug and has been in OpenCV since 1.1 and it is still in 2.4.0.

Thanks for all your help.
vaclav






I am trying to display image from USB connected camera.
I know the camera works – I can get a nice image using MS Scanner and Camera wizard.
My problem is that capGetVideoFormat fills the BITMAPINFO biCompression with a value I have no idea what it represents. MSDN is no help in defining this in video frame.
If it is a decompressor info it does not match any of 15 decompression installed on the system.
So
<b>how do I KNOW for sure the USB video is compressed and
how do I use this biCompression value for further processing?</b>

Here is the offending snippet from OpenCV library
BITMAPINFO vfmt;
memset( &vfmt, 0, sizeof(vfmt));
BITMAPINFOHEADER& vfmt0 = vfmt.bmiHeader; // input header
int sz, prevWidth, prevHeight;
if( !capWnd )
return 0;
this fills the biCompression value in question

sz = capGetVideoFormat( capWnd, &vfmt, sizeof(vfmt));
…..............
And this is where attempt to locate the decompressor driver fails

hic = ICLocate (ICTYPE_VIDEO, 0L, (LPBITMAPINFOHEADER) &vfmt,
NULL, ICMODE_DECOMPRESS);

Any suggestions are as always appreciated.
PS I need to stay with capAVI and OpenCV.
Thanks
Vaclav
QuestionRe: Is USB camera video compressed and in what format?? Pin
CPallini10-May-12 7:10
mveCPallini10-May-12 7:10 
AnswerRe: Is USB camera video compressed and in what format?? Pin
Vaclav_10-May-12 7:28
Vaclav_10-May-12 7:28 
GeneralRe: Is USB camera video compressed and in what format?? Pin
Graham Breach10-May-12 7:59
Graham Breach10-May-12 7:59 
GeneralRe: Is USB camera video compressed and in what format?? Pin
CPallini10-May-12 10:48
mveCPallini10-May-12 10:48 
GeneralRe: Is USB camera video compressed and in what format?? Pin
Vaclav_10-May-12 11:03
Vaclav_10-May-12 11:03 
GeneralRe: Is USB camera video compressed and in what format?? Pin
Vaclav_10-May-12 12:14
Vaclav_10-May-12 12:14 
QuestionDrawImage() Pin
john563210-May-12 4:00
john563210-May-12 4:00 
AnswerRe: DrawImage() Pin
Chris Losinger10-May-12 4:26
professionalChris Losinger10-May-12 4:26 
AnswerRe: DrawImage() Pin
peilinok10-May-12 21:03
peilinok10-May-12 21:03 
QuestionIssue with CreateControl after migration a workspace which was in VC6 to VS2010 Pin
V K 210-May-12 1:13
V K 210-May-12 1:13 
AnswerRe: Issue with CreateControl after migration a workspace which was in VC6 to VS2010 Pin
Richard MacCutchan10-May-12 2:26
mveRichard MacCutchan10-May-12 2:26 
Questionwhat's means? Pin
wangafei9-May-12 21:31
wangafei9-May-12 21:31 
AnswerRe: what's means? PinPopular
Code-o-mat9-May-12 21:47
Code-o-mat9-May-12 21:47 
GeneralRe: what's means? Pin
wangafei9-May-12 22:00
wangafei9-May-12 22:00 
AnswerRe: what's means? Pin
Malli_S10-May-12 0:29
Malli_S10-May-12 0:29 
GeneralRe: what's means? Pin
wangafei10-May-12 16:47
wangafei10-May-12 16:47 
Questionreference to const int Pin
Aabid9-May-12 21:16
Aabid9-May-12 21:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.