update dev300-m58
[ooovba.git] / avmedia / source / gstreamer / gstframegrabber.hxx
blob30e431fe036cba84d2f77efa74965c6ac2d3ee69
1 /*************************************************************************
3 * OpenOffice.org - a multi-platform office productivity suite
5 * $RCSfile$
7 * $Revision$
9 * last change: $Author$ $Date$
11 * The Contents of this file are made available subject to
12 * the terms of GNU Lesser General Public License Version 2.1.
15 * GNU Lesser General Public License Version 2.1
16 * =============================================
17 * Copyright 2005 by Sun Microsystems, Inc.
18 * 901 San Antonio Road, Palo Alto, CA 94303, USA
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License version 2.1, as published by the Free Software Foundation.
24 * This library is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27 * Lesser General Public License for more details.
29 * You should have received a copy of the GNU Lesser General Public
30 * License along with this library; if not, write to the Free Software
31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32 * MA 02111-1307 USA
34 ************************************************************************/
36 #ifndef _FRAMEGRABBER_HXX
37 #define _FRAMEGRABBER_HXX
39 #include "gstcommon.hxx"
41 #ifndef _COM_SUN_STAR_MEDIA_XFRAMEGRABBER_HDL_
42 #include "com/sun/star/media/XFrameGrabber.hdl"
43 #endif
45 namespace avmedia { namespace gstreamer {
47 // ----------------
48 // - FrameGrabber -
49 // ----------------
51 class FrameGrabber : public ::cppu::WeakImplHelper2 < ::com::sun::star::media::XFrameGrabber,
52 ::com::sun::star::lang::XServiceInfo >
54 public:
56 FrameGrabber( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& rxMgr );
57 ~FrameGrabber();
59 bool create( const ::rtl::OUString& rURL );
61 // XFrameGrabber
62 virtual ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > SAL_CALL grabFrame( double fMediaTime ) throw (::com::sun::star::uno::RuntimeException);
64 // XServiceInfo
65 virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
66 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
67 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
69 private:
71 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > mxMgr;
72 ::rtl::OUString maURL;
75 } // namespace gstreamer
76 } // namespace avmedia
78 #endif // _FRAMEGRABBER_HXX