Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Thread Sync Pin
Chuck O'Toole13-Dec-11 4:02
Chuck O'Toole13-Dec-11 4:02 
I just want to point out that if, as you say "the problem is that the grabbing is faster then my calculation", then you are destined to lose frames. Threads and frame queues may help with the management of the arriving data but it is basic queueing, if your per-frame processing time exceeds the frame inter-arrival time, you will have problems. This basic tenet was masterfully demonstrated by the late Lucile Ball in the famous "chocolate candy factory" skit. Processing/interarrival mismatch[^]

Once you get the synchronization of the threads and queueing out of the way, you either need to make your processing faster or decide on how you choose which incoming frames to discard.

modified 13-Dec-11 10:46am.

GeneralRe: Thread Sync Pin
Chris Meech13-Dec-11 7:07
Chris Meech13-Dec-11 7:07 
GeneralImage/Motion Detection Pin
joelcohen12-Dec-11 18:28
joelcohen12-Dec-11 18:28 
GeneralRe: Image/Motion Detection Pin
YvesDaoust12-Dec-11 22:29
YvesDaoust12-Dec-11 22:29 
GeneralRe: Image/Motion Detection Pin
Richard MacCutchan12-Dec-11 22:57
mveRichard MacCutchan12-Dec-11 22:57 
QuestionFlash Player Activex problem Pin
trioum12-Dec-11 16:57
trioum12-Dec-11 16:57 
AnswerRe: Flash Player Activex problem Pin
KingsGambit12-Dec-11 17:17
KingsGambit12-Dec-11 17:17 
GeneralRe: Flash Player Activex problem Pin
trioum12-Dec-11 18:36
trioum12-Dec-11 18:36 
QuestionODBC - Using Parameters to build a SQL Command Pin
jkirkerx12-Dec-11 5:26
professionaljkirkerx12-Dec-11 5:26 
AnswerRe: ODBC - Got this to work, perhaps 1 thing away Pin
jkirkerx12-Dec-11 6:39
professionaljkirkerx12-Dec-11 6:39 
GeneralRe: ODBC - Got this to work, perhaps 1 thing away Pin
jschell12-Dec-11 8:28
jschell12-Dec-11 8:28 
GeneralRe: ODBC - Got this to work, perhaps 1 thing away Pin
jkirkerx12-Dec-11 9:46
professionaljkirkerx12-Dec-11 9:46 
GeneralRe: ODBC - Got this to work, perhaps 1 thing away Pin
Bram van Kampen12-Dec-11 15:08
Bram van Kampen12-Dec-11 15:08 
GeneralRe: ODBC - Got this to work, perhaps 1 thing away Pin
jkirkerx12-Dec-11 16:06
professionaljkirkerx12-Dec-11 16:06 
QuestionHow to play those MOV files those are not played in Window Media Player? Pin
Le@rner11-Dec-11 23:46
Le@rner11-Dec-11 23:46 
AnswerRe: How to play those MOV files those are not played in Window Media Player? Pin
JackDingler12-Dec-11 9:18
JackDingler12-Dec-11 9:18 
GeneralRe: How to play those MOV files those are not played in Window Media Player? Pin
Le@rner12-Dec-11 17:26
Le@rner12-Dec-11 17:26 
GeneralRe: How to play those MOV files those are not played in Window Media Player? Pin
JackDingler12-Dec-11 20:58
JackDingler12-Dec-11 20:58 
AnswerRe: How to play those MOV files those are not played in Window Media Player? Pin
User 742933812-Dec-11 9:18
professionalUser 742933812-Dec-11 9:18 
QuestionCProgressCtrl- Marquee Mode Pin
Bram van Kampen11-Dec-11 15:04
Bram van Kampen11-Dec-11 15:04 
AnswerRe: CProgressCtrl- Marquee Mode Pin
Richard MacCutchan11-Dec-11 22:38
mveRichard MacCutchan11-Dec-11 22:38 
GeneralRe: CProgressCtrl- Marquee Mode Pin
Bram van Kampen12-Dec-11 14:30
Bram van Kampen12-Dec-11 14:30 
GeneralRe: CProgressCtrl- Marquee Mode Pin
Richard MacCutchan12-Dec-11 22:39
mveRichard MacCutchan12-Dec-11 22:39 
GeneralRe: CProgressCtrl- Marquee Mode Pin
Bram van Kampen17-Dec-11 16:07
Bram van Kampen17-Dec-11 16:07 
GeneralRe: CProgressCtrl- Marquee Mode Pin
Richard MacCutchan17-Dec-11 21:34
mveRichard MacCutchan17-Dec-11 21:34 

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.