|
OK , I got the DirectShow to "play" an image from a camera in right splitter view of my MFC application. Now I need to capture a single frame and process it in differet splitter pane.
So if I can grab a frame , convert it to bitmap and than to OpenCV image I'be all set.
AFter finding ISamplerGrabber I also found this nice note included in MS documentation about ISampleGrabber.
Are these MS guys for real?
I sure hate to use something they do not support in next month.
<b>Note [Deprecated. This API may be removed from future releases of Windows.]</b>
|
|
|
|
|
Vaclav_Sal wrote: Deprecated. This API may be removed from future releases of Windows. A fairly common note in the MSDN documentation. It's just warning you that this may not be the best option.
Use the best guess
|
|
|
|
|
and really, it's implied just by virtue of being an MS product.
|
|
|
|
|
Use the best guess
|
|
|
|
|
Your posts made me curious. After some hunting around, I discovered that the new multimedia thing is... "Microsoft Media Foundation", which looks like in improved version of DirectShow. It's Windows Vista and later. (If I get crazy enough, I may rework an interactive multimedia product I created in the 90s using VFW to use this.)
|
|
|
|
|
It is true that Microsoft has moved on and left DirectShow behind. I have not gone there because so much of what I do still has to work on Windows XP.
I don't see a lot of articles on the subject, but this one was posted about two weeks ago: Capturing of video from web-camera on Windows 7 and 8 by Media Foundation[^]. To me, the most interesting thing about this article is how he decided to go with Media Foundation because of DirectShow problems on Windows 8.
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
Soren,
thanks for the link.
At this point I am pretty much stuck with DirectShow and would like to finish it.
After breif scan of the article it sure looks as people who like to do something serious;me excluded, I am doing this for "fun"; with video feel pretty much same about convoluted approach by MS.
It reminds me how they struggled with Windows form get-go ( who remembers Window ME?) and IE went pretty much same.
Cheers Vaclav
|
|
|
|
|
Vaclav,
Yes, I know you are working with VC6. I really just posted my comment and the link to that article as a response to Joe Woodbury mentioning the new Microsoft Media Foundation technology. I was not trying to get you to pursue it at this point.
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
Hi everyone, I am trying to implement turbo encoder, i am not getting how to write the code for D-Flipflop because i am not getting how to access a single bit in C++. please help me out..
|
|
|
|
|
In C/C++ single bits are acessed by using logical operators (and: &, or: |, xor: ^, not: ~) with masks with only one bit set. Additional bit operators are the shift left and right operators. An example would be counting the number of bits set in a variable:
unsigned CountBits(unsigned nVal)
{
unsigned nCount = 0;
while (nVal)
{
if (nVal & 1)
++nCount;
nVal >>= 1;
}
return nCount;
}
|
|
|
|
|
|
|
i found a method on the internet.
In the New Project dialog box select "New" and select "Custom Appwizard", enter the new project name, click the [OK] button. "Custom 1 of 2 AppWizardStep" dialog box appeared, and then select "An existing Project" item, click the [Next] button. "Custom 2 of 2 AppWizardStep" dialog box appeared, select an existing project file name, and click the [Finish] button. After the compiler generates an identical to an existing project but can be renamed engineering AppWizard.
however, when i used this method to make it,and after i compiled it, an error is coming:
--------------------Configuration: Luoyang - Win32 Pseudo-Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
Compiling...
Debug.cpp
Luoyang.cpp
LuoyangAw.cpp
Generating Code...
Linking...
LINK : error : Internal error during ReadSymbolTable
ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 004623F2
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000000
ExceptionInformation[ 1] = 00000008
CONTEXT:
Eax = 3FFFAFEC Esp = 0012E6A0
Ebx = 00000002 Ebp = 005D1B3A
Ecx = 3FFFAFEC Esi = 3FFFB3E0
Edx = 00000000 Edi = 3FFFB3E0
Eip = 004623F2 EFlags = 00010246
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 0000003B SegGs = 00000000
Dr0 = 0012E6A0 Dr3 = 00000002
Dr1 = 005D1B3A Dr6 = 3FFFAFEC
Dr2 = 00000000 Dr7 = 00000000
Error executing link.exe.
Tool execution canceled by user.
^^^^^^^
i don't know weather i make myself clear. because my English is very poor, but i really need your help.
|
|
|
|
|
What version of VS are you using?
November 2013 wrote: In the New Project dialog box select "New" and select "Custom Appwizard"... What category is this under?
This sounds more like a Visual Studio issue rather than a C/C++/MFC issue.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
modified 26-Mar-13 10:10am.
|
|
|
|
|
i did it with Microsoft Visual C++ 6.0.
|
|
|
|
|
|
After i read it, i still can't find my fault.In my opinion,My way is the same with this white paper.I followed it step by step.
When i compiled it, some errors occurred.Like i mentioned above.
I wish you could give me some solutions.
thank you.
|
|
|
|
|
Do you get those errors with other projects, too, or is it just with Custom AppWizard projects?
Does it happen in both Debug and Release mode?
Have you tried this?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
These errors only occurred when i created a Custom AppWizard projects by selecting an existing project.
|
|
|
|
|
yes,This situation still occurs.
|
|
|
|
|
November 2013 wrote: I wish you could give me some solutions. So do I, but with the information you have provided it is impossible. This looks more like an internal error with the product, in which case you should be reporting it to Microsoft.
Use the best guess
|
|
|
|
|
OK!I still want to thank you for your kindness.
|
|
|
|
|
While using some of the DirectShow sample codes I run into an application using Menu to select, as an example, video devices. I have been using standard pull-down combo box for camera selection.
I am wondering, if a simple selection is the goal, is such Menu preferred by some of you gurus?
At this point I have not tried to incorporate it into MFC application, but seems like it would have to be dynamically build Menu instead of MFC static menu.
Forgive me if I am inventing my own terminology here.
What's your take on this “dynamic” Menu idea?
Cheers
Vaclav
|
|
|
|
|
The answer is "it depends". Some applications will only ever use fixed menus, while others will require different menu items, where dynamic menus would be preferable. It is really for you to decide based on what the application is required to do.
Use the best guess
|
|
|
|
|
Please consider that in most cases just "greying out" menuitems is a better option than hiding them because it makes it easier for the users to find items. You know, "XYZ submenu, 10th item...". Of course sometimes only generated menu works, but even in that case you can get away by making only one or a few submenus generated and keeping the generated menuitems and the static ones separated to make it easier to find the static ones for the user.
|
|
|
|