Click here to Skip to main content
15,029,206 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 9:11
MemberMark Salsbery27-Aug-08 9:11 
GeneralRe: Setting menu item disabled state problem Pin
led mike27-Aug-08 9:31
Memberled mike27-Aug-08 9:31 
GeneralRe: Setting menu item disabled state problem Pin
Mark Salsbery27-Aug-08 9:37
MemberMark Salsbery27-Aug-08 9:37 
QuestionCAVI "bitmap" colors - reserved value question Pin
Vaclav_27-Aug-08 8:00
MemberVaclav_27-Aug-08 8:00 
AnswerRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery27-Aug-08 8:05
MemberMark Salsbery27-Aug-08 8:05 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Vaclav_27-Aug-08 8:22
MemberVaclav_27-Aug-08 8:22 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery27-Aug-08 8:49
MemberMark Salsbery27-Aug-08 8:49 
GeneralRe: CAVI "bitmap" colors - reserved value question Pin
Vaclav_28-Aug-08 11:45
MemberVaclav_28-Aug-08 11:45 
Mark,
just FYI. I think I can figure this out by myself.

Here is the AVI calback setup and its callback function.

BOOL bCallback = capSetCallbackOnFrame(hWnd, _grabber_CallbackProc);

The docs saiz something about "..and will display it in created window".
It does and that what tru me off - there is no need to convert it to bitmap and then display it if I only want to see it in view window. OK.


However, the _grabber_CallbackProc SetImageData method copies the raw data and it gets messed up in BITMAPINFO!

What I really need is to find out the "layout" of the LPVIDEOHDR and than copy it into BITMAPINFO color map correctly.

Or better yet - do my histogram extraction on the AVI data directly.


LRESULT PASCAL _grabber_CallbackProc(HWND hWnd, LPVIDEOHDR lpVHdr)
{

ASSERT_VALID(theOnlyOneGrabber);
validCallHint = TRUE;

// set grabber image data
theOnlyOneGrabber->SetImageData(lpVHdr->lpData);

validCallHint = FALSE;
return 0;
}


PS As always - ignore the > !!

Thanks for reading.
Vaclav
QuestionRe: CAVI "bitmap" colors - reserved value question Pin
Mark Salsbery29-Aug-08 5:24
MemberMark Salsbery29-Aug-08 5:24 
Questioncopy/past column from excel file to an other one Pin
zdoucha27-Aug-08 7:43
Memberzdoucha27-Aug-08 7:43 
AnswerRe: copy/past column from excel file to an other one Pin
David Crow27-Aug-08 8:14
MemberDavid Crow27-Aug-08 8:14 
QuestionPreprocessor confusion Pin
s196675m27-Aug-08 6:42
Members196675m27-Aug-08 6:42 
AnswerRe: Preprocessor confusion Pin
Mark Salsbery27-Aug-08 7:08
MemberMark Salsbery27-Aug-08 7:08 
AnswerRe: Preprocessor confusion Pin
Cedric Moonen27-Aug-08 7:40
MemberCedric Moonen27-Aug-08 7:40 
QuestionSO_RCVTIMEO not working for nonblocking win32 socket Pin
onlyjaypatel27-Aug-08 3:11
Memberonlyjaypatel27-Aug-08 3:11 
AnswerRe: SO_RCVTIMEO not working for nonblocking win32 socket Pin
SandipG 27-Aug-08 3:32
Member SandipG 27-Aug-08 3:32 
QuestionInhertance Diamond problem Pin
laksh220427-Aug-08 2:41
Memberlaksh220427-Aug-08 2:41 
AnswerRe: Inhertance Diamond problem [modified] Pin
Nibu babu thomas27-Aug-08 2:48
MemberNibu babu thomas27-Aug-08 2:48 
GeneralRe: Inhertance Diamond problem Pin
laksh220427-Aug-08 3:28
Memberlaksh220427-Aug-08 3:28 
GeneralRe: Inhertance Diamond problem Pin
Nibu babu thomas27-Aug-08 3:36
MemberNibu babu thomas27-Aug-08 3:36 
AnswerRe: Inhertance Diamond problem Pin
_AnsHUMAN_ 27-Aug-08 2:55
Member_AnsHUMAN_ 27-Aug-08 2:55 
AnswerRe: Inhertance Diamond problem Pin
Sarath C27-Aug-08 4:37
MemberSarath C27-Aug-08 4:37 
QuestionHow to run VB Script in MFC program? Pin
santhoshv8427-Aug-08 2:34
Membersanthoshv8427-Aug-08 2:34 
AnswerRe: How to run VB Script in MFC program? Pin
Nibu babu thomas27-Aug-08 2:37
MemberNibu babu thomas27-Aug-08 2:37 
QuestionAdd EditControl Pin
MsmVc27-Aug-08 2:06
MemberMsmVc27-Aug-08 2:06 

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.