[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-developers] To using usb capture device with analog video comp
From: |
Fumitaka Yasukawa |
Subject: |
[Linphone-developers] To using usb capture device with analog video composite |
Date: |
Thu, 26 Jul 2012 18:45:03 +0900 |
hi, everyone
I need your helps to resolve this problem.
I want to do that linphone on windows supports usb capture device with
analog video composite as new feature.
So I am trying to add IAMCrossbar interface to route analog device.
However linphone hung up at get_PinCounts() that I added.
My environment:
MinGW version : 0.4-alpha-1 (mingw-get-inst-20111118.exe)
Linphone version : 3.5.2 (tar archive)
linphone-deps-win32: linphone-deps-win32-120218.zip
Describe added source: msdscap-mingw.cc
//
// 1. IID and define Interface
//
DEFINE_GUID( IID_IAMCrossbar, 0xc6e13380, 0x30ac, 0x11d0,
0xa1, 0x8c, 0x00, 0xa0, 0xc9, 0x11, 0x89, 0x56);
#define INTERFACE IAMCrossbar
DECLARE_INTERFACE_(IAMCrossbar, IUnknown)
{
STDMETHOD(QueryInterface) (THIS_ REFIID, PVOID*) PURE;
STDMETHOD_(ULONG, AddRef) (THIS);
STDMETHOD_(ULONG, Release) (THIS);
STDMETHOD(get_PinCounts) (THIS_ long *, long *);
STDMETHOD(CanRoute) (THIS_ long, long);
STDMETHOD(Route) (THIS_ long, long);
STDMETHOD(get_IsRoutedTo) (THIS_ long, long *);
STDMETHOD(get_CrossbarPinInfo) (THIS_ BOOL, long, long *, long *);
};
#undef INTERFACE
//
// 2. add follwing lines after selectBestFormat() in
DSCapture::createDshowGraph()
//
ComPtr< IAMCrossbar > pCrossbar;
PIN_INFO pinInfo;
sourceOut->QueryPinInfo(&pinInfo);
pinInfo.pFilter->QueryInterface(IID_IAMCrossbar, (void **)&pCrossbar);
LONG inputPinCount, outputPinCount;
pCrossbar->get_PinCounts(&outputPinCount, &inputPinCount);
Condition:
Compiling was successful.
But linphone hung up at aboving function:get_PinCounts(), when running it.
I have some question to figure it out.
Q1. Is aboving added codes right?
or need codes more?
Q2. Do I need anythingelse like configuration of mingw and directx?
Best regards
Fumitaka.Yasukawa
Japan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Linphone-developers] To using usb capture device with analog video composite,
Fumitaka Yasukawa <=