diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-06 12:00:16 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-02-07 10:58:21 +0100 |
commit | e1d1bce72be34eb7ea4e3c72642736b378388c98 (patch) | |
tree | 0a770f98ace378edd1ccd197487213c2189b03ca /avmedia/source | |
parent | fa85592c0efba65f4a1b09fea950ec1c311bdd4c (diff) |
move Bitmap::SetToData to BitmapTools
Change-Id: I0fc62d29d2044c2aa8af3742d4aeb9d782793713
Reviewed-on: https://gerrit.libreoffice.org/49280
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'avmedia/source')
-rw-r--r-- | avmedia/source/gstreamer/gstframegrabber.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/avmedia/source/gstreamer/gstframegrabber.cxx b/avmedia/source/gstreamer/gstframegrabber.cxx index 60aed4206ac1..def1018baeed 100644 --- a/avmedia/source/gstreamer/gstframegrabber.cxx +++ b/avmedia/source/gstreamer/gstframegrabber.cxx @@ -27,7 +27,7 @@ #include <gst/video/gstvideosink.h> #include <vcl/graph.hxx> -#include <vcl/bitmapaccess.hxx> +#include <vcl/BitmapTools.hxx> #include <string> @@ -173,8 +173,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe #endif int nStride = GST_ROUND_UP_4( nWidth * 3 ); - Bitmap aBmp( Size( nWidth, nHeight ), 24 ); - aBmp.SetToData( pData, nStride ); + BitmapEx aBmp = vcl::bitmap::CreateFromData(pData, nWidth, nHeight, nStride, 24 ); #ifndef AVMEDIA_GST_0_10 gst_buffer_unmap( pBuf, &aMapInfo ); |