From d8920e6d1de0698f7c132d74cc34e2f1021c6fb3 Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Sun, 20 Apr 2014 18:00:33 +0200 Subject: Make OGLFrameGrabber work Steps of grabFrame - Init opengl context - Call libgltf to render - Get a RGB buffer from libgltf - Create a Bitmap from this RGB buffer Additionally: - Using mimetype is neccessary to decide which player to create. - bAllowToCreateReplacementGraphic is unneeded. Change-Id: I7fef043a3341771389144a4f4cac71b0862ef8a7 --- include/avmedia/mediawindow.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/avmedia/mediawindow.hxx b/include/avmedia/mediawindow.hxx index 93575955a27f..a42e95efbc40 100644 --- a/include/avmedia/mediawindow.hxx +++ b/include/avmedia/mediawindow.hxx @@ -102,11 +102,10 @@ namespace avmedia static void executeFormatErrorBox( Window* pParent ); static bool isMediaURL( const OUString& rURL, const OUString& rReferer, bool bDeep = false, Size* pPreferredSizePixel = NULL ); - static ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > createPlayer( const OUString& rURL, const OUString& rReferer ); + static ::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > createPlayer( const OUString& rURL, const OUString& rReferer, const OUString* pMimeType = 0 ); static ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic > grabFrame( const OUString& rURL, const OUString& rReferer, - bool bAllowToCreateReplacementGraphic = false, - double fMediaTime = AVMEDIA_FRAMEGRABBER_DEFAULTFRAME ); + const OUString& sMimeType, double fMediaTime = AVMEDIA_FRAMEGRABBER_DEFAULTFRAME ); static BitmapEx getAudioLogo(); static BitmapEx getEmptyLogo(); -- cgit