Click here to Skip to main content
16,011,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionISampleGrabber Help Pin
ceejeeb6-Jan-07 2:54
ceejeeb6-Jan-07 2:54 
QuestionRe: ISampleGrabber Help Pin
Mark Salsbery6-Jan-07 5:45
Mark Salsbery6-Jan-07 5:45 
QuestionRe: ISampleGrabber Help Pin
ceejeeb6-Jan-07 12:35
ceejeeb6-Jan-07 12:35 
QuestionRe: ISampleGrabber Help Pin
Mark Salsbery6-Jan-07 13:19
Mark Salsbery6-Jan-07 13:19 
AnswerRe: ISampleGrabber Help Pin
ceejeeb7-Jan-07 1:59
ceejeeb7-Jan-07 1:59 
GeneralRe: ISampleGrabber Help Pin
Mark Salsbery7-Jan-07 4:53
Mark Salsbery7-Jan-07 4:53 
GeneralRe: ISampleGrabber Help Pin
ceejeeb8-Jan-07 2:46
ceejeeb8-Jan-07 2:46 
GeneralRe: ISampleGrabber Help Pin
Mark Salsbery8-Jan-07 5:45
Mark Salsbery8-Jan-07 5:45 
1) Create an instance of the sample grabber filter
2) Obtain a pointer to its ISampleGrabber interface
3) Implement ISampleGrabberCB interface (see below)
4) Create an instance of your ISampleGrabberCB interface
5) Use ISampleGrabber::SetCallback() to set the filter to use your callback

I was going to post code but to save typing I'll post a link (yeah, I'm lazy Smile | :) )
In this link is one way of implementing the ISampleGrabberCB interface. You don't really need
to do anything COM related with it so it's pretty simple. The point is to expose the two callback
methods to the ISampleGrabber interface, which expects a ISampleGrabberCB interface.
Capturing an Image From a Still Image Pin[^]
This code demonstrates using the BufferCB callback but you may find the SampleCB callback is
more appropriate for what you are doing.

Since you want 10 frames a second the easiest way to implement the callback is to run the
stream at 10fps. Then you just grab every frame. For smoother rendering (if you are rendering
while capturing) then maybe set up the video for 20fps and grab every other frame.

Hopefully this will help get you started Smile | :)
Mark
GeneralRe: ISampleGrabber Help Pin
ceejeeb9-Jan-07 4:30
ceejeeb9-Jan-07 4:30 
QuestionRe: ISampleGrabber Help Pin
Mark Salsbery9-Jan-07 6:40
Mark Salsbery9-Jan-07 6:40 
QuestionWorking with modem Pin
javad_p6-Jan-07 2:08
javad_p6-Jan-07 2:08 
AnswerRe: Working with modem Pin
Alexander M.,6-Jan-07 13:42
Alexander M.,6-Jan-07 13:42 
Questioncan we find the status of a system? Pin
ShaluMalu6-Jan-07 1:43
ShaluMalu6-Jan-07 1:43 
AnswerRe: can we find the status of a system? Pin
Monty26-Jan-07 1:57
Monty26-Jan-07 1:57 
AnswerRe: can we find the status of a system? Pin
Cristian Amarie6-Jan-07 2:03
Cristian Amarie6-Jan-07 2:03 
Questionrandom 12-bit unsinged int Pin
ikbahrian6-Jan-07 1:35
ikbahrian6-Jan-07 1:35 
QuestionRe: random 12-bit unsinged int Pin
Johan Pretorius6-Jan-07 2:02
Johan Pretorius6-Jan-07 2:02 
AnswerRe: random 12-bit unsinged int Pin
ikbahrian6-Jan-07 2:12
ikbahrian6-Jan-07 2:12 
GeneralRe: random 12-bit unsinged int [modified] Pin
Johan Pretorius6-Jan-07 2:19
Johan Pretorius6-Jan-07 2:19 
GeneralRe: random 12-bit unsinged int Pin
ikbahrian6-Jan-07 2:40
ikbahrian6-Jan-07 2:40 
AnswerRe: random 12-bit unsinged int Pin
Johan Pretorius6-Jan-07 3:05
Johan Pretorius6-Jan-07 3:05 
GeneralRe: random 12-bit unsinged int Pin
ikbahrian6-Jan-07 3:14
ikbahrian6-Jan-07 3:14 
GeneralRe: random 12-bit unsinged int Pin
Johan Pretorius6-Jan-07 5:25
Johan Pretorius6-Jan-07 5:25 
GeneralRe: random 12-bit unsinged int Pin
Johan Pretorius6-Jan-07 5:44
Johan Pretorius6-Jan-07 5:44 
Questionhow to track a URL(website address) Pin
ShaluMalu6-Jan-07 1:22
ShaluMalu6-Jan-07 1:22 

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.