Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Working With USB to Parallel adapter Pin
McElwees24-Jul-06 15:05
McElwees24-Jul-06 15:05 
QuestionEscape characters Pin
jon-8023-Jul-06 7:53
professionaljon-8023-Jul-06 7:53 
AnswerRe: Escape characters Pin
Michael Dunn23-Jul-06 8:53
sitebuilderMichael Dunn23-Jul-06 8:53 
AnswerRe: Escape characters Pin
Steve Echols23-Jul-06 17:52
Steve Echols23-Jul-06 17:52 
QuestionVirtual WebCam Pin
DobosCake23-Jul-06 7:17
DobosCake23-Jul-06 7:17 
AnswerRe: Virtual WebCam Pin
Justin Tay23-Jul-06 7:44
Justin Tay23-Jul-06 7:44 
AnswerRe: Virtual WebCam Pin
DobosCake23-Jul-06 8:49
DobosCake23-Jul-06 8:49 
GeneralRe: Virtual WebCam Pin
Justin Tay23-Jul-06 10:07
Justin Tay23-Jul-06 10:07 
Ok, sounds pretty nasty. So I think your two methods are

1) "Capture" filter creates an internal graph with sample grabber. When sample grabber provides sample, copy the data in the sample into the buffer your "capture" filter gets from its allocator and pass that sample along.

2) "Capture" filter creates an internal graph and connects the output pin of the last filter in the chain with the input pin being provided.

Never faced with something like this before, the first method is workable. I *think* the second one might work. I guess there is quite a bit of delegation of calls to other interfaces (Run(), Stop() etc from the filter to the internal graph manager or I think you can do it yourself by going through the filters upstream and calling Run() etc).

I guess one thing to be careful about is that all the filters have agreed on actual memory allocators that are allocating the sample buffers since you are connecting them up in such a manner.

DobosCake wrote:
sometimes just didn't refresh the picture properly


This *could* be because the format that you are requesting off the sample grabber isn't the preferred format of the video renderer (which like YUV media types). Kind of a stab in the dark though. If you use GraphEdit do you see this as well? You might want to try with all the 3 different video renderers.

DobosCake wrote:
Internally, I built a regular filter graph (using IGraphBuilder::RenderFile with the file you choose from the file dialog).


I tend to dislike breaking pins after they get connected as sometimes that filter could be buggy and might get stuck in a wrong state. I generally prefer to use IGraphBuilder::AddSourceFilter() to get the source filter, and then ICaptureGraphBuilder2::RenderStream() to string the filters up together. You could string up the SourceFilter -> SampleGrabber -> NullRenderer.


AnswerRe: Virtual WebCam Pin
DobosCake23-Jul-06 23:48
DobosCake23-Jul-06 23:48 
Questionwhy use new() function in C++? Pin
kitty523-Jul-06 7:16
kitty523-Jul-06 7:16 
AnswerRe: why use new() function in C++? Pin
Chris Losinger23-Jul-06 10:03
professionalChris Losinger23-Jul-06 10:03 
GeneralRe: why use new() function in C++? Pin
kitty523-Jul-06 13:06
kitty523-Jul-06 13:06 
GeneralRe: why use new() function in C++? Pin
Chris Losinger23-Jul-06 14:11
professionalChris Losinger23-Jul-06 14:11 
QuestionArray of chars Pin
jon-8023-Jul-06 4:08
professionaljon-8023-Jul-06 4:08 
AnswerRe: Array of chars [modified] Pin
Justin Tay23-Jul-06 4:22
Justin Tay23-Jul-06 4:22 
QuestionNM_CUSTOMDRAW with the default ToolBar in MDI Pin
kdehairy23-Jul-06 1:39
kdehairy23-Jul-06 1:39 
AnswerRe: NM_CUSTOMDRAW with the default ToolBar in MDI Pin
Hamid_RT23-Jul-06 3:05
Hamid_RT23-Jul-06 3:05 
GeneralRe: NM_CUSTOMDRAW with the default ToolBar in MDI Pin
kdehairy27-Jul-06 7:42
kdehairy27-Jul-06 7:42 
GeneralRe: NM_CUSTOMDRAW with the default ToolBar in MDI Pin
Hamid_RT27-Jul-06 22:27
Hamid_RT27-Jul-06 22:27 
QuestionCListCtrl with static columns. Pin
paperke6723-Jul-06 1:35
paperke6723-Jul-06 1:35 
AnswerRe: CListCtrl with static columns. Pin
Hamid_RT27-Jul-06 7:25
Hamid_RT27-Jul-06 7:25 
GeneralRe: CListCtrl with static columns. Pin
paperke6729-Jul-06 2:29
paperke6729-Jul-06 2:29 
GeneralRe: CListCtrl with static columns. Pin
Hamid_RT29-Jul-06 2:55
Hamid_RT29-Jul-06 2:55 
QuestionListbox control variable ?? Pin
jon-8023-Jul-06 1:15
professionaljon-8023-Jul-06 1:15 
AnswerRe: Listbox control variable ?? Pin
Hamid_RT23-Jul-06 3:00
Hamid_RT23-Jul-06 3:00 

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.