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