fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / avmedia / source / opengl / oglframegrabber.hxx
blobdb8a926cedd13e4342f72b414375e6d845ba13a6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_AVMEDIA_SOURCE_OPENGL_OGLFRAMEGRABBER_HXX
11 #define INCLUDED_AVMEDIA_SOURCE_OPENGL_OGLFRAMEGRABBER_HXX
13 #include <cppuhelper/compbase2.hxx>
14 #include <com/sun/star/lang/XServiceInfo.hpp>
15 #include <com/sun/star/media/XFrameGrabber.hpp>
17 #include <libgltf.h>
19 namespace avmedia { namespace ogl {
21 typedef ::cppu::WeakImplHelper2< com::sun::star::media::XFrameGrabber,
22 com::sun::star::lang::XServiceInfo > FrameGrabber_BASE;
24 class OGLFrameGrabber : public FrameGrabber_BASE
26 public:
28 explicit OGLFrameGrabber( libgltf::glTFHandle& rHandle );
29 virtual ~OGLFrameGrabber();
31 // XFrameGrabber
32 virtual com::sun::star::uno::Reference< com::sun::star::graphic::XGraphic > SAL_CALL grabFrame( double fMediaTime ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
34 // XServiceInfo
35 virtual OUString SAL_CALL getImplementationName() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
36 virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
37 virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
39 private:
40 libgltf::glTFHandle& m_rHandle;
43 } // namespace ogl
44 } // namespace avmedia
46 #endif // INCLUDED_AVMEDIA_SOURCE_OPENGL_OGLFRAMEGRABBER_HXX
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */