Click here to Skip to main content
15,914,397 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Unhandled Exception errror in CStringData GetData() Pin
«_Superman_»10-May-12 19:19
professional«_Superman_»10-May-12 19:19 
GeneralRe: Unhandled Exception errror in CStringData GetData() Pin
Anu_Bala10-May-12 19:34
Anu_Bala10-May-12 19:34 
GeneralRe: Unhandled Exception errror in CStringData GetData() Pin
ThatsAlok10-May-12 22:56
ThatsAlok10-May-12 22:56 
QuestionRe: Unhandled Exception errror in CStringData GetData() Pin
David Crow11-May-12 2:21
David Crow11-May-12 2:21 
Questiondlg can make by XML? Pin
wangafei10-May-12 16:42
wangafei10-May-12 16:42 
AnswerRe: dlg can make by XML? Pin
«_Superman_»10-May-12 19:16
professional«_Superman_»10-May-12 19:16 
AnswerRe: dlg can make by XML? Pin
ThatsAlok10-May-12 22:54
ThatsAlok10-May-12 22:54 
AnswerRe: dlg can make by XML? Pin
Code-o-mat11-May-12 0:23
Code-o-mat11-May-12 0:23 
AnswerRe: dlg can make by XML? Pin
Aescleal11-May-12 2:15
Aescleal11-May-12 2:15 
Questionpackaging and deployment, the c++ redistribution file Pin
jkirkerx10-May-12 11:00
professionaljkirkerx10-May-12 11:00 
AnswerRe: packaging and deployment, the c++ redistribution file Pin
«_Superman_»10-May-12 19:05
professional«_Superman_»10-May-12 19:05 
AnswerRe: packaging and deployment, the c++ redistribution file Pin
peilinok10-May-12 20:56
peilinok10-May-12 20:56 
AnswerRe: packaging and deployment, the c++ redistribution file Pin
TinyDevices11-May-12 1:52
professionalTinyDevices11-May-12 1:52 
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 

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.