Click here to Skip to main content
15,902,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGrabbing a word under the mouse Pin
Waldermort20-May-07 22:01
Waldermort20-May-07 22:01 
AnswerRe: Grabbing a word under the mouse Pin
Hamid_RT20-May-07 22:15
Hamid_RT20-May-07 22:15 
GeneralRe: Grabbing a word under the mouse Pin
Waldermort20-May-07 22:32
Waldermort20-May-07 22:32 
Questiontcscpy_s.inl Pin
subramanyeswari20-May-07 21:49
subramanyeswari20-May-07 21:49 
QuestionRe: tcscpy_s.inl Pin
GuyM21-May-07 0:42
GuyM21-May-07 0:42 
QuestionHelp,about destroy a CWnd Pin
kcynic20-May-07 21:32
kcynic20-May-07 21:32 
AnswerRe: Help,about destroy a CWnd Pin
Nelek21-May-07 1:01
protectorNelek21-May-07 1:01 
GeneralRe: Help,about destroy a CWnd Pin
kcynic21-May-07 3:42
kcynic21-May-07 3:42 
GeneralRe: Help,about destroy a CWnd Pin
Mark Salsbery21-May-07 5:32
Mark Salsbery21-May-07 5:32 
GeneralRe: Help,about destroy a CWnd Pin
kcynic21-May-07 12:45
kcynic21-May-07 12:45 
GeneralRe: Help,about destroy a CWnd Pin
Mark Salsbery21-May-07 12:55
Mark Salsbery21-May-07 12:55 
GeneralRe: Help,about destroy a CWnd Pin
kcynic21-May-07 19:34
kcynic21-May-07 19:34 
QuestionNetwork Management Pin
dharani20-May-07 21:27
dharani20-May-07 21:27 
AnswerRe: Network Management Pin
Hamid_RT20-May-07 22:10
Hamid_RT20-May-07 22:10 
QuestionCreateProcess problem. Pin
david bagaturia20-May-07 21:00
david bagaturia20-May-07 21:00 
AnswerRe: CreateProcess problem. Pin
dharani20-May-07 21:15
dharani20-May-07 21:15 
GeneralRe: CreateProcess problem. Pin
david bagaturia20-May-07 21:20
david bagaturia20-May-07 21:20 
GeneralRe: CreateProcess problem. Pin
dharani20-May-07 21:28
dharani20-May-07 21:28 
GeneralRe: CreateProcess problem. Pin
david bagaturia20-May-07 21:33
david bagaturia20-May-07 21:33 
AnswerRe: CreateProcess problem. Pin
Stephen Hewitt20-May-07 21:51
Stephen Hewitt20-May-07 21:51 
GeneralRe: CreateProcess problem. Pin
david bagaturia20-May-07 22:46
david bagaturia20-May-07 22:46 
QuestionMotion Detection in VC++ Pin
tyagineha20-May-07 20:02
tyagineha20-May-07 20:02 
AnswerRe: Motion Detection in VC++ Pin
bankai12320-May-07 21:59
bankai12320-May-07 21:59 
GeneralRe: Motion Detection in VC++ Pin
tyagineha20-May-07 22:35
tyagineha20-May-07 22:35 
i have used following four functions for motion detection part only:
1)AdjustMotionDetectPrecision()
2)SetupMotionDetection()
3)StartMotionDetection()
4)MotionAnalyzer()
using these four functions,motion detected has started.
but i dnt knw how to start recording????
i m sending u some code :

here it is::::

if(frameType > 0)
{
if(frameType == PktSysHeader)
{

memcpy(FileHeader[channelNum], DataBuf, Length);
FileHeaderLen = Length;
}

if(frameType == PktIFrames || frameType ==PktSubIFrames)
{
status = 1;
}
else
{
status = 0;
}
if(frameType == PktMotionDetection)
{
int result[4];
if(bOverlayMode)
{
hkdlg->m_VideoWin.DrawVectEx(channelNum, (char *)DataBuf);
}
else
{
hkdlg->m_bMoving[channelNum] = TRUE;
memcpy(motionData[channelNum],(char*)DataBuf,Length);
}
MotionAnalyzer(ChannelHandle[channelNum],(char*)DataBuf,15,result);
if((result[0] + result[1] + result[2] + result[3]))
{
if (channelNum ==0)
TRACE("!!!!!!!CH=%d motion detect result is %d %d %d %d\n",channelNum,result[0],\
result[1],result[2],result[3]);
//The function Trigger() do the following operation: write the video&audio data which are before the motion frame to file

if(!hkdlg->baftermotion[channelNum])
alarmFile[channelNum].Trigger(gFileHandle[channelNum]);

//when the motion frame returns,clear ualreadywriteframes[channelNum] and set it as 0 ,be ready for writing the video&audio data after motion

hkdlg->ualreadywriteframes[channelNum]=0;
hkdlg->baftermotion[channelNum]=TRUE;
}

return 0;
}
if(frameType == PktOrigImage)
{
return 0;
}


In this code should i start recording after motionanalyser() function?????????????



Neha
AnswerRe: Motion Detection in VC++ Pin
Hamid_RT22-May-07 19:23
Hamid_RT22-May-07 19:23 

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.