diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-04-20 18:00:33 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-04-20 18:00:48 +0200 |
commit | d8920e6d1de0698f7c132d74cc34e2f1021c6fb3 (patch) | |
tree | 83a8b9101fa46c9e3a7bd3ba32b6cab5b91b4a2e /include/avmedia/mediawindow.hxx | |
parent | 78609b36e0d61bd5535cfdc1ab2f1e0e59505042 (diff) |
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
Diffstat (limited to 'include/avmedia/mediawindow.hxx')
-rw-r--r-- | include/avmedia/mediawindow.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
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(); |