diff options
Diffstat (limited to 'avmedia/source/win/framegrabber.cxx')
-rw-r--r-- | avmedia/source/win/framegrabber.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/avmedia/source/win/framegrabber.cxx b/avmedia/source/win/framegrabber.cxx index 4d6305c8ca12..65300406b276 100644 --- a/avmedia/source/win/framegrabber.cxx +++ b/avmedia/source/win/framegrabber.cxx @@ -49,20 +49,19 @@ using namespace ::com::sun::star; namespace avmedia { namespace win { -// - FrameGrabber - - - FrameGrabber::FrameGrabber( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) : mxMgr( rxMgr ) { ::CoInitialize( NULL ); } + FrameGrabber::~FrameGrabber() { ::CoUninitialize(); } + IMediaDet* FrameGrabber::implCreateMediaDet( const OUString& rURL ) const { IMediaDet* pDet = NULL; @@ -85,6 +84,7 @@ IMediaDet* FrameGrabber::implCreateMediaDet( const OUString& rURL ) const return pDet; } + bool FrameGrabber::create( const OUString& rURL ) { // just check if a MediaDet interface can be created with the given URL @@ -102,6 +102,7 @@ bool FrameGrabber::create( const OUString& rURL ) return !maURL.isEmpty(); } + uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMediaTime ) throw (uno::RuntimeException) { @@ -198,18 +199,21 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe return xRet; } + OUString SAL_CALL FrameGrabber::getImplementationName( ) throw (uno::RuntimeException) { return OUString( AVMEDIA_WIN_FRAMEGRABBER_IMPLEMENTATIONNAME ); } + sal_Bool SAL_CALL FrameGrabber::supportsService( const OUString& ServiceName ) throw (uno::RuntimeException) { return cppu::supportsService(this, ServiceName); } + uno::Sequence< OUString > SAL_CALL FrameGrabber::getSupportedServiceNames( ) throw (uno::RuntimeException) { |