LCOV - code coverage report
Current view: top level - avmedia/source/opengl - oglframegrabber.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 16 0.0 %
Date: 2014-04-14 Functions: 0 7 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       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             :  */
       9             : 
      10             : #include "oglframegrabber.hxx"
      11             : 
      12             : #include <cppuhelper/supportsservice.hxx>
      13             : #include <vcl/bitmapex.hxx>
      14             : #include <vcl/graph.hxx>
      15             : 
      16             : using namespace com::sun::star;
      17             : 
      18             : namespace avmedia { namespace ogl {
      19             : 
      20           0 : OGLFrameGrabber::OGLFrameGrabber( const OUString& /*rUrl*/ )
      21           0 :     : FrameGrabber_BASE()
      22             : {
      23           0 : }
      24             : 
      25           0 : OGLFrameGrabber::~OGLFrameGrabber()
      26             : {
      27           0 : }
      28             : 
      29           0 : uno::Reference< css::graphic::XGraphic > SAL_CALL OGLFrameGrabber::grabFrame( double /*fMediaTime*/ )
      30             :         throw ( uno::RuntimeException, std::exception )
      31             : {
      32             :     // TODO: Here we need a bitmap of the model at the point specified by fMediaTime
      33             :     // See com::sun::star::media::XFrameGrabber
      34           0 :     BitmapEx aBitmap;
      35           0 :     return Graphic( aBitmap ).GetXGraphic();
      36             : }
      37             : 
      38           0 : OUString SAL_CALL OGLFrameGrabber::getImplementationName() throw ( uno::RuntimeException, std::exception )
      39             : {
      40           0 :     return OUString("com.sun.star.comp.avmedia.FrameGrabber_OpenGL");
      41             : }
      42             : 
      43           0 : sal_Bool SAL_CALL OGLFrameGrabber::supportsService( const OUString& rServiceName )
      44             :         throw ( uno::RuntimeException, std::exception )
      45             : {
      46           0 :     return cppu::supportsService(this, rServiceName);
      47             : }
      48             : 
      49           0 : uno::Sequence< OUString > SAL_CALL OGLFrameGrabber::getSupportedServiceNames()
      50             :         throw ( uno::RuntimeException, std::exception )
      51             : {
      52           0 :     uno::Sequence< OUString > aRet(1);
      53           0 :     aRet[0] = OUString("com.sun.star.media.FrameGrabber_OpenGL");
      54           0 :     return aRet;
      55             : }
      56             : 
      57             : } // namespace ogl
      58             : } // namespace avmedia
      59             : 
      60             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10