Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Local static variable is thread safe? Pin
Manoj Kumar Rai21-May-07 20:49
professionalManoj Kumar Rai21-May-07 20:49 
GeneralRe: Local static variable is thread safe? Pin
Best Kiluyar21-May-07 21:10
Best Kiluyar21-May-07 21:10 
GeneralRe: Local static variable is thread safe? Pin
rrrado21-May-07 22:26
rrrado21-May-07 22:26 
GeneralRe: Local static variable is thread safe? Pin
Best Kiluyar21-May-07 22:51
Best Kiluyar21-May-07 22:51 
Questionproblem with fread and char* Pin
dreamtwister21-May-07 19:10
dreamtwister21-May-07 19:10 
AnswerRe: problem with fread and char* Pin
User 58385221-May-07 19:57
User 58385221-May-07 19:57 
AnswerRe: problem with fread and char* Pin
led mike21-May-07 19:57
led mike21-May-07 19:57 
QuestionVideo recording on motion detection Pin
tyagineha21-May-07 18:18
tyagineha21-May-07 18:18 
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?????????????




tyagi
QuestionFlickering - pls help me its urgent Pin
deeps_cute21-May-07 18:16
deeps_cute21-May-07 18:16 
AnswerRe: Flickering - pls help me its urgent Pin
baerten21-May-07 21:45
baerten21-May-07 21:45 
QuestionText file to excel Pin
ashost0721-May-07 17:27
ashost0721-May-07 17:27 
AnswerRe: Text file to excel Pin
Manoj Kumar Rai21-May-07 19:52
professionalManoj Kumar Rai21-May-07 19:52 
AnswerRe: Text file to excel Pin
Nelek21-May-07 20:04
protectorNelek21-May-07 20:04 
AnswerRe: Text file to excel Pin
Sameerkumar Namdeo21-May-07 20:38
Sameerkumar Namdeo21-May-07 20:38 
QuestionConjunctive Normal Form Code [URGENT] Pin
Star0921-May-07 16:22
Star0921-May-07 16:22 
AnswerRe: Conjunctive Normal Form Code [URGENT] Pin
led mike21-May-07 20:03
led mike21-May-07 20:03 
GeneralRe: Conjunctive Normal Form Code [URGENT] Pin
Rajesh R Subramanian21-May-07 20:42
professionalRajesh R Subramanian21-May-07 20:42 
GeneralRe: Conjunctive Normal Form Code [URGENT] Pin
Mark Salsbery22-May-07 4:23
Mark Salsbery22-May-07 4:23 
GeneralRe: Conjunctive Normal Form Code [URGENT] Pin
Rajesh R Subramanian22-May-07 6:57
professionalRajesh R Subramanian22-May-07 6:57 
QuestionDatabase Class in VC++ Pin
Programm3r21-May-07 9:08
Programm3r21-May-07 9:08 
AnswerRe: Database Class in VC++ Pin
led mike21-May-07 9:26
led mike21-May-07 9:26 
GeneralRe: Database Class in VC++ Pin
Programm3r21-May-07 20:35
Programm3r21-May-07 20:35 
GeneralRe: Database Class in VC++ Pin
led mike22-May-07 4:21
led mike22-May-07 4:21 
GeneralRe: Database Class in VC++ Pin
Programm3r22-May-07 6:26
Programm3r22-May-07 6:26 
GeneralRe: Database Class in VC++ Pin
Rajesh R Subramanian22-May-07 6:55
professionalRajesh R Subramanian22-May-07 6:55 

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.