summaryrefslogtreecommitdiff
path: root/noncore/multimedia/camera/lib/imageio.cpp
Unidiff
Diffstat (limited to 'noncore/multimedia/camera/lib/imageio.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/camera/lib/imageio.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/multimedia/camera/lib/imageio.cpp b/noncore/multimedia/camera/lib/imageio.cpp
index ed0d39f..7d20848 100644
--- a/noncore/multimedia/camera/lib/imageio.cpp
+++ b/noncore/multimedia/camera/lib/imageio.cpp
@@ -9,24 +9,25 @@
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14**********************************************************************/ 14**********************************************************************/
15 15
16#include "imageio.h" 16#include "imageio.h"
17 17
18#include <opie2/odebug.h> 18#include <opie2/odebug.h>
19#include <qimage.h> 19#include <qimage.h>
20 20
21using namespace Opie::Core;
21 22
22void bufferToImage( int _width, int _height, unsigned char* bp, QImage* image ) 23void bufferToImage( int _width, int _height, unsigned char* bp, QImage* image )
23{ 24{
24 unsigned char* p; 25 unsigned char* p;
25 26
26 image->create( _width, _height, 16 ); 27 image->create( _width, _height, 16 );
27 for ( int i = 0; i < _height; ++i ) 28 for ( int i = 0; i < _height; ++i )
28 { 29 {
29 p = image->scanLine( i ); 30 p = image->scanLine( i );
30 for ( int j = 0; j < _width; j++ ) 31 for ( int j = 0; j < _width; j++ )
31 { 32 {
32 *p = *bp; 33 *p = *bp;